1. Ungrounded Generative Guessing vs. Grounded Retrieval
At their core, general-purpose Large Language Models (LLMs) are statistical sequence predictors trained to emit plausible-sounding next tokens. When queried about specialized company operations without grounding, an unconstrained model draws upon diffuse probabilistic weights acquired during internet-scale training. If the model does not possess a specific fact, it fabricates a fluent, convincing falsehood—an architectural reality known as hallucination.
Ungrounded Generative Guessing
Mechanism: Relies solely on latent training weights. Generates text that mimics authoritative tone without source provenance.
Failure Mode: Invents plausible contract clauses, fabricates equipment torque specs, and confidently misquotes company policy.
Auditability: Zero. There is no original document or page number to inspect or verify.
Grounded Retrieval Architecture
Mechanism: Constrains generation to retrieved text passages extracted from client repositories on the LAN.
Safety Controls: Low-temperature sampling, a closed-world instruction and, where the output is structured, grammar constraints that require a source marker.
Auditability: Each claim is meant to link to a file name, section heading and page, so a reviewer can check it. Where the parser cannot recover a page, the reference stops at what it can prove.
In high-stakes commercial environments—such as engineering operations, regulatory compliance, and commercial contract analysis—probabilistic guessing is unacceptable. Grounding changes the workflow: the model drafts from retrieved passages, and a reviewer checks the answer against those passages.
2. Chunk-Level Source Coordinate Mapping
To ground an answer reliably, the document ingestion pipeline must preserve granular metadata for every tokenized passage. When a multi-page PDF, Word document, or technical drawing enters the Soviture local processing queue, it undergoes structural decomposition:
Step A: Layout Extraction
The parser analyzes typography, bounding boxes, table structures, and page breaks, recording the physical coordinates of text blocks rather than flattening text into a monolithic string.
Step B: Semantic Chunking with Overlap
Passages are partitioned into coherent chunks (typically 400 to 600 tokens) aligned with structural boundaries such as paragraphs and numbered clauses. Each chunk carries a metadata record: { document_id, file_path, page_number, section_heading, hash_digest }. Page and heading are recorded where the source format exposes them; a flat text export may not.
Step C: High-Dimensional Vectorization
Chunks are embedded locally using the selected embedding model and stored alongside their source metadata. Vector dimensions depend on that model. The raw text and metadata are held in the deployment's local storage.
3. Sentence-by-Sentence Attribution Mechanics
When an authorized employee asks a question, the vector engine retrieves candidate passages based on cosine similarity and re-ranks them using a cross-encoder model. These retrieved passages are loaded into the language model's context window alongside an instruction set.
The prompt asks the model to construct its response from the supplied context, and to mark where each statement came from:
- Closed-World Assumption: The model is instructed to treat the provided context as the complete universe of truth. If the context does not contain the answer, the model is programmed to state: "The indexed documents do not provide this information."
- Atomic Bracketed Citations: The instruction asks for an explicit citation token on each factual statement, corresponding to the chunk it came from. Compliance is checked at review, because models do not always obey instructions.
- Grammar-Constrained Decoding: Where the output must be machine-readable, a GBNF (GGML BNF) grammar can constrain token selection so the response cannot take a shape the application cannot parse.
Illustrative citation layout using an invented agreement and clauses; not legal advice or a client document.
4. Verifiable Human Review & UI Citation Extraction
A citation string is only useful if it lets a person check the source quickly. The interface is designed to turn each citation into a review anchor.
When a staff member selects a citation badge, the intended behaviour is:
- An excerpt overlay shows the verbatim text extracted from the file.
- A deep link opens the original PDF or Word file at the cited page, with the source paragraph highlighted where the viewer supports it.
- The file's network path (for example
\\internal-nas\Legal\Contracts\2024\Vendor_MLA.pdf) is shown, so the original signature and execution date can be inspected.
5. The Foundation: It Drafts. A Person Checks.
Document grounding is not an attempt to create an autonomous, unaccountable oracle. It gives reviewers a route back to the evidence; how much time that saves is tested in the pilot. As emphasised across our methodology, it drafts; a person checks.