Tìm kiếm tài liệu Cửa hàng Vector theo sự tương đồng ngữ nghĩa
Tìm kiếm tài liệu Vector Store với sự tương đồng ngữ nghĩa và các thao tác theo lô
get
Initiate a search operation with a query text and receive most semantically similar responses from the vector store.
Path parameters
vector-store-idstringRequired
The ID of the vector store.
Query parameters
qstringRequired
The search query text.
nintegerOptional
Number of chunks to return.
tnumberOptional
Matching threshold.
prev_chunksintegerOptional
Number of chunks before the matched chunk to include.
next_chunksintegerOptional
Number of chunks after the matched chunk to include.
Header parameters
x-api-keystringRequired
The API key for authentication.
Responses
200
Search results retrieved successfully.
application/json
get
/vector-stores/{vector-store-id}/documents/search200
Search results retrieved successfully.
Ví dụ Yêu cầu
curl -X GET \
"https://api.rememberizer.ai/api/v1/vector-stores/vs_abc123/documents/search?q=How%20to%20integrate%20our%20product%20with%20third-party%20systems&n=5&prev_chunks=1&next_chunks=1" \
-H "x-api-key: YOUR_API_KEY"const searchVectorStore = async (vectorStoreId, query, numResults = 5, prevChunks = 1, nextChunks = 1) => {
const url = new URL(`https://api.rememberizer.ai/api/v1/vector-stores/${vectorStoreId}/documents/search`);
url.searchParams.append('q', query);
url.searchParams.append('n', numResults);
url.searchParams.append('prev_chunks', prevChunks);
url.searchParams.append('next_chunks', nextChunks);
const response = await fetch(url.toString(), {
method: 'GET',
headers: {
'x-api-key': 'YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
};
searchVectorStore(
'vs_abc123',
'How to integrate our product with third-party systems',
5,
1,
1
);Tham số Đường dẫn
Tham số
Loại
Mô tả
Tham số truy vấn
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ả
Mẹo Tối Ưu Hóa Tìm Kiếm
Cửa Sổ Ngữ Cảnh
Ngưỡng Khớp
Các hoạt động theo lô
Triển Khai Tìm Kiếm Theo Lô
Tối ưu hóa hiệu suất cho các thao tác theo lô
Last updated