Skip to content

Commit

Permalink
fixed score threshold is none
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnJyong committed Sep 13, 2024
1 parent 43ac320 commit 3e9782a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/rag/datasource/retrieval_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def retrieve(
dataset_id: str,
query: str,
top_k: int,
score_threshold: Optional[float] = .0,
score_threshold: Optional[float] = 0.0,
reranking_model: Optional[dict] = None,
reranking_mode: Optional[str] = "reranking_model",
weights: Optional[dict] = None,
Expand Down

0 comments on commit 3e9782a

Please sign in to comment.