- 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 documents (only works for documents ingested withuse_colpali=True). Defaults to True.use_reranking(bool, optional): Override workspace reranking configuration for this request.folder_name(str | List[str], optional): Optional folder scope. Accepts canonical paths (e.g.,/projects/alpha/specs) or a list of paths/names.folder_depth(int, optional): Folder scope depth.None/0= exact match,-1= include all descendants,n > 0= include descendants up tonlevels deep.
Metadata Filters
Filters share a common JSON DSL. Review the Metadata Filtering guide for supported operators and typed comparisons. Example:Returns
List[DocumentResult]: List of document results
Examples
- Sync
- Async
DocumentResult Properties
TheDocumentResult objects returned by this method have the following properties:
score(float): Relevance scoredocument_id(str): Document IDmetadata(Dict[str, Any]): Document metadatacontent(DocumentContent): Document content or URL

