Ask a question to get started
Enter to send•Shift+Enter new line
create_documents( self, texts: list[dict[str, Any]], convert_lists: bool
texts
list[dict[str, Any]]
A list of JSON data to be split and converted into documents.
convert_lists
bool
False
Whether to convert lists to dictionaries before splitting.
ensure_ascii
True
metadatas
list[dict[Any, Any]] | None
None
Create a list of Document objects from a list of json objects (dict).
Document
dict
Whether to ensure ASCII encoding in the JSON strings.
Optional list of metadata to associate with each document.