haive.agents.document_modifiers.base.utils¶
Utility functions for document processing.
Functions¶
|
Convert a list of Documents to a list of strings. |
|
Normalize inputs to strings. |
|
Convert a list of strings to a list of Documents. |
Module Contents¶
- haive.agents.document_modifiers.base.utils.documents_to_strings(documents)¶
Convert a list of Documents to a list of strings.
- haive.agents.document_modifiers.base.utils.normalize_contents(contents)¶
Normalize inputs to strings.
Accepts: - List[str] - List[Document] - Mixed list of strings and documents - Single string or Document