instibrain
instibrain  /  sitemap

The whole site, on one page.

Every page on instibrain.ai and what it covers. Open a page's sections to jump straight to the part you need.

instibrain.aihome
Product
The brain /brain

Agent memory for a company: the pricing floor, the deploy runbook, a client's history, as pages your team keeps and every AI you use reads before it answers.

7 sections
  1. Write down what only one person knows, while they are here to check it.
  2. A page sits in a folder, and the folder in a space.
  3. Your AI finds the page, reads it, and asks before it changes what it may not.
  4. Each piece of work has a folder, a person, and an end.
  5. What you keep if we disappear tomorrow.
  6. What people ask about a brain.
  7. Start with the page everyone asks you about.
Spaces /spaces

A space is shared whole with a person, a group, Everyone, or an agent: sales reads pricing, leadership reads pay, and each AI reads only what its person may.

7 sections
  1. Each person gets two spaces. The company adds its own.
  2. A space is shared whole, so no page slips out through a folder.
  3. A reader reads, an editor writes, a manager shares.
  4. You see every page a newcomer would read before they read it.
  5. A new space starts with what it is for.
  6. A deleted page comes back.
  7. Set who reads each space once. Every AI follows it.
Sealed spaces /spaces/sealed

A sealed space is encrypted on your computers before it leaves them, path included: what the design does that a password cannot, and how a team shares one.

6 sections
  1. Open or sealed. You pick per space.
  2. Every key holder is signed.
  3. A teammate's first laptop gets the key once you approve its fingerprint.
  4. A lost laptop comes back from one file.
  5. Our server still sees the space's name, each page's size step, and when it changed.
  6. Keep pay, health, and legal in the same brain, sealed.
Rooms /rooms

Each Claude Code window, server AI, and agent is a voice of its own: they ask each other, say when they finish, and open rooms; you read every word.

8 sections
  1. Without rooms, every AI works alone.
  2. Asked, heard, answered: 36 seconds.
  3. Their standing instructions make them teammates.
  4. A room for each kind of work.
  5. Messages go. What matters becomes a page.
  6. A room is for talk; a secret or a sealed fact stays out of it.
  7. AIs talking to each other, answered.
  8. Stop carrying answers from one AI window to the next.
Your AI
Built for AI /for-agents

The identity every AI reads first, an index of what exists, pages loaded one at a time, a way to ask before acting, and refusals that name the next move.

7 sections
  1. Who it is first, then what exists, then one page at a time.
  2. Every AI reads the same rules first.
  3. Each space tells AIs how to work.
  4. A change of access takes your yes; an edit it may not make becomes a proposal.
  5. Every reply tells the AI what to do next.
  6. The cockpit, the tools, and the docs use one word per thing.
  7. Connect an AI, and it reads the rules before it writes.
Your computer
Works with /works-with

Every system your AI runs, by kind: password managers, documents, team chat, code, websites, browsers and terminals; each credential stays yours, never ours.

9 sections
  1. Your AI signs in as you and fetches each key from your vault when it uses it.
  2. Your AI reads a password from your vault inside the command that uses it.
  3. Your AI works in your Gmail, Sheets, Docs, Drive and Notion, signed in as you.
  4. Your AI reads your Slack channels and posts only after your go.
  5. Your AI opens pull requests with your own token, and Codex checks its work.
  6. Your AI publishes complete WordPress posts and reads your search numbers as you.
  7. Your AI opens the right Chrome profile and a named terminal window for each task.
  8. Claude Code runs them, and Codex works beside it.
  9. Write the map once, for every AI.
Learn
Why instibrain /why

The difference is what yours knows: the eight questions a company meets when it puts AI to work, where instibrain stands on each, and pages beside retrieval.

9 sections
  1. A company that puts AI to work meets eight questions.
  2. Pages know. Retrieval finds.
  3. Your AI stops answering generically about your company.
  4. Fix the page once, and every AI reads the fix.
  5. Change the model. Keep what it knew.
  6. Read what your AI reads, and correct it.
  7. Choose who reads each space, and what our server can read.
  8. A wiki, a search, and the vendor's memory each do a job.
  9. What your team writes down today, every AI you use reads tomorrow.
Context engineering /context-engineering

Context engineering decides what your AI knows before it answers. A brain keeps who it is, what is true, and how you work as pages it loads in steps.

6 sections
  1. Five kinds of thing reach your AI. A brain keeps three.
  2. What happened stays out. What it taught goes in.
  3. Your files are the world your AI works in.
  4. A repo, a skill, and a project each hold one pile.
  5. A repo is the first weekend. A team's brain is the rest.
  6. Tell your AI who it is, what is true, and how you work.
How it works /how-it-works

How a page travels between your computers and the brain: the page record, the version rule the server enforces, the merge on your computer, and the two doors.

8 sections
  1. One brain between your systems and every AI you use.
  2. Eleven fields make a page.
  3. The server's one decision is arithmetic.
  4. Refusals name the field, never the value.
  5. Four functions close any fork.
  6. HTTP for a client you write, MCP for an AI, one contract.
  7. A client follows six rules.
  8. A sync clash never loses a word: your computer merges it, not our server.
Security /security

For your security review: who reads each space, what each AI reaches, the guard on every save, the encryption of sealed spaces, and every limit.

12 sections
  1. Each AI reads only the spaces its person gives it.
  2. Each page says how far its text may travel.
  3. The guard refuses a password before it is saved.
  4. Every primitive is a standard one, from Node 24 itself.
  5. Your computers make the keys; our server holds none it can open.
  6. A breached server cannot read a sealed page.
  7. Four places a page passes. Two of them read it; you choose the fourth.
  8. Our server cannot add itself to a sealed space.
  9. Each claim names where it holds and where it fails.
  10. Your reviewer checks every artifact here.
  11. Found a hole? Tell us first.
  12. Bring this page to your security review.
Use cases /use-cases

Sales, support, engineering, operations, legal, and a new hire: what each team writes into its brain, what its AI answers from it, and where the files stay.

11 sections
  1. Your AI quotes the real floor.
  2. Your AI finds last time's fix.
  3. Your AI knows why the schema looks wrong.
  4. Your AI gives the restore order at 3 a.m.
  5. Your AI checks what you already promised.
  6. Your AI opens the right file, from the map.
  7. A new hire's AI knows the company on day one.
  8. Your AI rotates a password without printing it.
  9. See how much each person's AI works from the brain.
  10. Where instibrain fits your team, and where it does not.
  11. Start with one team's space.
Company
Changelog /changelog

Every change a person meets in instibrain, newest first and dated: the cockpit, each release of the sync client, the brain's tools, sign-in, and the system's rules.

1 section
  1. Every change, newest first.
Enterprise /enterprise

What a company gets from instibrain, role by role: one brain it owns, control by space, its own AI, its files in its own systems, and the setup with its team.

7 sections
  1. Each role gets its part of one brain.
  2. Your files connect to your AI, never to us.
  3. Each space names its readers, and our server cannot read a sealed one.
  4. Bring the AI you already pay for.
  5. We set it up with your team, as part of the offer.
  6. Start with one useful task on your own material.
  7. Bring one task; we set up the rest with your team.
Glossary /glossary

Each word defined once, in one line: brain, space, sealed space, specialist, room, then the market's words: context engineering, agent memory, RAG, embeddings.

12 sections
  1. What a brain is made of.
  2. Who signs in, and who runs what.
  3. How a space keeps its shape.
  4. What our server can read.
  5. Between a page and a file.
  6. How the server decides a sync write.
  7. Your own AI, and the team's agents.
  8. What the market calls it.
  9. What a model is, and what it reads.
  10. What people build around a model.
  11. How a search finds a passage.
  12. Put these words to work on your own company's pages.
Contact /contact

Write to hello@instibrain.ai for anything, and to the security, privacy, and legal addresses for each matter; the company's registered address is here too.

3 sections
  1. WebWork AI, Inc. answers for instibrain.
  2. Ask us for an account for your team.
  3. Which address answers what.
Works with
1Password /works-with/1password

What your AI does in 1Password as you: read an item at the moment of use, list items with values hidden, rotate a secret. No value reaches instibrain.

7 sections
  1. Who uses 1Password this way, and why.
  2. Your AI reads, adds and shares 1Password items without showing a value.
  3. Your 1Password app unlocks each command your AI runs.
  4. Three lines the AI never crosses.
  5. Your AI stays signed in only while the 1Password app runs.
  6. Your AI reads only the vaults you can read.
  7. The secret stays in your vault.
Bitbucket /works-with/bitbucket

What your AI does on Bitbucket Cloud as you: lists and creates repositories, opens pull requests with their reviewers, reads and searches code uncloned.

7 sections
  1. Who asks Bitbucket, and what for.
  2. Your AI reads, searches and changes your repositories, mostly without a clone.
  3. Your own token, your own scopes.
  4. The token never sits in plain sight.
  5. Your AI searches and creates within Bitbucket Cloud's own limits.
  6. Your AI pushes your code with your token, and we hold neither.
  7. Every pull request with the right reviewers.
Bitwarden /works-with/bitwarden

What your AI does in Bitwarden as you: reads one field inside the command that uses it, lists collections and members, creates and edits items by stdin.

7 sections
  1. Who asks Bitwarden, and what for.
  2. Your AI reads Bitwarden one field at a time, passwords kept off screen.
  3. Your sign-in opens the vault.
  4. Your AI never prints a password or changes a shared item unasked.
  5. Your AI never signs in to Bitwarden for you.
  6. Your AI opens your vault only with a sign-in you made.
  7. Every password stays in Bitwarden.
Chrome /works-with/chrome

What your AI does in your Chrome: it opens a window in a profile, reads its bookmarks, and changes them through Chrome's own API, so sync records each change.

7 sections
  1. Who lets the AI drive Chrome.
  2. Your AI opens the right profile and edits bookmarks so sync keeps them.
  3. Your AI drives Chrome with one setting of yours, and no extension of ours.
  4. Nothing edited by hand or guess.
  5. Your AI changes bookmarks only on a Mac, and opens profiles everywhere.
  6. Your AI changes bookmarks, and Chrome sync carries them to your other devices.
  7. Your browser, driven its own way.
Codex /works-with/codex

Codex, OpenAI's coding AI, on your own ChatGPT plan: a session in your brain's folder, a task Claude Code hands it, images to a brief, a second opinion.

7 sections
  1. Who calls in the second AI.
  2. Your AI hands Codex a second read, an image, or a window of its own.
  3. Your ChatGPT plan is the sign-in.
  4. Your AI checks every Codex answer before it acts on it.
  5. Codex stops where your ChatGPT plan's caps stop it.
  6. Codex reads your brain beside Claude Code, on your own plan.
  7. Claude Code and Codex work from one folder and one brain.
Google Apps Script /works-with/google-apps-script

A web app you deploy from your own Google account gives your AI Gmail, Drive, Docs, Sheets, Slides and Calendar as you, with one key you hold.

7 sections
  1. Who hands the Workspace to the AI.
  2. Your AI runs your mail, sheets, Docs, Drive and calendar through one script.
  3. The script runs as you.
  4. What the script never does.
  5. Your AI stops where your Workspace admin says no.
  6. Your AI reaches what your Google account reaches, through a script you own.
  7. Your Workspace, no vendor in between.
Google Drive /works-with/google-drive

Your AI works your Drive as you: real files through the Drive folder, and search, sharing and shared drives through a script you deploy in your own account.

7 sections
  1. Who hands Drive to the AI.
  2. Your AI reads your files, checks who sees them, and sets up shared drives.
  3. Signed in once, plus your own script.
  4. Your files never pass through us.
  5. Your AI waits on Drive's sync and keeps to your role.
  6. Your AI reaches your Drive, and our server never holds a file.
  7. Your Drive, folder and script together.
Google Sheets /works-with/google-sheets

Your AI works your Google Sheets through a script you deploy in your own account: formats, formulas, tabs and real dates, with no connector in between.

7 sections
  1. Who hands a sheet to the AI.
  2. Your AI reads and writes your sheets by label, formats and formulas kept.
  3. Your script, your account, your key.
  4. Nothing between your AI and your sheets.
  5. Your AI reaches no sheet once your admin blocks the script.
  6. Your AI keeps your formulas and your layout as it writes.
  7. Your sheets, edited the way you would.
Keeper /works-with/keeper

What your AI does in Keeper as you: reads a record at the moment of use, lists folders with passwords masked, adds and shares records, the admin's commands.

7 sections
  1. Who turns to Keeper, and why.
  2. Your AI reads, adds and shares Keeper records with passwords masked.
  3. Your login stays on your computer.
  4. Nothing leaves Keeper unmasked or unasked.
  5. Your AI works within Keeper's own rules on removal, restore and sign-in.
  6. Your AI reaches only the records your seat reaches.
  7. Every record stays in Keeper.
Keychain /works-with/keychain

The login Keychain, the PowerShell SecretStore or the Secret Service: where a script's credential lives on your computer, and why a read never prompts.

7 sections
  1. Who relies on the silent read.
  2. Your AI writes, reads and deletes a stored secret without printing it.
  3. Your AI keeps a copy of a few vault items in your computer's store.
  4. Values never reach a command line.
  5. Your AI finds no store on a server, and shares yours with what runs as you.
  6. Your AI reads the store so your vault need not ask all day.
  7. Name it once, read it silently.
Search Console /works-with/search-console

What your AI reads in Search Console as you: clicks, impressions and position per query and per page, from your own Google account on the property.

7 sections
  1. Who reads the measured numbers.
  2. Your AI reads clicks, impressions and position as Google measured them.
  3. Your Google account is the key.
  4. Modelled numbers never pass as measured.
  5. Your AI sees only what Google Search showed.
  6. Your AI trusts Search Console's clicks over any estimate.
  7. The one place that counts clicks.
Semrush /works-with/semrush

What your AI reads in Semrush on your seat: positions, landing pages and keyword metrics through its MCP server, which plan gives what, and what is modelled.

7 sections
  1. Who asks Semrush, and what for.
  2. Your AI reads positions and keyword data as far as your plan allows.
  3. OAuth on the seat's login.
  4. Your AI checks a Semrush drop against Search Console first.
  5. Your AI cannot read every report on every Semrush plan.
  6. Your AI signs in to Semrush with your own seat.
  7. Your AI keeps Semrush's estimates apart from measured clicks.
WordPress /works-with/wordpress

What your AI does on a WordPress site as you: a post in blocks with author, category, language, image, SEO fields and both dates set, by admin or wp-cli.

7 sections
  1. Who publishes through the AI, and why.
  2. Your AI publishes a WordPress post with every field set.
  3. Your own user. Nothing of ours.
  4. Your AI never prints a password or deletes an author's posts.
  5. Your AI imports no image until your server has GD.
  6. Your AI publishes under your own user, never a shared one.
  7. Every post complete, under your name.
Guides
Claude basics 1: What Claude Code is /guides/claude-basics/what-claude-code-is

Claude Code is Claude working on your computer: it reads files, writes files and runs commands in a loop you can stop or steer. Lesson 1 of Claude basics.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Claude basics 2: Context /guides/claude-basics/context

Context is everything Claude can see right now, its working memory for the session: what fills the window, what the summary keeps, and three commands.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Claude basics 3: Effort and models /guides/claude-basics/effort-and-models

The model is which Claude does the work; effort is how long it thinks first. The four models, the five effort levels, instibrain's xhigh, and ultrathink.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Claude basics 4: Where you start Claude, and what it loads /guides/claude-basics/where-you-start-claude

Claude reads its instructions from the folder where you start it: what loads from the instibrain button, what loads inside a code folder, and /context.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Claude basics 5: .md files and CLAUDE.md /guides/claude-basics/md-files-and-claude-md

A .md file is plain text with a few marks: a document for people, instructions for Claude. What CLAUDE.md is, and how a line with @ imports a whole file.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Claude basics 6: Permissions /guides/claude-basics/permissions

Permissions decide what Claude may do without asking: the four modes behind Shift+Tab, the question before one action, limits in auto mode, and Esc twice.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Claude basics 7: Connectors /guides/claude-basics/connectors

A connector lets Claude reach another app, like Notion, with your own account: the brain connector, the ones from claude.ai, and what /mcp shows you.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI hygiene 1: What one message costs /guides/ai-hygiene/what-one-message-costs

Every message sends the whole window to the model again, so one message in a 100,000-token window reads $0.40 of tokens on Opus 5.5, and in 6,000 tokens $0.024.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI hygiene 2: One subject, one window /guides/ai-hygiene/one-subject-one-window

When the subject changes, start a new window: 100,000 tokens of yesterday read by 20 messages cost $8.00 on Opus 5.5, $0.88 cached, and the answers get worse.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI hygiene 3: The stable part first /guides/ai-hygiene/the-stable-part-first

Keep the long part that does not change first and unchanged, so it is read from the cache at a twentieth of the price on Opus 5.5; one changed byte misses.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI hygiene 4: A fact on a page, not in the chat /guides/ai-hygiene/a-fact-on-a-page

What must hold tomorrow goes in a file your AI reads at the start, since a chat ends with its window and a summary keeps your requests but loses details.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI hygiene 5: Give it the source /guides/ai-hygiene/give-it-the-source

Ask from a source, not from the model's memory: point it at the page, ask for the sentence the answer rests on, and let it say when the page does not say.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI hygiene 6: The smallest model that does the job /guides/ai-hygiene/the-smallest-model-that-does-the-job

Pick model and effort per task: Haiku 5.5 costs 40 times less than Opus 5.5 for prompts up to 100,000 tokens, 8 times less above, and thinking bills as output.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI hygiene 7: Read less /guides/ai-hygiene/read-less

Point your AI at what it needs: a 5,000-line log is about 60,000 tokens, 6% of the window, read again with every message, where a search's 20 lines are 240.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI hygiene 8: Check what it says /guides/ai-hygiene/check-what-it-says

Trust a fluent answer after a check: a sum done by a tool, a claim against the line it rests on, and a correction written where it lasts, not in the chat.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
instibrain basics 1: Spaces and pages /guides/instibrain-basics/spaces-and-pages

A page holds one thing your company knows; a space is pages shared with one set of people. Your brain, your two own spaces, team spaces, and the three roles.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
instibrain basics 2: Specialists /guides/instibrain-basics/specialists

A specialist is one job, done by the AI you use: it knows the method and which pages to read first. Its persona and method, what your company knows, the staff.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
instibrain basics 3: Tools /guides/instibrain-basics/tools

A tool is the way into an app outside instibrain, such as Notion: its page names the account, the two layers of a tool, where your credential stays, scripts.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
instibrain basics 4: The button and windows /guides/instibrain-basics/the-button-and-windows

Start every session from the instibrain button, and Claude loads your spaces and specialists: the menu and its keys, Claude or Codex, and a specialist's window.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
instibrain basics 5: Inbox and proposals /guides/instibrain-basics/inbox-and-proposals

A note goes to your inbox when there is no time to file it; a proposal asks for a change on a page you cannot edit. The two phrases, and who closes what.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
instibrain basics 6: Where a lesson goes /guides/instibrain-basics/where-a-lesson-goes

When you learn something that will help again, put it on a page: a chat ends, a page stays. Which page takes a lesson about work, an app, or not sure yet.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
instibrain with Claude Code 1: Your first session /guides/instibrain-with-claude-code/your-first-session

In your first session Claude asks who you are, writes it to your profile, names your spaces and sets the computer up; every later one starts from your pages.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
instibrain with Claude Code 2: Ask your brain /guides/instibrain-with-claude-code/ask-your-brain

How Claude finds a page: a few words it holds, or a question in plain words, then the page read whole and named with its space and its label, how far its text may travel.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
instibrain with Claude Code 3: Write a page together /guides/instibrain-with-claude-code/write-a-page-together

Before a new page Claude reads the folder map, puts the page where its kind lives, and adds its index line; where you only read, it leaves a proposal.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
instibrain with Claude Code 4: The folder on your computer /guides/instibrain-with-claude-code/the-folder-on-your-computer

Every space is a folder of plain files on your computer; the watch keeps it in step with the brain, and a conflict comes as a copy beside your file.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
instibrain with Claude Code 5: Every change kept /guides/instibrain-with-claude-code/every-change-kept

Every version of a page names its writer: you, a window of yours, an AI login or an agent. What an open space keeps and for how long, and how a page comes back.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
instibrain with Claude Code 6: Two windows, one room /guides/instibrain-with-claude-code/two-windows-one-room

A second Claude Code window hears its rooms with nobody typing: one window asks in Your AIs, the other answers from the brain, and the asker has it in 36 s.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
instibrain with Claude Code 7: An operation /guides/instibrain-with-claude-code/an-operation

An operation is a task with an end goal, days to weeks, in a folder with a brief: how it starts, how a window opens on it, how its files say where it stands.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
instibrain with Claude Code 8: Keep the brain clean /guides/instibrain-with-claude-code/keep-the-brain-clean

The curator keeps every page indexed, every link resolving, one place per fact and current state only; the structure check finds what is wrong, the sweep rot.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI basics 1: Tokens and the context window /guides/ai-basics/tokens-and-the-context-window

A token is the unit a model reads and pays for, about three-quarters of a word; the context window is how many fit in one call: a million on today's Claude.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI basics 2: The three levers /guides/ai-basics/the-three-levers

A generic model becomes yours in three places: its weights, through training; what it looks up at question time; and what it is told at the start of a session.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI basics 3: A vector is a list of numbers /guides/ai-basics/a-vector-is-a-list-of-numbers

A vector is a list of numbers in a fixed order, and two vectors are close when their numbers are close: three people as three numbers each, and their distance.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI basics 4: An embedding is a vector made from text /guides/ai-basics/an-embedding-is-a-vector-made-from-text

An embedding model reads a text and writes a vector: two texts that mean the same get nearby vectors with no word in common. Why word counts fail, and the cost.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI basics 5: Similarity is an angle: cosine /guides/ai-basics/similarity-is-an-angle

Two vectors are similar when they point the same way; cosine similarity measures that, 1 for the same direction and 0 for unrelated, with a toy that ranks live.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI basics 6: Chunking and the index /guides/ai-basics/chunking-and-the-index

A document is cut into chunks of 200 to 800 tokens, each chunk gets one vector, and the table of them is the index: the counts, cost and size of a firm's files.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI basics 7: RAG: one question, end to end /guides/ai-basics/rag-one-question-end-to-end

RAG is four steps at question time: embed the question, find the nearest chunks, paste them into the prompt, answer with a citation. The prompt, cost and fixes.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
AI basics 8: Fine-tuning versus context /guides/ai-basics/fine-tuning-versus-context

Training teaches a model how to answer; a page in its context teaches what is true today, with a source. Nine methods, deepest first, and where a fact belongs.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
How a model works 1: One pass, one token /guides/how-a-model-works/one-pass-one-token

A chat model writes one token per pass, from text to tokens, vectors, layers and a score for every token, and it keeps nothing between calls but the text.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
How a model works 2: Tokens are learned pieces /guides/how-a-model-works/tokens-are-learned-pieces

A tokenizer learns its pieces by merging the pair it sees most often, again and again, worked by hand on seven words and then at Llama 3's 128,256 pieces.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
How a model works 3: The embedding matrix /guides/how-a-model-works/the-embedding-matrix

Each token fetches its row from a table of 128,256 rows by 4,096 numbers, and words used alike end up close, though nobody names what the directions mean.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
How a model works 4: Attention /guides/how-a-model-works/attention

Each token takes a share of the tokens before it through a query, a key and a value, with three tokens worked by hand and every number of the softmax shown.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
How a model works 5: Layers and weights /guides/how-a-model-works/layers-and-weights

A layer is attention then feed-forward, and Llama 3 8B stacks 32 of them: count its 8,030,261,248 weights matrix by matrix, and see where most of them sit.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
How a model works 6: Picking the next token /guides/how-a-model-works/picking-the-next-token

The LM head scores every token, softmax turns the scores into probabilities, and temperature decides how boldly one is picked, in a toy you move yourself.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
How a model works 7: Training, in four stages /guides/how-a-model-works/training

Training nudges random numbers after every guess of the next token, and four stages, from pretraining to reasoning training, make the chat model you use.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
How a model works 8: Running a model /guides/how-a-model-works/running-a-model

Every token reads every weight once, so memory decides speed: an 8B model needs 16 GB at 16 bits and 4 GB at 4, and a long context fills the KV cache.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
How a model works 9: Kinds of models /guides/how-a-model-works/kinds-of-models

One design since 2017, finished three ways: a chat model that writes, an embedding model that finds, a reranker that orders, then reasoning and images.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Around the model 1: The context window /guides/around-the-model/the-context-window

Context is everything a model reads in one call: instructions, tools, pages, the conversation, your question. Where each part sits, why the middle counts least, and what context engineering decides.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Around the model 2: Priming and sycophancy /guides/around-the-model/priming-and-sycophancy

Six things decide what a line in the context window is worth. The first lines set the tone of every answer, and sycophancy bends a right answer to please you.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Around the model 3: Tools and the agent loop /guides/around-the-model/tools-and-the-agent-loop

A model only writes text. A program lists tools, runs the call the model writes, puts the result back and calls the model again: the agent loop. MCP brings the tools to every AI app.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Around the model 4: Subagents and orchestration /guides/around-the-model/subagents-and-orchestration

A subagent works in a context window of its own and returns only its answer. Orchestration picks the next step: code, a workflow, or the model, agentic. Guardrails sit around the loop.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Around the model 5: Prompt injection /guides/around-the-model/prompt-injection

A model reads your instructions and a poisoned page the same way, as tokens. Six ways an injection arrives, and the lethal trifecta: private data, outside text, and a way out.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Around the model 6: What works against injection /guides/around-the-model/what-works-against-injection

No filter catches every prompt injection. What holds is the system around the model: least privilege, a person's yes, no secret in the context, an allowlist, and taint tracking.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Around the model 7: Evals and the golden set /guides/around-the-model/evals-and-the-golden-set

A benchmark tests the model; only your own questions test your system. Build a golden set, score five kinds of answer, run it after every change, and judge each answer live.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Around the model 8: The kinds of memory /guides/around-the-model/the-kinds-of-memory

Seven kinds of thing reach an AI: identity, instructions, procedures, knowledge, events, data and tools. Semantic, procedural and episodic memory, the environment, and the test for each.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Around the model 9: instibrain in these words /guides/around-the-model/the-stack-in-these-words

Where each word of the series sits in one brain: the right pages in the context window, every other system reached by retrieval, the AI deciding when to look, and memory kept as linked pages.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
RAG 1: What goes in the index /guides/rag/what-goes-in-the-index

A reviewed position is a page, read whole in the window; the thousands of raw files nobody reviewed, contracts, tickets, mail, notes, are what an index is for.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
RAG 2: Ingestion as a job /guides/rag/ingestion-as-a-job

Ingestion is a job that reads the files, cuts them, embeds each chunk and stores it with its source and who may read it; it runs again on change, cheaply.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
RAG 3: Chunking by structure /guides/rag/chunking-by-structure

Cut a document on its headings and paragraphs, never every N characters: carry the section's title, repeat one sentence as overlap, keep each chunk whole.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
RAG 4: Hybrid search /guides/rag/hybrid-search

Keyword search finds an exact code or name, vector search a meaning in other words; hybrid search runs both and merges the two, so a chunk high in both wins.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
RAG 5: The reranker /guides/rag/the-reranker

An embedding compares a question to 100,000 chunks in one pass but is coarse; a reranker reads the question with each of the top 50 and scores the pair.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
RAG 6: The prompt and the citation rule /guides/rag/the-prompt-and-the-citation-rule

The prompt puts the passages first, numbered with their source, and the question last, under one rule: answer only from them, cite the number, or say so.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
RAG 7: Measuring recall /guides/rag/measuring-recall

Twenty real questions, the chunk that answers each, and the share found in the top five: recall at 5. Under 80%, fix retrieval, not the prompt.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
RAG 8: Where instibrain sits /guides/rag/where-instibrain-sits

Pages are read whole, reviewed and cited by path; the index serves the files nobody reviewed, five chunks at a time; the loop turns a found answer into a page.

4 sections
  1. new words
  2. the lesson
  3. try it
  4. you should see
Legal
Privacy /privacy

What this site and the account plane collect: no cookies here, no trackers, one session cookie for an account, and what we can read of each space.

15 sections
  1. 1. What this policy covers
  2. 2. What this website collects
  3. 3. What an account collects
  4. 4. What your brain holds, and which spaces we can read
  5. 5. How we use what we collect
  6. 6. Cookies and browser storage
  7. 7. Third parties
  8. 8. Data security
  9. 9. Retention
  10. 10. Your rights
  11. 11. International transfers
  12. 12. Children
  13. 13. Do Not Track
  14. 14. Changes to this policy
  15. 15. Contact
Terms /terms

Permitted use, who owns your content, availability and what a restore returns to, termination, liability, and governing law for an instibrain account.

14 sections
  1. 1. Definitions
  2. 2. Account registration and security
  3. 3. Permitted use
  4. 4. Your content and who owns it
  5. 5. Intellectual property
  6. 6. Availability
  7. 7. Suspension and termination
  8. 8. Disclaimer of warranties
  9. 9. Limitation of liability
  10. 10. Indemnification
  11. 11. Confidentiality and disclosure to others
  12. 12. Governing law and disputes
  13. 13. General provisions
  14. 14. Contact