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:
David G 2022-08-22 12:56:30 +02:00 committed by GitHub
parent 97a8d30512
commit e715dee17d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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])

View File

@ -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
}
}