How the Deed Module Works: Retrieval for Property Documents
How the Deed Module Works: Retrieval for Property Documents Kep is a private AI assistant that runs entirely on a firm's own machine, with a local model — documents never leave the building. The Deed module is its vers
How the Deed Module Works: Retrieval for Property Documents
Kep is a private AI assistant that runs entirely on a firm's own machine, with a local model — documents never leave the building. The Deed module is its version for UK property and conveyancing practices: title deeds, leases, searches and the paperwork around them.
The most honest way to describe the Deed module is also the most useful: it is not a separate engine. It uses exactly the same retrieval engine as Kep's Clause module for contracts. What makes it the Deed module is a different instruction to the model, and a tag that keeps property documents together. Here's how the pieces fit.
1. Ingestion: splitting documents where they naturally split
When a document is uploaded, Kep extracts its text (with OCR for scanned pages) and cuts it into chunks for search. Most systems cut at a fixed number of characters. Kep doesn't: it splits on paragraph and section boundaries, grouping paragraphs into chunks of roughly 1,200 characters and never splitting a paragraph across two chunks. A clause cut in half by a naive splitter is useless for retrieval — half a covenant is not a covenant.
Each chunk remembers which page it came from, so answers can point back to it.
At the same time, Kep pulls out explicit calendar dates — "15 March 2026", "2026-03-15", "15/03/2026" — with a plain pattern match, not by asking the model. It deliberately does not try to compute relative deadlines like "within 14 days of notice": turning that into an actual date means knowing which other date it's anchored to, and a wrong guess could genuinely harm a client if someone trusted it.
2. The module tag
A document uploaded for property work is tagged with the deed module. That tag doesn't change how the document is stored or searched — it changes which documents a Deed conversation is allowed to draw on. In a Deed conversation, only documents tagged deed are used to answer.
3. Retrieval: who can see it comes first
When you ask a question, Kep:
- works out which documents you're allowed to see — before anything else. Documents are private to the person who uploaded them unless they've been explicitly shared;
- runs a vector search across the stored chunks, deliberately fetching more candidates than it needs, because many will be removed in the next step;
-
drops everything you can't see, then keeps only chunks from
deeddocuments; - passes the best remaining chunks to the model.
You can also open a single document and ask about that document alone; the visibility check still runs first, so asking about a document you can't see returns nothing.
4. The instruction to the model
This is the part that is genuinely Deed-specific. The model is told, in substance:
- it assists a UK property or conveyancing practice with title deeds, leases, searches and related documents, strictly grounded in the documents provided;
- every factual claim must cite the specific document and page or section it came from;
- if the documents don't contain the answer, it must say so plainly — not fill the gap with general property-law knowledge presented as fact;
- its output is an aid to professional judgement, not legal advice.
Citations aren't just a request in the prompt: every answer's sources are stored alongside the message, so it can be traced back to the documents it came from.
What it doesn't do (yet)
Precision matters more here than marketing, so:
- It doesn't parse a deed into structured fields. There's no clause-by-clause extraction of parties, covenants or easements. It finds the most relevant passages and quotes them.
- Grounding reduces errors; it doesn't abolish them. A local model instructed to cite its sources and admit gaps is far safer than a chatbot guessing from memory — but a fee earner still has to read the cited text.
- It's a licensed module. Which modules a firm has is part of its licence agreement; it isn't a toggle a user flips locally.
Why it's built this way
Property documents are long, dense and confidential. The design choices all follow from that: keep the documents on the firm's own machine, split them where a human would, check who's allowed to see what before searching, and make every answer point back to a page. The model explains; the documents decide.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.