mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-28 23:48:53 +00:00
Change document attribute from text to content (#2352)
* Change document attribute from text to content * Update Documentation & Code Style Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
3b2001e66f
commit
cec0137693
@ -126,7 +126,7 @@ dicts = convert_files_to_dicts(dir_path=doc_dir, clean_func=clean_wiki_text, spl
|
||||
# If your texts come from a different source (e.g. a DB), you can of course skip convert_files_to_dicts() and create the dictionaries yourself.
|
||||
# The default format here is:
|
||||
# {
|
||||
# 'text': "<DOCUMENT_TEXT_HERE>",
|
||||
# 'content': "<DOCUMENT_TEXT_HERE>",
|
||||
# 'meta': {'name': "<DOCUMENT_NAME_HERE>", ...}
|
||||
# }
|
||||
# (Optionally: you can also add more key-value-pairs here, that will be indexed as fields in Elasticsearch and
|
||||
|
||||
@ -185,7 +185,7 @@
|
||||
"# If your texts come from a different source (e.g. a DB), you can of course skip convert_files_to_dicts() and create the dictionaries yourself.\n",
|
||||
"# The default format here is:\n",
|
||||
"# {\n",
|
||||
"# 'text': \"<DOCUMENT_TEXT_HERE>\",\n",
|
||||
"# 'content': \"<DOCUMENT_TEXT_HERE>\",\n",
|
||||
"# 'meta': {'name': \"<DOCUMENT_NAME_HERE>\", ...}\n",
|
||||
"# }\n",
|
||||
"# (Optionally: you can also add more key-value-pairs here, that will be indexed as fields in Elasticsearch and\n",
|
||||
@ -458,4 +458,4 @@
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user