doc_get
版本: community ragraf_doc_get
按文档地址取文本及其来源:来自索引还是磁盘
参数
| 名称 | 类型 | 默认值 |
|---|---|---|
| locator | str | 必填 |
| with_provenance | bool | True |
| asof | str | None | None |
调用示例
ragraf -p config/ragraf.yaml query doc_get <locator>
尖括号表示必填参数;默认值可以不传。
返回什么
doc_id, extraction_status, kind, locator, parts, path, source, text, vector_chars
何时拒绝
空结果是退出码 0 且 found=false,不是错误。只有当前无法执行时才返回码 3:例如 capability 不是 full 时的 slice。原因总写在 note 字段里。