mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-06 03:57:19 +00:00
Change "text" to "content" as dict key (#2800)
* change "text" to "content" as dict key * Update Documentation & Code Style Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
d8e7aaeacc
commit
f599ce9458
@ -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": "<the-actual-text>"}.
|
||||
Optionally: Include meta data via {"text": "<the-actual-text>",
|
||||
For documents as dictionaries, the format is {"content": "<the-actual-text>"}.
|
||||
Optionally: Include meta data via {"content": "<the-actual-text>",
|
||||
"meta": {"name": "<some-document-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
|
||||
|
||||
@ -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": "<the-actual-text>"}.
|
||||
Optionally: Include meta data via {"text": "<the-actual-text>",
|
||||
For documents as dictionaries, the format is {"content": "<the-actual-text>"}.
|
||||
Optionally: Include meta data via {"content": "<the-actual-text>",
|
||||
"meta": {"name": "<some-document-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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user