Skip to content

Commit

Permalink
update bm25 search properties (#1758)
Browse files Browse the repository at this point in the history
Co-authored-by: Blade <[email protected]>
  • Loading branch information
ethuwlwfu3288 and Blade authored Dec 15, 2023
1 parent b0d8d19 commit c09184f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/vector_store/vector/weaviate.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def similarity_search_by_bm25(
query_obj = query_obj.with_where(kwargs.get("where_filter"))
if kwargs.get("additional"):
query_obj = query_obj.with_additional(kwargs.get("additional"))
properties = ['text', 'dataset_id', 'doc_hash', 'doc_id', 'document_id']
properties = ['text']
result = query_obj.with_bm25(query=query, properties=properties).with_limit(k).do()
if "errors" in result:
raise ValueError(f"Error during query: {result['errors']}")
Expand Down

0 comments on commit c09184f

Please sign in to comment.