Skip to content

Commit

Permalink
setting similar score threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
nora-errouhly committed Feb 27, 2025
1 parent 7de1c33 commit 7cfa3f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redbox-core/redbox/retriever/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def build_document_query(

return {
"size": ai_settings.rag_k,
"min_score": 0.65,
"query": {
"bool": {
"must": [
Expand All @@ -121,7 +122,7 @@ def build_document_query(
"vector_field": {
"vector": query_vector,
"k": ai_settings.rag_num_candidates,
"boost": ai_settings.knn_boost,
#"boost": ai_settings.knn_boost,
"filter": query_filter,
}
}
Expand Down

0 comments on commit 7cfa3f0

Please sign in to comment.