벡터 저장소에서 문서 제거하기

delete

Delete a specific document from a vector store.

Path parameters
vector-store-idstringRequired

The ID of the vector store.

document-idintegerRequired

The ID of the document.

Header parameters
x-api-keystringRequired

The API key for authentication.

Responses
204
Document deleted successfully.
delete
DELETE /api/v1/vector-stores/{vector-store-id}/documents/{document-id}/ HTTP/1.1
Host: api.rememberizer.ai
x-api-key: text
Accept: */*
204

Document deleted successfully.

No content

예제 요청

curl -X DELETE \
  https://api.rememberizer.ai/api/v1/vector-stores/vs_abc123/documents/1234/ \
  -H "x-api-key: YOUR_API_KEY"

YOUR_API_KEY를 실제 Vector Store API 키로, vs_abc123를 Vector Store ID로, 1234를 문서 ID로 교체하세요.

경로 매개변수

매개변수
유형
설명

vector-store-id

문자열

필수. 문서가 포함된 벡터 저장소의 ID입니다.

document-id

정수

필수. 삭제할 문서의 ID입니다.

응답

성공적인 요청은 응답 본문 없이 204 No Content 상태 코드를 반환합니다.

인증

이 엔드포인트는 x-api-key 헤더에 API 키를 사용하여 인증이 필요합니다.

오류 응답

상태 코드
설명

401

권한 없음 - 잘못되었거나 누락된 API 키

404

찾을 수 없음 - 벡터 저장소 또는 문서를 찾을 수 없음

500

내부 서버 오류

이 엔드포인트는 벡터 저장소에서 문서를 제거할 수 있게 해줍니다. 삭제되면 문서와 그 벡터 임베딩은 더 이상 검색 작업에 사용할 수 없습니다. 이는 구식, 관련 없는 또는 민감한 콘텐츠를 지식 기반에서 제거하는 데 유용합니다.

Last updated