From 0d1e7fecf75b1ff2673dcf84478d31f1342834ba Mon Sep 17 00:00:00 2001 From: Eric Huang Date: Thu, 19 Jun 2025 12:06:32 -0700 Subject: [PATCH] feat: remove score_threshold constraint # What does this PR do? ## Test Plan --- llama_stack/apis/vector_io/vector_io.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/llama_stack/apis/vector_io/vector_io.py b/llama_stack/apis/vector_io/vector_io.py index dbea12d5f..017fa62de 100644 --- a/llama_stack/apis/vector_io/vector_io.py +++ b/llama_stack/apis/vector_io/vector_io.py @@ -168,7 +168,10 @@ register_schema(VectorStoreChunkingStrategy, name="VectorStoreChunkingStrategy") class SearchRankingOptions(BaseModel): ranker: str | None = None - score_threshold: float | None = Field(default=0.0, ge=0.0, le=1.0) + # NOTE: OpenAI File Search Tool requires threshold to be between 0 and 1, however + # we don't guarantee that the score is between 0 and 1, so will leave this unconstrained + # and let the provider handle it + score_threshold: float | None = Field(default=0.0) @json_schema_type