The Reasoning Engine Inside One Agent
Technology covers which model runs and where it is deployed. This page is about what happens inside a single case: how the AiServa agent finds the right passage in your own documents, how it holds your decision framework as something it can trace, and how it plans, acts and checks itself rather than answering in one shot.


Retrieval, Engineered So It Does Not Guess
A model that answers from memory alone will eventually state something false with total confidence. AiServa never lets a case run on memory. Every answer is retrieved from your own material first, the same way a new hire would go and find the actual contract instead of quoting one from recollection.
- 01
Chunking That Respects Document Structure
A contract, an invoice and a support thread break into very different pieces. We chunk by clause, by line item and by message, not by a fixed character count that can cut a clause in half.
- 02
Hybrid Retrieval, Not Embeddings Alone
Semantic search finds what a passage means. Exact keyword search finds the specific invoice number or clause reference it contains. AiServa runs both, because an embedding can drift on the one figure that actually decides the case.
- 03
Re-Ranked Against Your Playbook
The first pass returns what looks related. A second pass re-ranks against your decision framework, so the passage that actually governs the case surfaces first, not the one that merely shares its vocabulary.
- 04
Every Answer Cites Its Source Passage
Nothing is stated without a pointer back to the exact page, clause or line it came from. That citation is what a reviewer checks, and it is what the evidence trail records.
- 05
Tested on Your Own Held-Out Cases
Retrieval quality is measured against real cases from your queue that the agent has not seen, not a public benchmark that has nothing to do with your documents.
A Knowledge Graph, Not a Folder of Documents
Retrieval finds the right passage. The graph is what lets the agent understand how that passage relates to everything else, your entities, your rules and your precedent, without flattening all of it into one undifferentiated pile of text.

Entities and Relationships, Modelled Explicitly
A vendor connects to its contracts, a contract to its clauses, a clause to the precedent that interpreted it. The graph holds these connections as data, not as something the model has to re-infer from raw text on every case.
Your Decision Framework as a Readable Graph
The thresholds, constraints and escalation rules captured during Codify are nodes and edges, not prose. That is what makes the framework something both the agent and your team can trace, not a document that only means what one person remembers.
The Traversal Is the Explanation
When the agent gives an answer, the path it took through the graph is the reason. That is a real explanation you can walk through case by case, not a plausible sentence generated after the fact.
New Precedent Extends the Graph, Not a Retrain
When your team decides something new, that decision becomes a node connected to the relevant rule. The graph grows with your business day to day, and the model underneath does not need retraining for the framework to learn.
An Agent That Plans, Acts and Checks Itself
Agentic is a specific claim, not a marketing word. It means the agent decides its own next step inside a case, rather than following one fixed prompt-and-answer script. Four things have to be true for that claim to hold, and all four are what we build.
Breaks a Case Into the Steps a Person Would Take
Reading the incoming document, checking it against the framework, verifying with a second system, drafting the response. The case is decomposed the way a trained member of staff would do it, not answered in one pass.
Chooses Which System to Call at Each Step
The agent decides whether this case needs the ERP, the CRM, a browser session or just the documents already retrieved, rather than running a fixed integration script that assumes every case has the same shape.
Checks Its Own Output Before Moving On
Before one step's result is used to start the next, it is tested against the decision framework it was given. A result that fails that check does not silently carry forward.
Recognises the Edge of Its Own Authority
The same boundary that governs a person's role governs the agent's. Workflow Guard enforces that boundary technically; the agent is built to look for the edge, not to push through it.

How One Case Moves Through the Pipeline
Retrieval, the graph and the agent loop are not three separate features. On a real case they run as one pipeline, in this order, every time.

- 01
Retrieve
The case pulls the specific passages it needs from your documents, ranked against your framework, not the whole archive.
- 02
Reason Against the Graph
The retrieved material is placed against the relevant nodes: which rule applies, which threshold is closest, which precedent is nearest.
- 03
Act Through the Connection Layer
The agent calls the system the step actually requires, API first and the browser only where nothing else exists, under its own named credentials.
- 04
Check Against Workflow Guard
Every action is tested against approval chains, spending ceilings and segregation of duties before it executes, not after.
- 05
Log the Evidence
What was read, which rule applied, which threshold was hit and which precedent it followed are written to the evidence trail before the case is closed.
- 06
Hand Off If Outside Authority
A case that reaches the edge of the framework stops there and goes to the named person who owns that decision, with everything above already attached.
Steps four and five are Workflow Guard and the evidence trail. Read How Governance Is Enforced
Model selection and deployment are covered separately. See Model Selection and Deployment
See This Reasoning on Your Own Documents
The best way to judge a retrieval and reasoning architecture is to watch it read a case from your actual queue. Bring your technical lead and a handful of real, awkward examples to the first session.