Underwriters spend a surprising part of the day looking things up: what limit was bound for this insured last year, which endorsements are on the binder, whether a broker's program ever carried a particular exclusion. The answers are in the binders. The binders are PDFs, and in many carriers they live inside the policy administration system as files attached to policy records, one per policy, thousands per year, searchable only by policy number.
This worked example shows how InsightRAG turns that store into a knowledge base. The insurer, its systems and its data are made up; the workflow shape is the one InsightRAG uses for this kind of source.
The starting point
Larkspur writes commercial property and inland marine through wholesale brokers. Its policy administration database has a binder_info table with one row per policy: the policy id, the insured, the broker and the bound binder as a PDF in a BLOB column. About six years of binders are there. Underwriters want to ask questions across them, and the underwriting operations lead wants answers to point at the exact binder and page.
1. Two workflows, one shape
The team creates two workflows from the same template: a history workflow, run once with a larger cluster profile to load every existing binder, and an incremental workflow, triggered regularly to pick up new and changed policies. Both have the same three working tasks:
- DB extract runs a query on the policy database's registered connection, writes each
BINDER_DOCout aspolicy-<POLICY_ID>-binder.pdf, and records a document id and the row's fields (insured, broker) as metadata. - Process docs extracts each PDF with a Markdown profile, so the binder's declarations, schedules and endorsements are split along their headings, with OCR for any scanned pages.
- Vector load embeds the chunks and writes them to an index called
policy.
The run-level properties set the business context once: domain policy, catalog POLICY, data group policy_ns, category Doc, and the line of business on each document. Every chunk inherits them.
2. Metadata that matches how underwriters think
The most useful decision in the project is about metadata, not models. Larkspur sets lob (commercial property or inland marine),
product (the program), and category / subcategory (binder, endorsement, schedule) on what it loads. That's
what lets an underwriter ask about inland marine binders without getting property answers that happen to sound similar, and what
lets the team add other document types later (quotes, loss runs, inspection reports) without mixing them up.
3. Asking questions
Underwriters use the workspace agent on the policy index. A question can carry filters, for example
lob: inland-marine, and is answered from the five strongest matching chunks, with the binder file, page and chunk listed as
sources. Typical questions look like:
- "What was the per-occurrence limit and deductible on the last binder for this insured?"
- "Which binders for this program include a flood exclusion endorsement?"
- "What subjectivities were listed at bind for policies placed by this broker this year?"
Questions that are really about counts and totals ("how many policies did this broker place last quarter?") belong to the policy tables, not the PDFs. Registering the policy tables in the catalog, with a short description of each table and its key columns, lets the same chat answer those from SQL instead.
Before anyone relies on an answer
Larkspur's underwriting operations lead writes twenty questions whose answers she already knows, picked from real binders across both lines and several years, including a few scanned ones. The team runs them after the history load and checks two things for each: is the answer right, and is the cited page the one that supports it. Questions that fail point at the fix: a missing filter field, a heading the splitter didn't recognise, a scanned page OCR misread. The same twenty questions are rerun after any change to the extraction profile.
4. Keeping it current and contained
- Freshness. The incremental workflow stages each run under its own timestamped path and writes a done file at the end, so the operations team can see what each run loaded and downstream jobs can wait for it.
- Containment. The binders belong to the
policy_nsdata group. Data policies record who may read, write, delete or share each catalog and location, and administrators control the workflows and indexes. - Redaction. Each workflow has a redaction setting in its properties. Binders rarely need it; claims documents, loaded later into their own index, are a different matter.
What this pattern fits
Any document that lives inside a business system as a file attached to a record fits this shape: claim files, signed contracts, inspection reports, invoices. The extract task's query decides which rows and which document column; everything after it is the same workflow. For a source made of pages and tickets rather than files, see the IT operations use case.
Questions people ask
What about binders that are scanned images?
Pages with no text are OCR'd one at a time, so a binder with one scanned endorsement doesn't slow the rest. Poor scans still read poorly; include a few in the test questions so their quality is known before anyone relies on them.
Can underwriters see only their own lines of business?
Filters on lob narrow a search, but they are chosen on the request, not enforced per user. If a line's binders must be kept from
other underwriters, load them into a separate index and control who can use it.
Do we need to export the PDFs from the policy system first?
No. The DB extract task reads them straight from the BLOB column through a registered connection, using the query in its task file, and stages each one as a file for the run.
What does it not do?
It doesn't decide coverage or replace the binder. Answers are a quick way to find the right page; the underwriter still reads it.