haystack/test/samples/schema/text_answer.json
Sebastian eff420cce0
test: Update unit tests for schema (#4835)
* Updated text_label tests to match tabel_label tests. Also added answer text as part of the Answer.__eq__ comparison.

* Updated text document unit tests to match ones from table docs

* Converting text answer unit tests to match table answer

* Update some document tests

* Minor update

* Separating unit tests
2023-05-10 16:16:45 +02:00

23 lines
291 B
JSON

{
"answer": "an answer",
"type": "extractive",
"score": 0.1,
"context": "abc",
"offsets_in_document": [
{
"start": 1,
"end": 10
}
],
"offsets_in_context": [
{
"start": 3,
"end": 5
}
],
"document_ids": [
"123"
],
"meta": {}
}