Document Ingestion
ingest_text
Ingest a text document into DataBridge
ingest_text
Ingest a text document into DataBridge.
Parameters
content
(str): Text content to ingestfilename
(str, optional): Optional filename for the documentmetadata
(Dict[str, Any], optional): Optional metadata dictionaryrules
(List[RuleOrDict], optional): Optional list of rules to apply during ingestion. Can be:MetadataExtractionRule
: Extract metadata using a schemaNaturalLanguageRule
: Transform content using natural language
use_colpali
(bool, optional): Whether to use ColPali-style embedding model to ingest the text (slower, but significantly better retrieval accuracy for text and images). Defaults to True.
Returns
Document
: Metadata of the ingested document