- Sync
- Async
Parameters
sources(List[Union[ChunkSource, Dict[str, Any]]]): List of ChunkSource objects or dictionaries with document_id and chunk_numberfolder_name(str | List[str], optional): Optional folder scope. Accepts canonical paths or a list of paths/names.use_colpali(bool, optional): Whether to request multimodal chunks when available. Defaults to True.output_format(str, optional): Controls how image chunks are returned. Set to"url"to receive presigned URLs; omit or set to"base64"(default) to receive base64 content.
Returns
List[FinalChunkResult]: List of chunk results
Examples
- Sync
- Async
FinalChunkResult Properties
EachFinalChunkResult object in the returned list has the following properties:
content(str | PILImage): Chunk content (text or image)score(float): Relevance scoredocument_id(str): Parent document IDchunk_number(int): Chunk sequence numbermetadata(Dict[str, Any]): Document metadatacontent_type(str): Content typefilename(Optional[str]): Original filenamedownload_url(Optional[str]): URL to download full document

