Skip to content

Commit

Permalink
Merge pull request #235 from nulib/5119-all-titles-title
Browse files Browse the repository at this point in the history
Uses title instead of all_titles in chat's hybrid query
  • Loading branch information
kdid authored Jul 25, 2024
2 parents bdea6b2 + 7a94942 commit 9a85e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chat/src/helpers/hybrid_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def hybrid_query(query: str, model_id: str, vector_field: str = "embedding", k:
filter({
"query_string": {
"default_operator": "AND",
"fields": ["all_titles^5", "all_controlled_labels", "all_ids^5"],
"fields": ["title^5", "all_controlled_labels", "all_ids^5"],
"query": query,
"analyzer": "english"
}
Expand Down

0 comments on commit 9a85e51

Please sign in to comment.