- Sync
- Async
Parameters
query(str): Search query textfilters(Dict[str, Any], optional): Optional metadata filtersk(int, optional): Number of results. Defaults to 4.min_score(float, optional): Minimum similarity threshold. Defaults to 0.0.use_colpali(bool, optional): Whether to use ColPali-style embedding model to retrieve the chunks (only works for documents ingested withuse_colpali=True). Defaults to True.
Returns
List[FinalChunkResult]: List of chunk results
Examples
- Sync
- Async
FinalChunkResult Properties
TheFinalChunkResult objects returned by this method have 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

