Documents
Search Document Pages
Search through document pages using semantic similarity.
This endpoint performs a semantic search at the page level, which is best for:
- Finding broad context about a topic
- Getting an overview of document sections
- When you need more context around the matches
Performance Considerations:
- Fastest search performance of all levels
- Most efficient memory usage
- Best for initial broad searches
- Recommended for large document collections
Best Practices:
- Use for initial exploratory searches
- Combine with metadata filters for better performance
- Start with this before using more granular searches
- Ideal for queries needing broader context
The search uses embeddings to find the most semantically similar pages to your query, regardless of exact keyword matches.
POST
Headers
Body
application/json
Request model for searching pages.
The search query
Optional metadata filters using MongoDB-like query syntax
Number of results to return
Required range:
1 <= x <= 100
Whether to optimize metadata filter
Whether to optimize search query
Response
200
application/json
Successful Response
Response model for page search.
Response data
Schema for API error responses.
Example:
{
"error_code": "RESOURCE_NOT_FOUND",
"message": "Resource not found"
}
Metadata for API responses