Combine multiple retrieval techniques in a single query.
keyword_index()
and one semantic_index()
:
content_similarity
) and keyword matching (text_score
).filter()
ensures that documents contain at least one relevant keyword.topk()
function weights the scores, prioritizing semantic meaning (60%) while still considering keyword matches (40%).content_score
) and precomputed importance (importance_score
).topk()
function gives 80% weight to content score and 20% weight to document importance.