Commit 1df8f5a0 authored by jyong's avatar jyong

add score threshold

parent 642842d6
...@@ -94,7 +94,8 @@ class DatasetRetrieverTool(BaseTool): ...@@ -94,7 +94,8 @@ class DatasetRetrieverTool(BaseTool):
query, query,
search_type='similarity_score_threshold', search_type='similarity_score_threshold',
search_kwargs={ search_kwargs={
'k': self.k 'k': self.k,
'score_threshold': 0.8
} }
) )
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment