fix:score threshold (#24897)
This commit is contained in:
parent
9486715929
commit
2042353526
24 changed files with 25 additions and 25 deletions
|
|
@ -110,7 +110,7 @@ class UpstashVector(BaseVector):
|
|||
score = record.score
|
||||
if metadata is not None and text is not None:
|
||||
metadata["score"] = score
|
||||
if score > score_threshold:
|
||||
if score >= score_threshold:
|
||||
docs.append(Document(page_content=text, metadata=metadata))
|
||||
return docs
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue