diff --git a/docs/_src/api/api/document_store.md b/docs/_src/api/api/document_store.md index 769bfda5f..e7d9bba9e 100644 --- a/docs/_src/api/api/document_store.md +++ b/docs/_src/api/api/document_store.md @@ -1692,8 +1692,8 @@ Indexes documents for later queries. **Arguments**: - `documents`: a list of Python dictionaries or a list of Haystack Document objects. -For documents as dictionaries, the format is {"text": ""}. - Optionally: Include meta data via {"text": "", +For documents as dictionaries, the format is {"content": ""}. + Optionally: Include meta data via {"content": "", "meta": {"name": ", "author": "somebody", ...}} It can be used for filtering and is accessible in the responses of the Finder. :param index: write documents to a custom namespace. For instance, documents for evaluation can be indexed in a diff --git a/haystack/document_stores/memory.py b/haystack/document_stores/memory.py index 4049a7cfd..c86144c77 100644 --- a/haystack/document_stores/memory.py +++ b/haystack/document_stores/memory.py @@ -95,8 +95,8 @@ class InMemoryDocumentStore(BaseDocumentStore): :param documents: a list of Python dictionaries or a list of Haystack Document objects. - For documents as dictionaries, the format is {"text": ""}. - Optionally: Include meta data via {"text": "", + For documents as dictionaries, the format is {"content": ""}. + Optionally: Include meta data via {"content": "", "meta": {"name": ", "author": "somebody", ...}} It can be used for filtering and is accessible in the responses of the Finder. :param index: write documents to a custom namespace. For instance, documents for evaluation can be indexed in a