Bring evidence, not just text
Ethos can use its own born-digital PDF output or a supported parser adapter. The grounding source supplies the text, pages, regions, fingerprints and capabilities behind a citation check.
Ethos checks whether supported citation claims are grounded in the document source you supply. It returns explicit proof states, document locations, and reviewable evidence without asking another model to decide. Ethos verifies grounding, not whether an answer is relevant, complete, or correct.
The next step after parsing
Document retrieval and answer generation can produce a helpful answer, but neither proves that a cited claim is supported by the current document source. Ethos verifies the grounding layer. Your application still owns retrieval quality, answer relevance, synthesis and the decision to release an answer.
Ethos can use its own born-digital PDF output or a supported parser adapter. The grounding source supplies the text, pages, regions, fingerprints and capabilities behind a citation check.
Ethos checks supported citation claims, such as quotes, values, table cells and page regions, against the supplied document source. It returns a clear outcome and can provide a crop reference for review.
Source fingerprints flag when a citation no longer matches the document it claims to quote. Missing, mismatched and capability-limited checks remain explicit instead of being silently passed.
Verification flow
Citations and a grounding source go in. A canonical verification report comes out, with source locations and optional crop artifacts when the available evidence supports them.
AI answer citations - quotes, values, page/region references - are gathered as structured claims.
Supply native Ethos JSON, or adapt a supported parser through the GroundingSource boundary. It describes the text, pages, regions, fingerprints and available evidence.
Each supported claim is checked against the document evidence. Grounded, stale, not-found and capability-limited are explicit outcomes, not confidence scores.
A canonical verification_report.json plus optional crop descriptor and rendered crop artifact - the audit record.
Every requested check is grounded. The answer is certified by all_evidence_grounded.
Some checks are grounded, but the full request is not certified. Do not treat this as a release-ready answer.
No requested check is grounded. Retrieved document text and model-returned evidence IDs are not proof until they pass verification.
Deterministic by design
Retrieval scores and model confidence can tell you a passage looks relevant. They do not establish that a cited claim is supported by the cited source. Ethos performs a deterministic check over the evidence you provide: is this supported claim present at the asserted source location?
That makes Ethos a useful control alongside, not instead of, LLM-based evaluation. Use a judge or human review for relevance and reasoning quality; use Ethos when you need a repeatable answer to whether a citation binds to its source.
Honest scope
Ethos makes its evidence boundary explicit. A grounded citation is valuable proof of source support, but it is not a guarantee that an answer is complete, relevant, or correct.
With the same document source, citations and pinned verification profile, Ethos produces a repeatable evidence verdict. That makes review and CI decisions explainable instead of dependent on a second model's interpretation.
The base build is designed for local, offline execution and does not need a network call to verify evidence. PDF parsing uses an explicit operator-provided PDFium path, so deployment controls remain with your team.
Verification is parser-agnostic at its boundary. Adapt a parser output with pages, elements, text, tables, regions, fingerprints and capabilities, then Ethos can check supported claims or explain which evidence is unavailable.
Two-minute start
Use Ethos as a Rust crate, Python wheel or npm CLI. JSON verification and evidence anchoring do not need PDFium. Only PDF parsing does, and PDFium is always caller-provided through ETHOS_PDFIUM_LIBRARY_PATH.
# Rust cargo add [email protected] # Python (thin wrapper over the CLI) python3 -m pip install ethos-pdf==0.3.0 # npm - vendored macOS arm64 / Linux x64 CLI npm install -g @docushell/[email protected] ethos --version # sanity check your setup ethos doctor --require-pdfium
Guides & deep dives
Why grounding evidence - not model confidence - is the missing layer between a parsed PDF and a trustworthy answer.
A walk through the grounding loop: claims in, source-bound checks out, with page and region returned for inspection.
Deterministic, source-bound citation checks - no judge-model call - and where semantic relevance still needs a separate step.
How foreign parsers plug into Ethos through GroundingSource adapters for deterministic evidence verification.
Source fingerprints and fail-closed checks that surface drift instead of letting a bad citation slip through.
Wire --fail-on-ungrounded into CI so unverified citations block a release, not a customer.
Frequently asked questions
Straight answers on what Ethos verifies, what it does not, and where it fits in a document-AI or RAG pipeline.
Ethos is DocuShell's open-source, deterministic evidence layer for document AI. It checks whether supported citation claims are grounded in a supplied source document and returns explicit proof states, source locations and reviewable evidence when available. Ethos is released under the Apache-2.0 license.
Ethos takes supported citation claims behind an AI answer and checks them against a grounding source: does the cited evidence exist, at the stated source location, and is the source fingerprint still fresh? It returns a canonical verification report with explicit outcomes and source locations, plus crop artifacts when the supplied evidence supports them.
No. Ethos verification is deterministic and does not make a judge-model API call. Use it for citation grounding and release gates. Use a separate evaluator or human review for semantic relevance, completeness and answer quality.
Yes. Ethos is open source under the Apache-2.0 license. It ships as Rust crates, a Python wheel, and an npm package, with macOS arm64 and Linux x64 command-line binaries for evaluation.
The base build is designed for local, offline execution and does not need a network API call to verify evidence. Your deployment configuration determines where documents are processed, so teams handling private or regulated content should operate it in their approved environment.
A source fingerprint is a deterministic signature of the parsed document. When an AI citation is checked against a document whose fingerprint has changed, Ethos flags the citation as stale and fails closed, so answers cannot silently rely on an outdated version of a policy, contract, or report.
Ethos has a parser-neutral verification boundary. A supported adapter can map a parser's output into pages, text, tables, regions, fingerprints and capabilities. Ethos then checks supported claim types, or clearly reports when the source cannot supply enough evidence.
Run Ethos verification with the fail-on-ungrounded flag in CI. It exits non-zero when requested checks are stale, missing, mismatched, unsupported or capability-blocked. Treat that as one release control alongside your own checks for retrieval, relevance, safety and answer quality.
Pair the DocuShell Parse API with Ethos to verify supported citations against the source before you release an answer. Keep retrieval, answer quality and release policy as separate controls.