Spaces:
Sleeping
Sleeping
Bhushan4829
commited on
Commit
·
7c15e5a
1
Parent(s):
814e44a
Updated Semantic Search
Browse files- semantic_search.py +1 -1
semantic_search.py
CHANGED
@@ -47,7 +47,7 @@ class EnhancedSemanticSearchEvaluator:
|
|
47 |
results_with_scores = []
|
48 |
for rank, match in enumerate(ranked_matches[:self.top_k], start=1):
|
49 |
doc_id = match['id']
|
50 |
-
similarity_score = match['
|
51 |
|
52 |
if similarity_score >= 0.7:
|
53 |
llm_score = 5
|
|
|
47 |
results_with_scores = []
|
48 |
for rank, match in enumerate(ranked_matches[:self.top_k], start=1):
|
49 |
doc_id = match['id']
|
50 |
+
similarity_score = match['score']
|
51 |
|
52 |
if similarity_score >= 0.7:
|
53 |
llm_score = 5
|