Skip to content

Commit

Permalink
Remove english analyzer from hybrid query
Browse files Browse the repository at this point in the history
  • Loading branch information
kdid committed Aug 12, 2024
1 parent 9876ec1 commit df5770f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chat/src/helpers/hybrid_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ def hybrid_query(query: str, model_id: str, vector_field: str = "embedding", k:
"query_string": {
"default_operator": "AND",
"fields": ["title^5", "all_controlled_labels", "all_ids^5"],
"query": query,
"analyzer": "english"
"query": query
}
}),
filter({
Expand Down

0 comments on commit df5770f

Please sign in to comment.