Skip to content

Commit

Permalink
fix instance score
Browse files Browse the repository at this point in the history
Signed-off-by: Assaf Toledo <assaf.toledo@ibm.com>
  • Loading branch information
assaftibm authored and matanor committed Jan 22, 2024
1 parent 30cfc86 commit 956e97b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions prepare/metrics/rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
postpreprocess_steps=[
CopyFields(
field_to_field=[
("score/global/precision", "score/global/score"),
("score/instance/precision", "score/instance/score"),
],
use_query=True,
)
Expand Down Expand Up @@ -272,7 +272,7 @@
postpreprocess_steps=[
CopyFields(
field_to_field=[
("score/global/recall", "score/global/score"),
("score/instance/recall", "score/instance/score"),
],
use_query=True,
)
Expand Down
4 changes: 2 additions & 2 deletions src/unitxt/catalog/metrics/rag/answer_correctness.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"type": "copy_fields",
"field_to_field": [
[
"score/global/recall",
"score/global/score"
"score/instance/recall",
"score/instance/score"
]
],
"use_query": true
Expand Down
4 changes: 2 additions & 2 deletions src/unitxt/catalog/metrics/rag/bert_k_precision.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"type": "copy_fields",
"field_to_field": [
[
"score/global/precision",
"score/global/score"
"score/instance/precision",
"score/instance/score"
]
],
"use_query": true
Expand Down
4 changes: 2 additions & 2 deletions src/unitxt/catalog/metrics/rag/bert_recall.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"type": "copy_fields",
"field_to_field": [
[
"score/global/recall",
"score/global/score"
"score/instance/recall",
"score/instance/score"
]
],
"use_query": true
Expand Down
4 changes: 2 additions & 2 deletions src/unitxt/catalog/metrics/rag/faithfulness.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"type": "copy_fields",
"field_to_field": [
[
"score/global/precision",
"score/global/score"
"score/instance/precision",
"score/instance/score"
]
],
"use_query": true
Expand Down
4 changes: 2 additions & 2 deletions src/unitxt/catalog/metrics/rag/k_precision.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"type": "copy_fields",
"field_to_field": [
[
"score/global/precision",
"score/global/score"
"score/instance/precision",
"score/instance/score"
]
],
"use_query": true
Expand Down
4 changes: 2 additions & 2 deletions src/unitxt/catalog/metrics/rag/recall.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"type": "copy_fields",
"field_to_field": [
[
"score/global/recall",
"score/global/score"
"score/instance/recall",
"score/instance/score"
]
],
"use_query": true
Expand Down

0 comments on commit 956e97b

Please sign in to comment.