Cập nhật nội dung tệp trong Cửa hàng Vector
patch
Update a specific document in 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.
Body
namestringOptional
The new name for the document.
Responses
200
Document updated successfully.
application/json
patch
/vector-stores/{vector-store-id}/documents/{document-id}/200
Document updated successfully.
Ví dụ Yêu cầu
curl -X PATCH \
https://api.rememberizer.ai/api/v1/vector-stores/vs_abc123/documents/1234/ \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Cập nhật Tổng quan Sản phẩm"
}'const updateDocument = async (vectorStoreId, documentId, newName) => {
const response = await fetch(`https://api.rememberizer.ai/api/v1/vector-stores/${vectorStoreId}/documents/${documentId}/`, {
method: 'PATCH',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: newName
})
});
const data = await response.json();
console.log(data);
};
updateDocument('vs_abc123', 1234, 'Cập nhật Tổng quan Sản phẩm');Tham số Đường dẫn
Tham số
Loại
Mô tả
Thân Request
Tham số
Loại
Mô tả
Định dạng Phản hồi
Xác thực
Phản hồi Lỗi
Mã Trạng Thái
Mô Tả
PreviousTìm kiếm tài liệu Cửa hàng Vector theo sự tương đồng ngữ nghĩaNextTải tệp lên Cửa hàng Vector
Last updated