doc_get
Edition: community ragraf_doc_get
Text by document address, with provenance: from the index or from disk
Parameters
| Name | Type | Default |
|---|---|---|
| locator | str | required |
| with_provenance | bool | True |
| asof | str | None | None |
Call example
ragraf -p config/ragraf.yaml query doc_get <locator>
Angle brackets mark a required parameter; defaults may be omitted.
What it returns
doc_id, extraction_status, kind, locator, parts, path, source, text, vector_chars
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.