Skip to content
RAGRAF

ragraf_doc_search

Edition: community Capability: documents Operation page: doc_search

What it does

Search across document chunks: the fact, its address, its provenance

What problem it solves

Searches documents with the address of the fact, not by file names.

How to call it

ragraf_doc_search(query=…)
ragraf -p config/ragraf.yaml query doc_search <query>

The ellipsis stands for a value the agent supplies; optional parameters can be omitted.

Parameters

Name Type Default
querystrrequired
limitint20
kindstr | NoneNone
docstr | NoneNone
with_textboolTrue
text_widthint240
asofstr | NoneNone
include_supersededboolFalse

What it returns

asof, count, doc_hits_before_filter, filtered_by_validity, hits, include_superseded, query