Advanced hybrid search through document pages with configurable search modes.
All scores are returned in [0, 1] range using stable, absolute normalization:
Relevance Score: alpha × semantic_score + (1-alpha) × keyword_score
Semantic Score (0-1): Cosine similarity between query and content embeddings
Keyword Score (0-1): PostgreSQL ts_rank with built-in normalization
Each result includes:
relevance: Combined score (0-1) - use this for rankingsemantic_score: Semantic component (0-1)keyword_score: Keyword component (0-1)content: Full page contentpage_number, document_id, id: Identifiersrelevance score (highest first)Finding exact product codes:
{"query": "SKU-12345", "alpha": 0.0, "top_k": 5}
Exploring concepts:
{"query": "customer retention strategies", "alpha": 1.0, "top_k": 10}
Balanced search:
{"query": "Q3 revenue growth", "alpha": 0.5, "min_relevance": 0.3}
Documentation Index
Fetch the complete documentation index at: https://docs.fieldwise.ai/llms.txt
Use this file to discover all available pages before exploring further.
Request model for searching document pages with configurable search modes.
Supports three search modes controlled by the alpha parameter:
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 <= 1Successful Response