Spaces:
Sleeping
Sleeping
Update evaluation.py
Browse files- evaluation.py +1 -1
evaluation.py
CHANGED
@@ -153,7 +153,7 @@ def calculate_metrics(question, q_dataset, response, docs, time_taken):
|
|
153 |
|
154 |
# Convert ground truth to numeric form (e.g., using cosine similarity or some metric)
|
155 |
# Here, let's assume completeness is based on cosine similarity between the response and the ground truth
|
156 |
-
ground_truth_completeness = compute_cosine_similarity(response, ground_truth_answer)
|
157 |
|
158 |
# Predicted metrics
|
159 |
|
|
|
153 |
|
154 |
# Convert ground truth to numeric form (e.g., using cosine similarity or some metric)
|
155 |
# Here, let's assume completeness is based on cosine similarity between the response and the ground truth
|
156 |
+
# ground_truth_completeness = compute_cosine_similarity(response, ground_truth_answer)
|
157 |
|
158 |
# Predicted metrics
|
159 |
|