mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-25 07:02:00 +00:00
refactor: Remove double filtering based on score threshold
This commit is contained in:
parent
140ee7d337
commit
76ff6a5943
4 changed files with 13 additions and 7 deletions
|
|
@ -433,10 +433,6 @@ class OpenAIVectorStoreMixin(ABC):
|
|||
# Convert response to OpenAI format
|
||||
data = []
|
||||
for chunk, score in zip(response.chunks, response.scores, strict=False):
|
||||
# Apply score based filtering
|
||||
if score < score_threshold:
|
||||
continue
|
||||
|
||||
# Apply filters if provided
|
||||
if filters:
|
||||
# Simple metadata filtering
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue