瀏覽代碼

fix tablestore full text search bug (#22853)

tags/1.7.1
wanttobeamaster 3 月之前
父節點
當前提交
8278b39f85
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      api/core/rag/datasource/vdb/tablestore/tablestore_vector.py

+ 1
- 1
api/core/rag/datasource/vdb/tablestore/tablestore_vector.py 查看文件

@@ -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…
取消
儲存