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 |
|---|---|---|
| query | str | required |
| limit | int | 20 |
| kind | str | None | None |
| doc | str | None | None |
| with_text | bool | True |
| text_width | int | 240 |
| asof | str | None | None |
| include_superseded | bool | False |
What it returns
asof, count, doc_hits_before_filter, filtered_by_validity, hits, include_superseded, query