Perform semantic search within a vector store and filter down to a specific file. Provide the file_id to search within the file, don’t confuse it with parse_result_id, because the two are connected.
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 completed successfully
Chunks of the search result