My family deals with tax, insurance, housing, schooling, health and legal matters. These usually involve reading and writing in German, which isn’t our first language. There are over 6,600 source files.

Sometimes even a short email needs some research and the right supporting documentation. In their work on the administrative burden of dealing with government agencies, Moynihan, Herd and Harvey distinguish three costs: learning the requirements, meeting them, and experiencing psychological strain.

I started using chatbots such as ChatGPT and Claude to help with the practical tasks. Letters could be uploaded, discussed, and a reply drafted.

This was fine for a single chat. The problem appeared as the correspondence continued. The letters kept coming, new documents were being added, and the chat became only part of a larger issue. Some chats became slow or reached a limit. Starting a new chat would involve deciding what to carry forward. The model only has a limited context length, so I would need to save something.

By summarising, I had to consider what a future chat might need before knowing what the next question would be. The main points could be covered, but a qualification or extra detail might be missing. It is also not a replacement for the actual documents.

I started thinking about how to tackle the continuity problem. The system needed to be able to save the work done, find the relevant information and allow the agent to validate how a conclusion was reached. This evolved into Boon, the system I am building for handling our family documents and context. Context engineering describes this work: deciding what information to save, what to load into the session and how to use it. The file-based system is in use in our family; the native app is still in development.

The aim is to have Boon do more of the searching, reconstructing context, drafting and follow-up. It should save us more time than it takes to use and maintain, giving us the option to handle more issues, or spend our time outside of the system.

What the summary leaves out

Session 1 Documents + working draft
Handoff A summary
Session 2 A fresh conversation
Original attachments Keep for the next session
A small qualification Can be lost
I made this schematic to show the handoff. It isn't a screenshot and doesn't represent a measured limit in any one product.

A conversation is a workspace

First I had to decide what to retain.

I retain the letter, the response we sent and the next letter. In order, these artefacts show what prompted our response and what happened afterwards.

The chat is a temporary workspace. The exact text doesn’t need to be saved as permanent memory. A new model can revisit the information and potentially reason better or work on a different question.

If a draft isn’t finished, it should still be saved. We shouldn’t have to finish the issue to close the chat. If there is useful reasoning or a decision to carry forward this can be saved as a note, or added to the draft with enough context to understand it.

I started using the artefact principle. By saving the artefacts in the correct order we can have conversations based on the artefacts. Saving artefacts means there can be a memory across sessions. The next chat should be able to continue based on the documents and saved information.

LongMemEval is a benchmark to assess if assistants can remember information, use it across sessions, update information, reason about time and understand when there is no answer in the history. In the paper’s baseline, GPT-4o got 87% of questions correct when only provided with the sessions containing the evidence. When provided with the full history, roughly 115k tokens, it only achieved 60.6%. In Boon, keeping information available and choosing what to load into a session are separate jobs.

Similar work has been done in Manus for file based context and Anthropic for artefacts between agent sessions. There are existing records for family related issues in Boon that contain original documents and saved work from conversations.

Finding the right material in a mixed archive

We already had over a decade of digital documents. Some were organised into folders, some were messy. This included PDFs, emails, Word documents, spreadsheets, scanned documents and photographs.

I wanted to add documents without loading a larger archive into every conversation. The agent should be able to search for and load the right information for the question being posed. Search and extraction can create new representations, but must leave the original documents unchanged.

I created a searchable representation of the archive so the agent can find the right information. This uses retrieval-augmented generation (RAG), but each search result also needs a way back to its source.

For example, if there was damage to a car, the archive may contain photos of the damage, an email containing the estimated cost to repair, a scanned invoice and correspondence with the insurance company. A person could link them through the incident even if the documents use different wording.

I tried various extractors. I decided to extract native text where possible. Scanned documents and images containing text were extracted using Apple Vision (OCR). PDFs containing text were processed using pdftotext. Emails and Word documents had their own parsers.

When the text has been extracted it is stored in another Markdown file known as a sidecar file. This contains a link back to the original file and also the SHA-256 hash of its contents. This allows us to confirm whether the contents of the original file have changed since the text was extracted. If the tools improve, we can extract the text again. If the original document is in plain text, the text can simply be read by the system without duplication.

Reading the archive

Text-based PDF
pdftotext
Document sidecar
Email or Word document
Format-specific parser
Document sidecar
Scan or photo of text
Apple Vision OCR
Document sidecar
Plain-text file
Read the file
Metadata-only sidecar
Non-text photograph
Preserve the image
Original + source access
I keep the original file unchanged. A photo with no text needs someone to interpret what it shows; OCR won't do that.

The semantic search uses multilingual bge-m3 embeddings. The index is stored in a SQLite database. Cosine similarity is calculated using NumPy. The agent uses the search tool via the Model Context Protocol (MCP).

The index is created from the extracted document text and context cards, then updated incrementally as the archive changes. A question searches the existing index, without extracting and embedding the whole archive again. The agent can follow the results back to the source documents and search again as the question develops. It still takes some time to search and read the sources, but that overhead is small in everyday use with the index already prepared.

The tool can search for a substring match for identifiers. It can search semantically to overcome differences in wording and language. The agent can also look through the file list and follow links on matter cards. There is still a possibility that it has not found all the documents. Multiple pieces of text related to the query do not mean there are enough documents to answer the question.

Applying the same principle inside the chat

Sometimes the OCR wouldn’t pick up certain characters in a bad quality photo. Tables could be flattened and amounts could be incorrectly matched to the wrong label. Handwritten text could be turned into a plausible word that wasn’t actually there.

After several iterations and improvements to the extraction procedure itself, I did not want the whole system to rely on perfect document text extractions. I had to think about how the agent should use the extracted text.

An answer can be incorrect even if linked to the right document. For example, Item B = 90 not 40. This can be seen in the table below. I ask Boon to check the original document for the correct value in the row. When checking dates and conclusions, we should follow the same process. If the required part of the document is illegible then we must state this is uncertain. This has been included in the agent instructions but may still not be done.

ALCE was introduced by a group of researchers (Tianyu Gao, Howard Yen, Jiatong Yu and Danqi Chen) in 2023. They have created a benchmark which measures separately how correct the answers are and how good the citations are, including if they back up the claim. The document may discuss car repairs but not confirm how much they cost. For Boon we would like to look at the original text, table or image. This is because extracts can lead to loss of detail.

Search, then check the source

01Retrieve

Semantic search
Identifier search
Search results

02Verify

Open the original
Supported Use with attribution
Unreadable or unsupported Leave it unresolved
At this point I have possible sources. I still need to check the claim. If the source doesn't support it, I leave it unresolved.

Finding the original and checking it are different issues. If the agent can read the flattened table, they can check the original row. If the later letter was not found then there will be nothing from that letter to check. The archive may also include the answer, however it may not be picked up by the agent.

Check the original row

Original table
ItemValue
Item A40
Item B90
Extracted text Item A Item B 40 90
Check the original
Readable row Item B = 90
Unreadable Leave the value unresolved
I made up these values to show how flattening loses the rows. I still need to check and attribute the original.

Having the original letter gives us the author’s perspective. We cannot assume they’re correct. If there are discrepancies between the records, we need Boon to keep track of who said what and where they differ. What is stated in the letter may not be factual.

Boon will make mistakes. Human work needs checking too. My wife found three factual errors in the initial court application by a lawyer. In a separate matter, another lawyer asked for our mail to be forwarded to us, but gave the wrong address in that same letter. Boon picked up on this and helped us draft a request for correction. The lawyer corrected the address. Using Boon means I can start working through the documents straight away when I have a question. I want to identify errors before they get passed on to a response or decision. When I find an error, I consider how it got into the process and update the extraction, search or source checks as needed.

Documents need context around them

Continuing with the car example, sometimes there may be no text in the photograph. The OCR won’t be able to describe the damage. The text embedding index won’t understand what the image is.

Without context, the model may just talk about the colour of the car, street lights or bushes in the background. This could all be correct but doesn’t tell me why the image was taken.

The person who added the photo knows why it is there and what has happened. There could also be additional information in the form of correspondence. I store this context with the matter, separately from any text extracted from the image.

I have been using Zettelkasten principles and linking notes in Obsidian for years. In Boon, I have applied this in the form of cards for people, organisations and ongoing matters.

For every ongoing situation, I create a matter card. This includes information about the people involved, reference to documents, dates, status and what needs to be done. In the example of the car, this will include references to the photos of the damage, the repair estimate and correspondence with the insurance company. Each person or organisation has their own card. Other matter cards can reference these cards meaning we can share the context between them. The matter card explains what the situation is, while the referenced cards explain who is involved.

The architecture is:

ComponentRole
Original documentsUnchanged source files
L1 – Source access & extractionSource reference, hash and extracted text
L2 – People & OrganisationsParticipants
L3 – IssuesHistory, status, evidence, questions and next actions

By searching the indexed cards, the agent can find the matter and associated photographs. The date and appearance of an old photograph may lead us to believe it relates to a known incident. We can ask the agent to look at the surrounding records for evidence. This is still a hypothesis until we have checked the link.

Records for a car repair

L2 / Person Vehicle owner
L2 / Organisation Insurer
L3 / Matter Car repair
Unconfirmed link An older photo
Damage photo
Estimate
Invoice
Correspondence

Original files + L1 source access

Recorded relationship Hypothesis to investigate
I made up the records here; they aren't private family data. The links are between files and cards. I haven't implemented GraphRAG.

Keeping the records useful

The cards contain context from other records. This can become outdated and the interpretation may be incorrect, so links to the source documents are required. The search index can be recreated from its inputs. Cards, though, may contain human context and interpretations from many sources. When updating them, that human context must remain and be distinguishable from model interpretations.

The intake captures the original document. It only extracts text if needed. The conversational model identifies people, creates links between documents and updates the relevant cards. The search index is then updated. In future conversations the information can be found by referring to the matter and source.

A letter could contain contact details for an organisation, explain what someone does or link an existing participant to another matter. I record this information on the relevant cards, along with a reference to its source.

Adding a document

01 Register the original
02 Create or validate the sidecar
03 / Model interpretation Update context cards
Person / L2
Organisation / L2
Matter / L3
04 Refresh the search index
05 Continue in the next session
These steps describe the workflow. Extraction and bookkeeping are separate from model interpretation. They don't form an atomic database transaction.

We validate to see if there are missing files or sidecars, a changed source hash, a document with no matter link or an index that needs updating. We also have curation to keep people, organisations and matters correctly linked. This can highlight inconsistencies, but we cannot assume that everything on the cards has been interpreted correctly.

The digest reads the cards and shows me any deadlines, responses we are waiting for and matters needing attention. This helps me to quickly scan through them rather than opening each matter. If there is a record for context or history there may not be a next action. There is a maintenance element. The cards need to be up-to-date, validated and the digest updated. This takes time away from the time saved by using Boon.

The working archive is stored as normal files on the local machine. These are synchronised using Google Drive. We also have an encrypted back-up using Proton Drive. We have tested that we can restore our archive from the back-up. Extraction and search run locally.

In the native-client pilot, the prompts go directly to the chosen AI provider. Anything that the cloud model reads will be sent from our computer. This includes any context that is read when adding a document. The originals and Markdown records will still be available without AI.

Where the data goes

Text extraction + search index Index stays local
On the deviceExternal service
Working archive
File synchronization
Google Drive
Archive backup
Encrypted restic backup
Proton Drive
Native client
Material + contextModel outputs
AI provider
I tested a restore from backup. That doesn't tell me whether every backup is current. File sync, backup and cloud AI remain separate paths.

I need the original files, but I also need to know what has been done with them. The folders give me access to the originals and the linked cards show the history of each matter. Search brings both into a new conversation. Saving a draft, updating the matter card and checking the sources are part of the same process as filing the next letter.

The family determines what is relevant

When creating the cards within my system, I also needed to decide how much content to include from a source.

Let’s say there is a dispute over a built-in dishwasher that broke in a rented flat. The lease may be quite long, with only a few clauses that relate to the repair. We can add these to the matter card with a link to the full lease so the agent can refer back to the document when another question is asked.

I have implemented this into my system by having the context driven by the family. This means that we are only including the relevant sections from the sources based on who is in the family, their situation and the matters they are facing.

This is where the family driven core principle comes in. The same source may be relevant to many people or matters. We would not be able to predict all uses by providing a general summary. By keeping the full source we can go back to it if we have a different question.

This also makes the archiving aspect more focused. The family documents will give us context. We can then search books, articles and specialist conversations to find knowledge related to our context. Within the family knowledge base, I have grouped this by topics. Everything is tied back to the people and issues to ensure it is relevant. Each note can include multiple sources.

The topic note will contain information based on the family member’s situation and what question we are trying to answer. I will include any relevant findings, sources and the conditions they apply to. The source quality and relevance to the family are checked separately. Although some advice may seem helpful there may not be much evidence to back it up. If the finding is well backed up it may not apply to our situation. Any ideas that don’t have enough backing will be added to the research backlog. From the family matter we can follow the topic note back to the evidence to see why it was applicable.

From sources to a family question

A book
An article
A topic note
A family member
An open question
Research backlog An unsupported idea
Here I have to ask two questions: is the source well supported, and does it apply to our family? The links are illustrative.

In the future, I want Boon to use this context to bring new information to our attention when it affects a family member or ongoing matter, before we even think to ask. When the agent should interrupt us or wait, and how this knowledge should be kept current, are questions I will discuss in future articles.

Continuing from the existing work

When the next letter comes in, we can start a new conversation and ask Boon to search for the matter. The agent can then read through the card, follow up the correspondence, check the relevant source documents and work from the draft. We no longer have to rely on my memory of what happened last time.

Picking up work in another chat

New chatSaved record
Chat 1. Find the matter
Record Matter card + timeline State, questions, document sequence
Chat 2. Check a claim
Record The original document Passage, table or image
Chat 3. Continue writing
Record The saved draft
Chat 4. Save the sent reply
Record Reply in the timeline
I haven't shipped this UI. It is an illustration with no family data. We save replies after sending them; the agent doesn't send them for us.

It needs to be more reliable and easier to maintain. New features are worth adding if they save us time after the maintenance work is taken into account. I want us or the agent to open a matter, see what has changed and continue without having to spend the evening figuring out what happened.