add pgvecto_rs support and upgrade SQLAlchemy (#3833)
This commit is contained in:
parent
975b2fb79e
commit
3e9dbe3e0a
26 changed files with 584 additions and 220 deletions
|
|
@ -235,7 +235,7 @@ class RelytVector(BaseVector):
|
|||
docs = []
|
||||
for document, score in results:
|
||||
score_threshold = kwargs.get('score_threshold') if kwargs.get('score_threshold') else 0.0
|
||||
if score > score_threshold:
|
||||
if 1 - score > score_threshold:
|
||||
docs.append(document)
|
||||
return docs
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue