Skip to content
The LLM database and stack

The LLM database and stack behind an AI agent

An AI agent that serves customers needs nine pieces behind it. Here is what each one is for, what it takes to build and keep in step yourself, and how it looks in one service.

Nine pieces

The stack, piece by piece

Add one collection and every piece on the left has to learn about it. On the right, one schema covers them all.

What you would build and keep in sync

  • Records databaseschemas and migrations
  • Embedding pipelinere-embeds on every change
  • Vector databasea second copy to keep in step
  • Keyword searchand code that merges rankings
  • MCP servertools written by hand
  • File intakeupload page, malware scan, safe text
  • Content screeningprompt attacks, hidden text
  • Per-customer accessfilters and scoped tokens
  • Versions and auditwho changed what, and when

FoxNose

One schema, one set of permissions

  • Typed records and schemas
  • Embeddings on write
  • Vector search
  • Keyword and hybrid search
  • A hosted MCP server
  • File intake and checks
  • Verdicts on what comes in
  • A space per customer
  • Versions and audit

Read on by group: data, agent access, trust and isolation.

Between the pieces

What breaks between the pieces

Each piece works alone. The failures show up where they meet.

A schema change has to reach every piece

Add a field and the database, the embedding job, the vector store, the search index and the agent tools each need the change, in the right order.

In FoxNose: In FoxNose one schema drives all of them.

Embeddings drift from the records they describe

A record is edited, the re-embedding job is late or failed, and the agent keeps answering from the old meaning.

In FoxNose: Embeddings are made on write, so they change with the record.

One query forgets the customer filter

Isolation that depends on every query adding the right filter fails the first time one path does not.

In FoxNose: The token decides the space. The wrong customer gets a 404.

Content from outside reaches a prompt without a label

A user file or a relayed message is pasted into context like any other text, and an instruction inside it reads as yours.

In FoxNose: Everything not from your team is labelled and screened.

Data

Records, embeddings, vectors and search

What the agent knows, and how it finds it.

Records database

What it is for
Holds the facts the agent answers from: products, policies, tickets, customers. Typed fields, so the agent can filter and trust the shape.
If you build it yourself
A relational or document store, a schema migration process, and an API layer on top, plus localization and change history if you need them.
In FoxNose
Typed collections with revisions and localization, and a REST API generated from the schema.
Learn more

Embedding pipeline

What it is for
Turns text into vectors so the agent can search by meaning, and keeps those vectors current as the text changes.
If you build it yourself
A background job that calls an embedding service, a queue for retries, and change tracking so edited records get re-embedded.
In FoxNose
Fields you mark are embedded when written and re-embedded when they change.
Learn more

Vector database

What it is for
Finds the records closest in meaning to a question, often with a filter such as "only this customer's".
If you build it yourself
A dedicated vector store, a second copy of every record in it, and a sync process that keeps ids, fields and permissions matching the source.
In FoxNose
Vectors live with the records under the same permissions, so there is no second copy to sync.
Learn more

Keyword search

What it is for
Catches what meaning-based search misses: exact names, order numbers, error codes, and typos.
If you build it yourself
A search engine with its own index, analyzers and sync, and code to merge its results with the vector results.
In FoxNose
Full-text with typo tolerance, combined with vectors and filters in one hybrid search call.
Learn more

Using these for retrieval? See multi-tenant RAG.

Agent access

One endpoint for every agent client

How an agent reaches the knowledge, and what it is allowed to do there.

MCP server

What it is for
Lets any agent client discover and call your knowledge as tools, instead of you hand-writing a connector for each one.
If you build it yourself
A tool server that exposes your data, per-key permissions, a rule for which tools may write, hosting, and an update every time the schema changes.
In FoxNose
One hosted endpoint for every API, with five read tools and two write tools switched on per key and per collection.

Below: a shop assistant is asked for a discount and tries to change a price. Writes are off there, so nothing changes.

An ops, a support, a sales and a shop agent built for your business connect to one MCP endpoint, which serves your collections with the same permissions as your app. Choose an agent to see its call and the answer.

Trust and isolation

Files, screening, customers and history

What keeps one customer's data, and one attacker's text, from going where it should not.

File intake

What it is for
Lets customers hand the agent a document or image without the file becoming a way in.
If you build it yourself
Upload endpoints, a malware scanner, a text extractor for each file type, and a rule that the agent only ever sees the extracted text.
In FoxNose
A malware scan, then the file is rendered to visible text with a verdict, and agents never receive the original.
Learn more

Content screening

What it is for
Treats text that did not come from your team as untrusted before an agent reads it as context.
If you build it yourself
Per-field labels for where content came from, detectors for prompt attacks, hidden text, risky links and personal data, a verdict store, and a review queue.
In FoxNose
Text that is not from your team is labelled untrusted, screened on write and given a verdict, with review when needed.
Learn more

Per-customer access

What it is for
Makes sure an agent serving one customer can only ever see that customer's records.
If you build it yourself
An owner on every record, a filter added to every query, a token scheme that carries the customer, and tests that prove no path forgets the filter.
In FoxNose
Short-lived tokens your backend signs keep an agent inside one customer's space, and another customer's record returns a 404.
Learn more

Versions and audit

What it is for
Answers "who changed this, and what did it say before", and stops two writers from silently overwriting each other.
If you build it yourself
A history table or event log, a writer recorded on each change, and optimistic locking in every write path.
In FoxNose
Every change is a revision with its writer recorded, and conditional writes stop stale overwrites.
Learn more

Content screening: a screenshot with faint text

Screenshot from a support ticket, labelled external, with text too faint for a person to read. The faint text is withheld. Stamped suspicious. The agent reads the legible text only.

Per-customer access: asking for another customer's record

Globex's agent asks for ticket #4471, a number it read in the chat. The ticket belongs to Initech, so the answer is 404 not found, the same as for a ticket that does not exist.

One service instead of nine pieces

Define a schema and get the records, search, MCP endpoint, screening and per-customer access from it.