Search for Vector Store documents by semantic similarity
Search Vector Store documents with semantic similarity and batch operations
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.
Example Requests
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
);Path Parameters
Parameter
Type
Description
Query Parameters
Parameter
Type
Description
Response Format
Authentication
Error Responses
Status Code
Description
Search Optimization Tips
Context Windows
Matching Threshold
Batch Operations
Batch Search Implementation
Performance Optimization for Batch Operations
Last updated