在向量存儲中移除文檔

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 替換為您的實際向量存儲 API 金鑰,vs_abc123 替換為您的向量存儲 ID,1234 替換為文件 ID。

路徑參數

參數
類型
描述

vector-store-id

字串

必填。 包含文件的向量存儲的 ID。

document-id

整數

必填。 要刪除的文件的 ID。

回應

成功的請求會返回 204 無內容狀態碼,並且沒有回應主體。

認證

此端點需要使用 x-api-key 標頭中的 API 金鑰進行認證。

錯誤回應

狀態碼
描述

401

未授權 - 無效或缺失的 API 金鑰

404

未找到 - 向量儲存或文件未找到

500

內部伺服器錯誤

此端點允許您從向量儲存中移除文件。一旦刪除,該文件及其向量嵌入將不再可用於搜索操作。這對於移除過時、不相關或敏感的內容非常有用。

Last updated