Demo¶
sample_paper_path
¶
Absolute path to the bundled sample PDF.
Returns the same path on every call. Works for both editable installs
(resolves to examples/data/sample.pdf) and wheel installs (resolves
to the in-package _data/sample.pdf).
Source code in src/verifiable_rag/demo.py
sample_paper_text
¶
load_sample_document
¶
Return the pre-parsed :class:Document for the bundled sample.
Skips the parse step entirely — first-run cost drops from ~5 sec (PyMuPDF parse) to ~50 ms (JSON load). Useful for testing chunker/embedder/generator changes without re-paying parse cost.