Skip to content

Commit 3c9a29c

Browse files
BenjSzelronbandel
andauthored
remove metadata_fields in clapnq (#1718)
* remove metadata_fields in clapnq * add corresponding json --------- Co-authored-by: Elron Bandel <[email protected]>
1 parent 2179e88 commit 3c9a29c

File tree

2 files changed

+1
-12
lines changed
  • prepare/cards/rag/end_to_end
  • src/unitxt/catalog/cards/rag/documents/clap_nq

2 files changed

+1
-12
lines changed

prepare/cards/rag/end_to_end/clapnq.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from unitxt import add_to_catalog
55
from unitxt.blocks import TaskCard
66
from unitxt.loaders import LoadCSV, LoadHF
7-
from unitxt.operators import Copy, ListFieldValues, Set
7+
from unitxt.operators import Copy, ListFieldValues
88
from unitxt.templates import InputOutputTemplate
99
from unitxt.test_utils.card import test_card
1010

@@ -82,11 +82,6 @@ class ClapNqBenchmark:
8282
fields=["text"],
8383
to_field="passages",
8484
),
85-
Set(
86-
fields={
87-
"metadata_field": {},
88-
}
89-
),
9085
],
9186
task="tasks.rag.corpora",
9287
__tags__={"license": "Apache License 2.0", "url":"https://huggingface.co/datasets/PrimeQA/clapnq"},

src/unitxt/catalog/cards/rag/documents/clap_nq/en.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@
2121
"text"
2222
],
2323
"to_field": "passages"
24-
},
25-
{
26-
"__type__": "set",
27-
"fields": {
28-
"metadata_field": {}
29-
}
3024
}
3125
],
3226
"task": "tasks.rag.corpora",

0 commit comments

Comments
 (0)