mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-04 18:40:10 +00:00
feat: call xunfei spark with stream, and fix the temperature bug (#2121)
Co-authored-by: aries_ckt <916701291@qq.com>
This commit is contained in:
@@ -457,9 +457,7 @@ class MilvusStore(VectorStoreBase):
|
||||
self.vector_field = x.name
|
||||
# convert to milvus expr filter.
|
||||
milvus_filter_expr = self.convert_metadata_filters(filters) if filters else None
|
||||
_, docs_and_scores = self._search(
|
||||
query=text, k=topk, expr=milvus_filter_expr
|
||||
)
|
||||
_, docs_and_scores = self._search(query=text, k=topk, expr=milvus_filter_expr)
|
||||
if any(score < 0.0 or score > 1.0 for _, score, id in docs_and_scores):
|
||||
logger.warning(
|
||||
"similarity score need between" f" 0 and 1, got {docs_and_scores}"
|
||||
|
Reference in New Issue
Block a user