mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-09-01 12:23:31 +00:00

* Modify __str__ and __repr__ for Document and Answer * Rename QueryClassifier in Tutorial11 * Improve the output of tutorial1 * Make the output of Tutorial8 a bit less dense * Add a print_questions util to print the output of question generating pipelines * Replace custom printing with the new utility in Tutorial13 * Ensure all output is printed with minimal details in Tutorial14 and add some titles * Minor change to print_answers * Make tutorial3's output the same as tutorial1 * Add __repr__ to Answer and fix to_dict() * Fix a bug in the Document and Answer's __str__ method * Improve print_answers, print_documents and print_questions * Using print_answers in Tutorial7 and fixing typo in the utils * Remove duplicate line in Tutorial12 * Use print_answers in Tutorial4 * Add explanation of what the documents in the output of the basic QA pipeline are * Move the fields constant into print_answers * Normalize all 'minimal' to 'minimum' (they were mixed up) * Improve the sample output to include all fields from Document and Answer Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
23 lines
615 B
Python
23 lines
615 B
Python
from haystack.utils.preprocessing import (
|
|
convert_files_to_dicts,
|
|
tika_convert_files_to_dicts
|
|
)
|
|
from haystack.utils.import_utils import fetch_archive_from_http
|
|
from haystack.utils.cleaning import clean_wiki_text
|
|
from haystack.utils.doc_store import (
|
|
launch_es,
|
|
launch_milvus,
|
|
launch_open_distro_es,
|
|
launch_opensearch,
|
|
launch_weaviate,
|
|
stop_opensearch,
|
|
stop_service,
|
|
)
|
|
from haystack.utils.export_utils import (
|
|
print_answers,
|
|
print_documents,
|
|
print_questions,
|
|
export_answers_to_csv,
|
|
convert_labels_to_squad,
|
|
)
|
|
from haystack.utils.squad_data import SquadData |