# How the Deed Module Works: Retrieval for Property Documents

> Source: <https://dev.to/slawekluzny/how-the-deed-module-works-retrieval-for-property-documents-293e>
> Published: 2026-12-06 01:08:15+00:00

**Recommendation:** Split documents on paragraph and section boundaries rather than fixed character counts, and extract only explicit dates by pattern match, leaving relative deadlines to humans to avoid harmful guesses.
More in the playbook "Retrieval and RAG": <https://wpnews.pro/playbooks/rag-retrieval>

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.

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.

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.

When you ask a question, Kep:

`deed` documents;
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.

This is the part that is genuinely Deed-specific. The model is told, in substance:

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.

Precision matters more here than marketing, so:

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.
