mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-08 04:23:35 +00:00
Co-authored-by: WangTing <wangting@192.168.1.10> Co-authored-by: aries_ckt <916701291@qq.com>
This commit is contained in:
@@ -133,7 +133,7 @@ class ChromaStore(VectorStoreBase):
|
||||
Chunk(
|
||||
content=chroma_result[0],
|
||||
metadata=chroma_result[1] or {},
|
||||
score=chroma_result[2],
|
||||
score=(1 - chroma_result[2]),
|
||||
)
|
||||
)
|
||||
for chroma_result in zip(
|
||||
@@ -195,7 +195,7 @@ class ChromaStore(VectorStoreBase):
|
||||
where_filters = {}
|
||||
filters_list = []
|
||||
condition = filters.condition
|
||||
chroma_condition = f"${condition}"
|
||||
chroma_condition = f"${condition.value}"
|
||||
if filters.filters:
|
||||
for filter in filters.filters:
|
||||
if filter.operator:
|
||||
|
Reference in New Issue
Block a user