> ## Content Index
> Fetch the complete content index at: https://exindel.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Building a Personal Knowledge Base with Recency-Weighted Retrieval
- URL: https://exindel.com/building-a-personal-knowledge-base-with-recency-weighted-retrieval/
- Published: 2026-10-18T16:12:42.000Z
- Updated: 2026-10-18T16:12:42.000Z
- Author: Exindel
- Tags: #daily-brief, #pick, AI Agents

Nick Saraev argues that personal knowledge bases have a bad reputation because they are easy to market and look complex, but that a working one can be built in a few minutes. He runs his own for a business that, in his words, "does a fair amount of money every month." His definition is plain: a personal knowledge base is a searchable pile of your own material, plus an AI that looks things up before it answers. Engineers call the lookup step retrieval, and pairing it with generation gives retrieval augmented generation, or RAG.

## Why RAG mattered, and why big context windows don't replace it

Saraev traces RAG's popularity to small context windows: when models could not hold much text, retrieval was the way to let an AI answer across many topics without hallucinating. Most open consumer models now hold roughly 35 to 50 books' worth of text, so you could in principle paste everything into the prompt. He advises against it, mainly on cost.

The deeper problem, in his account, is that a model treats everything in its context window as equally important. If a knowledge base holds an old product price from a couple of years ago alongside a current one, the model will weight them the same and answer confidently with whichever piece of text it finds first. His fix is **recency weighting**: stamp every new item with a date, boost items with recent dates, and reduce the weight of older ones so the model favors newer material.

A second problem is **context rot**, a known issue in large language models where performance drops as more context fills the window. Saraev gives three practical reasons not to stuff everything in: it costs too much, it takes too long because the model must work through all of it, and it is less accurate than retrieval. Retrieval keeps the data elsewhere and has the model search for what it needs first, either through plain text or vector embeddings. He notes that state-of-the-art systems combine these approaches and improve on them.

## How his system, Engram, works

Saraev's own knowledge base, which he calls Engram, holds around 35,000 to 50,000 records at a time. It contains his entire Git history, all of his company's Claude sessions collectively, and video transcripts. New information is recency weighted as it arrives, and the system periodically sweeps through to remove anything no longer valuable. When he asks Claude a question, the system runs a fast inference step to pick a search term, searches the knowledge base (usually in under half a second), returns a handful of best matches, appends them to his query, and answers from them. He says this means he never worries about storing information, about Claude's memory failing, or about it pulling a random artifact from a conversation four weeks earlier instead of the recent information he wants.

## Step one: consistent context pipelines

He calls this the most important step, since a knowledge base is only as good as its data. The goal is pipelines that refresh every time an event produces data. The process:

- Define your sources first: email, your website, every lead you have conversed with, company Slack messages, and transcripts of calls from company phones, especially VoIP.
- Write a small script called a **connector** that pulls only data new since the last run.
- Have the connector stamp each item with the current date and time.

His email connector uses the Gmail API with read-only access, which he stresses: write access would give it total control of your life. On its first run it pulled a full year of email from his last three accounts; on the second it only fetched what had arrived since. It runs on his own schedule, every 15 minutes, though he says you can set whatever interval your compute allows.

He strongly recommends adding Claude or ChatGPT sessions. Those are already stored on your computer as plain text, which makes them easy to index, but they are normally deleted after 30 days. Indexing them lets you consult conversations from months ago, which he says are often vital for developing ideas from bigger projects, and stops you repeating yourself. He suggests pasting the video transcript into your favorite agent and asking "what are my sources?" to get a start on enumerating them and building the rest of the pipeline.

## Step two: let a cheap model write the summaries

Raw text is hard to search, especially for AI doing keyword matching. So each long item is stored as the item itself plus metadata: a list of short notes about its contents, usually rephrased several times to capture the idea correctly. The metadata has two parts:

- A short summary of the topic that includes the question someone would likely type to find it.
- **Atoms**: exact error messages, exact fixes, commands that work, and the decisions behind why someone did what they did at the time.

Atoms, in his framing, turn the implicit decisions people in a company make into explicit institutional memory, which gives you any workflow or process you or an agent might want. This step uses another language model. He currently uses Claude Haiku 5.5, previously 4.5, and expects to move to 6.5 later; his general advice is to use the cheapest model from whichever provider you trust with the information, give it a prompt (which your AI can build from the transcript), and have it generate the notes and atoms every time something enters the system. The payoff is that the agent searches summaries rather than raw data, and when a summary matches, it is pointed to the full raw item.

## Step three: make it searchable with plain text

Saraev says most people overcomplicate this with vector databases, and that embeddings are not required. Plain text search is the simplest route. When he realized people were doing this without RAG, inference time and the cost of maintaining vector databases and embeddings each fell by about nine-tenths, and the system now runs on large strings of text. The specific algorithm is **BM25**, around since the 1990s, which scores each stored document by the frequency of the words used to search for it. He says that is all you need and Claude infers the rest. He cites Boris Cherney, the person initially behind Claude Code, as saying plain search outperformed every other approach by a lot, and calls the realization that RAG had been overcomplicated for a long time insane.

## Step four: keep it fresh

A background script must rerun and recheck that the connector works. If it breaks, no new data reaches the knowledge base and the whole thing fails. He lists what goes wrong over time: API keys get rotated, permissions change, routes stop working. The script needs to constantly update for these.

## Where the design came from

Saraev says the system builds on a second-brain design he read about from Cohere, a company that makes language model products and builds RAG systems. After seeing their ingestion pipeline, he tested it against his earlier RAG approaches, found the comparison was not close, and decided to go deep on it. He also offers a copy-paste prompt to rebuild the whole system, available through Maker Zero, his free resource hub: join, go to the community tab, find it under recently uploaded, and it appears on the left side of the page.

[Source: Nick Saraev on YouTube](https://www.youtube.com/watch?v=LP7bfT4vOlo&ref=exindel.com)