mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-31 00:57:37 +00:00
* 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
41 lines
740 B
JSON
41 lines
740 B
JSON
{
|
|
"id": "text_label_1",
|
|
"query": "some",
|
|
"document": {
|
|
"id": "doc_1",
|
|
"content": "some text",
|
|
"content_type": "text",
|
|
"meta": {},
|
|
"id_hash_keys": [
|
|
"content"
|
|
],
|
|
"score": null,
|
|
"embedding": null
|
|
},
|
|
"is_correct_answer": true,
|
|
"is_correct_document": true,
|
|
"origin": "user-feedback",
|
|
"answer": {
|
|
"answer": "an answer",
|
|
"type": "extractive",
|
|
"score": 0.1,
|
|
"context": null,
|
|
"offsets_in_document": [
|
|
{
|
|
"start": 1,
|
|
"end": 3
|
|
}
|
|
],
|
|
"offsets_in_context": null,
|
|
"document_ids": [
|
|
"doc_1"
|
|
],
|
|
"meta": {}
|
|
},
|
|
"pipeline_id": null,
|
|
"created_at": "2023-05-02 11:43:56",
|
|
"updated_at": null,
|
|
"meta": {},
|
|
"filters": null
|
|
}
|