Skip to content

Commit

Permalink
ajusting the threshold score
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramyrahmeni committed Jun 15, 2024
1 parent 176c1fd commit b1dc97c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ def retrieve_relevant_resources(query: str,
# Get dot product scores on embeddings
dot_scores = util.dot_score(query_embedding, embeddings)[0]

# Get the number of scores above a threshold (e.g., 0.5)
valid_scores = dot_scores > 0.1
cnt = valid_scores.sum().item()

Expand Down

0 comments on commit b1dc97c

Please sign in to comment.