Search in vector store's file
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:
- Credentials can be provided either through project-level credentials or request-level credentials
- For SGP Knowledge Base, SGP credentials are required
Returns:
- Ranked list of relevant content chunks
- Each chunk includes content, source blocks, relevance score, and parse result ID
- Results are ordered by relevance score (highest first)
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"
}
]
}
Documentation Index
Fetch the complete documentation index at: https://docs.gp.scale.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key for authentication
Selected Account ID
Body
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 Response
Search completed successfully
Chunks of the search result

