doc_search
Edition: community ragraf_doc_search
Search across document chunks: the fact, its address, its provenance
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 |
Call example
ragraf -p config/ragraf.yaml query doc_search <query>
Angle brackets mark a required parameter; defaults may be omitted.
What it returns
asof, count, doc_hits_before_filter, filtered_by_validity, hits, include_superseded, query
When it refuses
An empty result is exit code 0 with found=false, not an error. Code 3 is returned only when the operation cannot run right now: for example slice when capability is not full. The reason is always named in the note field.