Perform semantic search within a vector store.
This endpoint performs vector-based semantic search to find the most relevant content based on the provided query. The search uses embeddings to find semantically similar content.
Search Parameters:
query: The search query texttop_k: Number of results to return (ranked by relevance)filters: Optional filters to narrow search scope (e.g., by file_id)Authentication:
Returns:
Example Request:
{
"query": "What are the main features of the product?",
"top_k": 5,
"filters": {
"file_id": "file_123"
},
"credentials": {
"sgp": {
"api_key": "your-api-key",
"base_url": "https://api.example.com"
}
}
}
Example Response:
{
"chunks": [
{
"content": "The product includes advanced analytics, real-time monitoring, and automated reporting features.",
"blocks": [
{
"id": "block_123",
"content": "The product includes advanced analytics...",
"type": "text"
}
],
"score": 0.95,
"parse_result_id": "parse_123"
}
]
}
API key for authentication
Selected Account ID
Search parameters for vector store engines. Extend this model to add new parameters without changing the engine interface.
Query to search for
Number of results to return
Filters to apply to the search. For example, {file_id: 123}
Reranking configuration. This is only applicable for SGP Vector Stores.
Type of query to perform.
semantic, lexical, hybrid Search completed successfully
Chunks of the search result