Authorizations
Headers
Body
Request model for searching document pages with configurable search modes.
Supports three search modes controlled by the alpha parameter:
- alpha = 1.0: Pure semantic search using embeddings (default)
- alpha = 0.0: Pure keyword search using PostgreSQL full-text search
- 0.0 < alpha < 1.0: Hybrid search combining both methods with weighted scoring
The search uses proper score normalization to ensure meaningful alpha weighting, returning both combined relevance scores and individual component scores.
The search query (required if embedding not provided)
Pre-computed embedding vector for search (required if query not provided)
Optional metadata filters using MongoDB-like query syntax
Filter by created_at database field. Supports operators: $eq, $ne, $gt, $lt, $gte, $lte, $in, $nin. Use ISO date format (e.g., '2024-01-01T00:00:00')
Filter by updated_at database field. Supports operators: $eq, $ne, $gt, $lt, $gte, $lte, $in, $nin. Use ISO date format (e.g., '2024-01-01T00:00:00')
Number of results to return
1 <= x <= 1000Minimum relevance score (0-1) to filter results. Only results above this threshold will be returned.
0 <= x <= 1Whether to optimize metadata filter (only works with query, not embedding)
Whether to optimize search query (only works with query, not embedding)
Search weighting: 0.0=pure keyword, 1.0=pure semantic, 0.5=balanced hybrid
0 <= x <= 1