Skip to main content

Parameters

  • filename (str): Filename of the document to update
  • file (Union[str, bytes, BinaryIO, Path]): File to add (path string, bytes, file object, or Path)
  • new_filename (str, optional): Optional new filename for the document (defaults to the filename of the file)
  • metadata (Dict[str, Any], optional): Additional metadata to update
  • update_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

Examples