mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-05 19:47:45 +00:00
docs:fixed typo (or old documentation) in ipynb tutorial 3 (#3033)
* Update Tutorial3_Basic_QA_Pipeline_without_Elasticsearch.ipynb Just fixed the key in the document dictionary format so `write_documents()` won't raise an error. By the way the `write_documents()` error is really explicative * Run convert_notebooks_into_webpages.py Co-authored-by: David Gervasoni <david.gervasoni@trix.ai>
This commit is contained in:
parent
97a8d30512
commit
e715dee17d
@ -105,7 +105,7 @@ docs = convert_files_to_docs(dir_path=doc_dir, clean_func=clean_wiki_text, split
|
||||
|
||||
# We now have a list of dictionaries that we can write to our document store.
|
||||
# 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: {"name": "<some-document-name>, "text": "<the-actual-text>"}
|
||||
# The default format here is: {"name": "<some-document-name>", "content": "<the-actual-text>"}
|
||||
|
||||
# Let's have a look at the first 3 entries:
|
||||
print(docs[:3])
|
||||
|
||||
@ -188,7 +188,7 @@
|
||||
"\n",
|
||||
"# We now have a list of dictionaries that we can write to our document store.\n",
|
||||
"# 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: {\"name\": \"<some-document-name>, \"text\": \"<the-actual-text>\"}\n",
|
||||
"# The default format here is: {\"name\": \"<some-document-name>\", \"content\": \"<the-actual-text>\"}\n",
|
||||
"\n",
|
||||
"# Let's have a look at the first 3 entries:\n",
|
||||
"print(docs[:3])\n",
|
||||
@ -513,4 +513,4 @@
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user