ragraf_doc_get
Edition: community Capability: documents Operation page: doc_get
What it does
Text by document address, with provenance: from the index or from disk
What problem it solves
Fetches a document by address with provenance: whether it came from the index or the disk.
How to call it
ragraf_doc_get(locator=…)
ragraf -p config/ragraf.yaml query doc_get <locator>
The ellipsis stands for a value the agent supplies; optional parameters can be omitted.
Parameters
| Name | Type | Default |
|---|---|---|
| locator | str | required |
| with_provenance | bool | True |
| asof | str | None | None |
What it returns
doc_id, extraction_status, kind, locator, parts, path, source, text, vector_chars