Document Updates
update_document_with_file
Update a document with content from a file
update_document_with_file
Update a document with content from a file using the specified strategy.
Parameters
document_id
(str): ID of the document to updatefile
(Union[str, bytes, BinaryIO, Path]): File to add (path string, bytes, file object, or Path)filename
(str, optional): Name of the filemetadata
(Dict[str, Any], optional): Additional metadata to updaterules
(List, optional): Optional list of rules to apply to the contentupdate_strategy
(str, optional): Strategy for updating the document (currently only ‘add’ is supported). Defaults to ‘add’.use_colpali
(bool, optional): Whether to use multi-vector embedding. If not specified, defaults to True.
Returns
Document
: Updated document metadata