{"slug": "how-the-deed-module-works-retrieval-for-property-documents", "title": "How the Deed Module Works: Retrieval for Property Documents", "summary": "A developer built the Deed module for Kep, a private AI assistant that runs a local model entirely on a firm's own machine so property documents never leave the building. The module reuses Kep's existing retrieval engine from its Clause contracts product, differing only in a property-specific prompt and a `deed` tag that restricts which documents a conversation can draw on. The system chunks text on paragraph and section boundaries at roughly 1,200 characters without splitting paragraphs, extracts only explicit calendar dates via pattern matching rather than computing relative deadlines, and stores each answer's sources for traceability.", "body_md": "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.\n\nThe 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.\n\nWhen 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.\n\nEach chunk remembers which page it came from, so answers can point back to it.\n\nAt 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.\n\nA 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.\n\nWhen you ask a question, Kep:\n\n`deed` documents;\nYou 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.\n\nThis is the part that is genuinely Deed-specific. The model is told, in substance:\n\nCitations 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.\n\nPrecision matters more here than marketing, so:\n\nProperty 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.", "url": "https://wpnews.pro/news/how-the-deed-module-works-retrieval-for-property-documents", "canonical_source": "https://dev.to/slawekluzny/how-the-deed-module-works-retrieval-for-property-documents-293e", "published_at": "2026-12-06 01:08:15+00:00", "updated_at": "2026-12-06 01:14:35.959976+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-agents", "ai-tools"], "entities": ["Kep", "Deed module", "Clause module"], "also_reported_by": [], "takeaway": "Chunk on paragraph and section boundaries at roughly 1,200 characters and never split a paragraph, since half a covenant is useless for retrieval; extract only explicit calendar dates by pattern match and skip relative deadlines like 'within 14 days of notice'.", "recommendation": {"advice": "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.", "playbook": "rag-retrieval", "playbook_url": "https://wpnews.pro/playbooks/rag-retrieval"}, "alternates": {"html": "https://wpnews.pro/news/how-the-deed-module-works-retrieval-for-property-documents", "markdown": "https://wpnews.pro/news/how-the-deed-module-works-retrieval-for-property-documents.md", "text": "https://wpnews.pro/news/how-the-deed-module-works-retrieval-for-property-documents.txt", "jsonld": "https://wpnews.pro/news/how-the-deed-module-works-retrieval-for-property-documents.jsonld"}}