AI implementationKnowledge baseAugust 2026

A second brain the model can read

Everyone handing a model their own material for the first time asks the same seven questions. All of them come back to one fact, and once that fact lands, the answers stop being matters of taste and become arithmetic you can move with a slider.

The premiseone fact

A model cannot see your files

This is the misunderstanding most first implementations run aground on. People say "we'll give the AI our documentation" as though the model has it somewhere and goes to look. It does not have it and it does not look.

A model sees only the text someone handed it at the moment you asked. Everything else, the whole knowledge base, the folders, the semantic search, the vectors, is machinery for deciding what that text should be.

Once that lands, arguments about organising knowledge stop being arguments about style. They start being countable. Which is why most of what follows is a knob you can turn and watch the recommendation move.

The worked example is a real one: someone has a few hundred events from their own life and wants a base a model can genuinely use. Company documentation, an archive of proposals, meeting notes, a procedures library, all obey exactly the same laws.

The deskone file or many

Why one big document stops working

The model's context window is a desk, not a library. Everything it reasons about has to be lying on that desk at once. Your entire documentation on the desk means there is no room left for the actual work, and it means every question pays for the whole archive.

A knowledge base is not about tidiness. It is about being able to put eight cards on the desk instead of the whole drawer.

Model I · The desk

drag to load context

What falls out of that bar: loading the whole base at once is not catastrophic on a large window. It is merely expensive on every single question, and it buries the relevant page among six hundred irrelevant ones. A good retrieval, the eight to twelve pages that actually bear on what you asked, costs almost nothing.

The call: break it into pages. Not because six hundred files look neat, but because the alternative charges you the whole archive for every question and answers worse while doing it.
Grainhow many files is too many

Six hundred files is a lot for a human with a mouse, not for a machine

The real trade is not file count, it is grain: how much unrelated material rides along whenever retrieval pulls the relevant material out.

Your archive is a roughly fixed amount of writing. Splitting it does not shrink it. It changes how sharply you can cut a piece out. Coarse pages are cheap to maintain and drag noise into every answer. Fine pages retrieve cleanly and multiply the things that can drift out of date.

Model II · Grain

same corpus, different cuts

Where the numbers come from: this is a toy model. It assumes about 150 words of a page bear on a typical question, and that one retrieval pulls six pages. The shape of the curve is right. The exact values are illustration.

The curve has a wide flat floor somewhere around 200 to 500 words per page: one event, a few paragraphs, told once. On an archive of a few hundred thousand words that lands you at several hundred files, and that is the right order of magnitude.

The call: do not worry about the file count, worry about duplication. The same fact restated on nine pages means a correction has to be made nine times. One fact, one home, links from everywhere else.
Indexfolders or links

A folder is a single index, and it forces you to pick which one

Filed by year, an event has exactly one home, and every other way you will ever want to reach it, by person, by client, by theme, by the thing it caused, has just ceased to exist. That is the cost nobody sees at the moment they choose the folder tree.

Links have no such limit. A page can sit under 2016/ and still be reachable from a client note, from the person who introduced you, and from the decision it later explains. Folders are for a human skimming. Links are for finding.

IndexGood atFails atCosts
Folders by yearHuman browsing, obvious orderingAnything that is not chronologyOne dimension only
Dated filenamesSorting, glancing, text searchRecall by meaningNaming discipline
FrontmatterSlicing by person, place, themeUnnamed conceptsVocabulary drift
Links between pagesNeighbourhood, causation, storyPages nobody linkedAttention while writing
The call: year folders, yes, for your eyes and because dated filenames sort themselves. But treat them as furniture, not as the index. The index is filenames, frontmatter and links, and an agent reads all three faster than you can open a folder.
Retrievalthis is the real question

Vectors or links, the one argument here that genuinely exists

They are not rivals so much as two different answers to how do I find the right page without reading them all. Worth seeing the mechanics of both, because the mechanics decide which one fails you and when.

What semantic search actually does

It cuts your writing into chunks, runs each chunk through a model that turns text into a list of numbers, and stores the result. Your question gets the same treatment, and the system returns the chunks whose numbers sit nearest yours. Nearness in that number space approximates nearness in meaning. That is the magic and also the whole problem.

Where it quietly goes wrong is the cutting. Too fine and the answer straddles the seam. Too coarse and every hit drags a paragraph of unrelated material along with it.

Model III · Chunking

one page, cut different ways

How to read it: the bold sentences are the two that together answer "why did this happen". The green chunk holds both, the amber one holds only half.

What a link graph does

No numbers. A page has a name, the name appears on other pages, and the agent simply walks: read the index, open the page whose name matches, follow its links one hop out. It is what a person does in a library, done quickly. Retrieval you can read, argue with, and repair by editing one line of text.

Below, the same four questions run through three methods: plain filename search, semantic search, and the link graph.

Model IV · Three ways to find a page

pick a question

The pattern that emerges: naming beats meaning when the thing has a name, and meaning beats naming when it does not. Questions about a person, a place, a date land the graph cleanly. Questions phrased in feelings, "the hardest year", "when I was drifting", land nowhere in a graph unless you happened to write those words down. That is the one case where vectors earn their keep.

The call: for a few hundred pages written by one person, about things that person knows: the graph, and no vector store. It is easier to build, you can see why it retrieved what it retrieved, and a bad retrieval is fixed by renaming a file. Vectors start paying at archives where nobody knows what is in there any more: a company knowledge base, thousands of documents, many authors.
Link graphSemantic search
Built fromNames, links, frontmatterChunks and vectors
SetupWriting disciplineModel, store, a whole pipeline
Why this hitReadable: a name, a linkOpaque: a distance
Fixing a bad resultRename, add a linkRe-chunk, re-embed, tune
Breaks whenYou never wrote the wordThe answer spans chunks
Scales toThousands of pagesMillions
Glossaryso nobody can talk past you

Seven words that come up in every one of these conversations

format
Changes how it looks only. Line breaks, spacing, heading style. Never changes meaning, so it is safe to run on everything, always.
lint
Reads and complains. Broken link, missing date, a tag used only once, two pages claiming the same title. Your base's smoke alarm.
frontmatter
The block at the top of a file between --- lines. Where date, people, place and tags live, so they can be filtered rather than read.
chunk
A slice of text a semantic system stores and retrieves as one unit. In a page-based archive the page is the chunk, which is a quiet argument for pages the size of one idea.
vector
Text turned into a long list of numbers, arranged so similar meanings sit close together. The engine under the phrase "semantic search".
context window
The desk. Everything the model can see this turn: your files, your question, its own earlier replies. Measured in tokens.
token
The unit the model reads and you pay for. Roughly three quarters of an English word, so a thousand words is about 1,350 tokens.

A lint pass is worth having early: it is what catches the link you typed to a page you never created. That is the quiet way a graph hollows out from the inside.

The toolchat, or something that touches files

Chat will produce six hundred files. It will not maintain them

Chat hands you text, you paste it somewhere, and every future correction is another round of copying. That is the difference and it is the whole difference: chat gives you output, an agent with file access gives you an archive it can return to.

SurfaceReads your filesWrites themRight for
ChatOnly what you pasteNoThinking, settling the shape
Agent with file accessYesYesConverting hundreds of files, in batches
Agent in the terminalYesYes, plus version historyAnything you want reversible
Notes editorYou readYou writeReading and writing it afterwards

A notes editor is not a competing system, which is usually the real worry underneath this question. It is a text editor over a folder of plain files. The agent writes the files, the editor shows them to you with the links clickable, and neither owns anything. If you dropped both tomorrow the folder still opens.

The call: plan in chat, where changing your mind is cheap. Convert with something that has file access. Put the folder under version control before the first batch, because six hundred files written by an agent is exactly the situation where you want to undo everything at once.
The splitwhere to spend the money

Strong model for the decisions, cheaper one for the transcription

The two halves of this project are not the same kind of work. Settling the taxonomy, what counts as an event, which tags exist, what a page looks like, is judgement, done once, and every mistake there is multiplied by six hundred. Turning event number 340 into a file is transcription against a settled spec.

Model V · Where the effort goes

slide the split

The units are relative, these are not prices. The point is the ratio: the decisions are a sliver of the turns and nearly all of the consequences.

One mechanical caveat: switching models switches the whole conversation, not the next message. The new model inherits the transcript and carries on. That is fine going into execution, because the plan is written down by then. Going back to designing, switch back up first, because the thinking that produced a good taxonomy is not in the transcript. Only its conclusions are.

The call: strongest model for the taxonomy and the first ten pages. Once ten conversions come out right without you correcting them, the spec is real and the rest can go down a rung. If corrections start reappearing, that is not the model failing, it is the spec being thinner than it looked.
ReviewI still have to read it

There is no way around it, but there is a way to review twelve pages instead of six hundred

The trick is to make the agent declare its own doubt as it works, rather than leaving you to find it afterwards. Concretely: one field in the frontmatter and one queue file.

  1. Every page states its footing.Confidence high when the source said it plainly. Low when a date was inferred, a name guessed, or two entries merged on a hunch.
  2. Doubts collect in one place.A running list: page, question, what was assumed. You read a list, not an archive.
  3. You rule on it, briefly.One line per item. Corrections land in the pages.
  4. The ruling becomes a rule."Undated notes go to the month, never the day" goes into the taxonomy file, so the same class of doubt never reaches you twice.

That is the shape worth insisting on, in this project and every one after it: the work is autonomous, the uncertainty is escalated, and each ruling gets written down as policy. Your attention goes only where it changes an outcome.

Finallythe order of operations

Six steps, in this order

  1. Folder under version control.Before a single generated file lands. Everything after this is reversible, nothing before it is.
  2. Taxonomy on the strongest model.Domains, tags, page shape, frontmatter fields, naming convention. Written to its own file so it can be cited later, and one line on what an event is not.
  3. Ten pages, end to end.Read properly. This is the only full read you will do. Every correction here saves six hundred repetitions.
  4. The rest in batches, a rung down.In runs of about fifty, with the confidence field on and the review queue accumulating.
  5. Lint, then the queue.Broken links and orphan tags first, because that part is mechanical. Then the judgement calls.
  6. Only then ask about vectors.Work on the graph for a fortnight. If you catch yourself asking questions no filename could answer, that is the moment semantic search becomes a real question rather than a premature one.

The last point matters most. The archive is the asset: plain files, yours, portable, readable in forty years. Every retrieval scheme built on top is replaceable machinery, and machinery is far easier to add to a good archive than an archive is to rescue from good machinery.

If this is the conversation you want to have

I build AI into small and mid-sized companies: automations, agent systems, knowledge bases a model actually uses. Things that subtract repetitive work instead of adding another tool. I also run workshops for teams, after which it is clear what can be built and what is an expensive promise.

We usually start with a short conversation about where the repetitive work sits in your week.

Get in touch

Mateusz Sawka builds AI systems for companies. Twelve years as a software engineer, previously fintech and education, now implementations and automation under the Komai name. This page exists because the same questions kept coming back in conversation after conversation, and an answer in paragraph form never convinces anyone the way a slider they can move themselves does.