獲取向量儲存的資訊¶
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.
範例請求¶
Info
將 YOUR_API_KEY 替換為您的實際向量存儲 API 金鑰。
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
將 YOUR_API_KEY 替換為您的實際向量存儲 API 金鑰。
回應格式¶
{
"id": "vs_abc123",
"name": "我的向量儲存",
"description": "產品文檔的向量儲存",
"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-api-key 標頭中的 API 金鑰進行認證。
錯誤回應¶
| 狀態碼 | 描述 |
|---|---|
| 401 | 未授權 - 無效或缺失的 API 金鑰 |
| 404 | 找不到 - 向量儲存未找到 |
| 500 | 內部伺服器錯誤 |
此端點檢索與提供的 API 金鑰相關的向量儲存資訊。它對於檢查配置細節非常有用,包括使用的嵌入模型、維度和搜索指標。這些資訊對於優化搜索查詢和理解向量儲存的能力非常有價值。