Lấy danh sách tài liệu trong Cửa hàng Vector
List all documents in a vector store.
The ID of the vector store.
The API key for authentication.
A list of documents.
GET /api/v1/vector-stores/{vector-store-id}/documents HTTP/1.1
Host: api.rememberizer.ai
x-api-key: text
Accept: */*
A list of documents.
[
{
"id": 1,
"name": "text",
"type": "text",
"vector_store": "text",
"size": 1,
"status": "text",
"processing_status": "text",
"indexed_on": "2025-11-13T19:28:48.929Z",
"status_error_message": "text",
"created": "2025-11-13T19:28:48.929Z",
"modified": "2025-11-13T19:28:48.929Z"
}
]Ví dụ Yêu Cầu
curl -X GET \
https://api.rememberizer.ai/api/v1/vector-stores/vs_abc123/documents \
-H "x-api-key: YOUR_API_KEY"const getVectorStoreDocuments = async (vectorStoreId) => {
const response = await fetch(`https://api.rememberizer.ai/api/v1/vector-stores/${vectorStoreId}/documents`, {
method: 'GET',
headers: {
'x-api-key': 'YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
};
getVectorStoreDocuments('vs_abc123');import requests
def get_vector_store_documents(vector_store_id):
headers = {
"x-api-key": "YOUR_API_KEY"
}
response = requests.get(
f"https://api.rememberizer.ai/api/v1/vector-stores/{vector_store_id}/documents",
headers=headers
)
data = response.json()
print(data)
get_vector_store_documents('vs_abc123')Tham số Đường dẫn
vector-store-id
chuỗi
Bắt buộc. ID của kho vector để liệt kê tài liệu từ đó.
Định dạng Phản hồi
[
{
"id": 1234,
"name": "Hướng Dẫn Sản Phẩm.pdf",
"type": "application/pdf",
"vector_store": "vs_abc123",
"size": 250000,
"status": "đã lập chỉ mục",
"processing_status": "hoàn thành",
"indexed_on": "2023-06-15T10:30:00Z",
"status_error_message": null,
"created": "2023-06-15T10:15:00Z",
"modified": "2023-06-15T10:30:00Z"
},
{
"id": 1235,
"name": "Thông Số Kỹ Thuật.docx",
"type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"vector_store": "vs_abc123",
"size": 125000,
"status": "đã lập chỉ mục",
"processing_status": "hoàn thành",
"indexed_on": "2023-06-15T11:45:00Z",
"status_error_message": null,
"created": "2023-06-15T11:30:00Z",
"modified": "2023-06-15T11:45:00Z"
}
]Xác thực
Điểm cuối này yêu cầu xác thực bằng cách sử dụng khóa API trong tiêu đề x-api-key.
Phản hồi Lỗi
401
Không được phép - Khóa API không hợp lệ hoặc bị thiếu
404
Không tìm thấy - Không tìm thấy Vector Store
500
Lỗi Máy Chủ Nội Bộ
Điểm cuối này truy xuất danh sách tất cả các tài liệu được lưu trữ trong vector store đã chỉ định. Nó cung cấp siêu dữ liệu về mỗi tài liệu, bao gồm trạng thái xử lý tài liệu, kích thước và dấu thời gian đã lập chỉ mục. Thông tin này hữu ích để theo dõi nội dung của vector store của bạn và kiểm tra trạng thái xử lý tài liệu.
Last updated