Browse Source

fix tablestore full text search bug (#22853)

tags/1.7.1
wanttobeamaster 3 months ago
parent
commit
8278b39f85
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api/core/rag/datasource/vdb/tablestore/tablestore_vector.py

+ 1
- 1
api/core/rag/datasource/vdb/tablestore/tablestore_vector.py View File

@@ -319,7 +319,7 @@ class TableStoreVector(BaseVector):
return documents

def _search_by_full_text(self, query: str, document_ids_filter: list[str] | None, top_k: int) -> list[Document]:
bool_query = tablestore.BoolQuery()
bool_query = tablestore.BoolQuery(must_queries=[], filter_queries=[], should_queries=[], must_not_queries=[])
bool_query.must_queries.append(tablestore.MatchQuery(text=query, field_name=Field.CONTENT_KEY.value))

if document_ids_filter:

Loading…
Cancel
Save