doc_search
版本: community ragraf_doc_search
按文档块检索:事实、地址、来源
参数
| 名称 | 类型 | 默认值 |
|---|---|---|
| query | str | 必填 |
| 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 |
调用示例
ragraf -p config/ragraf.yaml query doc_search <query>
尖括号表示必填参数;默认值可以不传。
返回什么
asof, count, doc_hits_before_filter, filtered_by_validity, hits, include_superseded, query
何时拒绝
空结果是退出码 0 且 found=false,不是错误。只有当前无法执行时才返回码 3:例如 capability 不是 full 时的 slice。原因总写在 note 字段里。