Lấy thông tin cửa hàng vector¶
GET /vector-stores/me¶
Retrieve information about the vector store associated with the API key.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
x-api-key |
header | string | yes | The API key for authentication. |
Responses
200— Vector store information retrieved successfully.
Ví dụ Yêu Cầu¶
Info
Thay thế YOUR_API_KEY bằng khóa API Vector Store thực tế của bạn.
const getVectorStoreInfo = async () => {
const response = await fetch('https://api.rememberizer.ai/api/v1/vector-stores/me', {
method: 'GET',
headers: {
'x-api-key': 'YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
};
getVectorStoreInfo();
Info
Thay thế YOUR_API_KEY bằng khóa API Vector Store thực tế của bạn.
import requests
def get_vector_store_info():
headers = {
"x-api-key": "YOUR_API_KEY"
}
response = requests.get(
"https://api.rememberizer.ai/api/v1/vector-stores/me",
headers=headers
)
data = response.json()
print(data)
get_vector_store_info()
Info
Thay thế YOUR_API_KEY bằng khóa API Vector Store thực tế của bạn.
Định dạng Phản hồi¶
{
"id": "vs_abc123",
"name": "Cửa hàng Vector của Tôi",
"description": "Một cửa hàng vector cho tài liệu sản phẩm",
"embedding_model": "sentence-transformers/all-mpnet-base-v2",
"indexing_algorithm": "ivfflat",
"vector_dimension": 128,
"search_metric": "cosine_distance",
"created": "2023-06-01T10:30:00Z",
"modified": "2023-06-15T14: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¶
| Mã trạng thái | Mô tả |
|---|---|
| 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 thông tin về vector store liên kết với khóa API đã cung cấp. Nó hữu ích cho việc kiểm tra chi tiết cấu hình, bao gồm mô hình nhúng, kích thước chiều và chỉ số tìm kiếm đang được sử dụng. Thông tin này có thể có giá trị cho việc tối ưu hóa truy vấn tìm kiếm và hiểu khả năng của vector store.