Read the source
Extract text and structure from PDFs, documents, logs, tables, databases, APIs, audio transcripts, or other supported formats.
A RAG system stores searchable pieces of source material and gives selected pieces to a generator.
Extract text and structure from PDFs, documents, logs, tables, databases, APIs, audio transcripts, or other supported formats.
Split by policy section, paragraph, function, transaction, incident, entity, scene, or another boundary that preserves meaning.
Each chunk may be embedded into a vector and stored with its original text and metadata. Exact, keyword, SQL, and graph indexes may coexist.
The question is searched, the top candidates are placed in a context packet, and an LLM usually writes the answer.
PAIL evaluates candidates after retrieval and before generation. It may also normalize evidence before indexing and verify claims after generation.
Group interleaved logs by transaction, trace, entity, and time rather than arbitrary line windows.
Remove wrong entities, expose relation conflicts, and preserve the strongest valid bridge.
Only verified packets may reach an optional model; missing or conflicting evidence closes the gate.
Model prose can be rejected when it introduces values or conclusions absent from the packet.
One universal fixed-size chunker is convenient but can destroy the exact boundary the answer depends on.
| Source | Useful boundary | Why |
|---|---|---|
| Policy PDF | Heading and policy section | Keep eligibility, exceptions, and version metadata together |
| Bank/POS logs | Transaction, STAN, RRN, trace, or session | Avoid mixing events from concurrent payments |
| Application incident | Incident plus bounded time window | Preserve sequence without absorbing unrelated traffic |
| SQL/CSV | Entity or record | Keep field relationships and keys intact |
| Code | Function or class | Preserve executable scope |
| Story/prose | Scene or overlapping narrative window | Maintain characters and before/after context |
The number is identical. The intent and permitted answer are different.
Employee requests 30 days away.
24 annual-leave days remain.
6 days; unpaid leave allowed with approval.
24 annual + 6 unpaid, manager approval required.
Template or LLM restates only that decision.
The trustworthy core remains deterministic in every mode.
Best for bounded API responses, policy calculations, offline systems, and workflows where language variation is limited.
The model sees the decision object and evidence IDs. It cannot change numbers, status, or permitted alternatives.
A model may map flexible language into a canonical intent, but PAIL verifies that structure against evidence and policy before any action or answer.
The public lab makes the outcome visible without exposing the proprietary runtime.