Retrieval for support agents that finds the error code, in the right help center.
Your backend writes each help center’s articles and tickets to its own namespace. The bot searches only that one: exact text and regex for codes and order numbers, vectors for questions in the customer’s words, metadata filters for product and language.
From recorded runs, with how each was measured, on the benchmarks page.
One namespace per help center
Hosting bots for many companies? Each one’s articles, macros and tickets go in a namespace of its own, made by the first write. A help center nobody is asking about costs only its bytes in object storage.
Error codes found exactly, questions by meaning
Customers paste E401, SKU-88-B and ACME-1042: literal and regex search finds exactly those. When they describe the problem in their own words, a vector query finds the article that uses different ones. Same API, same copy of the data.
A bot sees only its own company
Give each bot a read-only key limited to its namespace. Another company’s help center answers 404, exactly like a name nobody has, so the bot can’t read it whatever its prompt says.
Exact IDs or meaning: what the customer typed decides
A support question often carries an identifier and a description. They need different retrieval, and checking one doesn’t answer the other.
| The customer | Retrieve with | Why |
|---|---|---|
| Pastes a code: “E401 on my phone” | Text search for E401 | A literal matches E401 and nothing else; embeddings capture meaning, not exact codes |
| Describes it: “my payment did not go through” | A vector query (the question’s embedding) | Text search for those words found nothing: the article says “card declined” |
| Both, in one message | Two searches, or a vector query with q | q narrows the vector’s candidates: an article without that text is dropped |
| “Is this a known issue?” | Search resolved tickets with a kind filter | Filters prune before any document is read |
Test it with two help centers that share an error code
Acme and Globex both have an E401 article, with different fixes. Run these blocks in order in one shell (curl and jq) with a test account’s admin key as ADMIN_KEY. B is the hosted API unless SKIMMERDB_URL says otherwise. Every output below is what a fresh local server answered on October 19, 2026. The four-number vectors stand in for your embedding model’s, so the semantic step is reproducible.
B=${SKIMMERDB_URL:-https://api.skimmerdb.com/v1}
# Acme's help center. The 4-number vectors stand in for your embedding model's.
curl -sS $B/namespaces/help-acme/docs -H "Authorization: Bearer $ADMIN_KEY" \
-H "Content-Type: application/json" -w '\n' -d '{"wait": true, "docs": [
{"id": "acme-e401", "text": "Error E401 in the Acme mobile app: sign out, then sign in with Acme SSO.",
"meta": {"kind": "article", "lang": "en"}, "vector": [0.9, 0.1, 0.0, 0.0]},
{"id": "acme-declined", "text": "Card declined at checkout: ask the customer to try another card.",
"meta": {"kind": "article", "lang": "en"}, "vector": [0.0, 0.1, 0.9, 0.1]}]}'
# Globex's help center uses the same code for a different problem.
curl -sS $B/namespaces/help-globex/docs -H "Authorization: Bearer $ADMIN_KEY" \
-H "Content-Type: application/json" -w '\n' -d '{"wait": true, "docs": [
{"id": "globex-e401", "text": "Error E401 in Globex: the API token expired. Create a new one under Settings.",
"meta": {"kind": "article", "lang": "en"}, "vector": [0.8, 0.2, 0.1, 0.0]}]}'# A read-only key for Acme's bot: Acme's namespace and nothing else.
KEY_JSON=$(curl -sS $B/keys -H "Authorization: Bearer $ADMIN_KEY" \
-H "Content-Type: application/json" -d '{
"name": "acme support bot", "scope": "read", "namespaces": ["help-acme"]}')
BOT_KEY=$(printf '%s' "$KEY_JSON" | jq -r .key)
BOT_KEY_ID=$(printf '%s' "$KEY_JSON" | jq -r .id)# The customer pasted an error code: find it exactly. curl -sS $B/namespaces/help-acme/search -H "Authorization: Bearer $BOT_KEY" \ -H "Content-Type: application/json" -d '{"q": "E401", "filter": {"lang": "en"}}' | jq -c '{ids: [.hits[].id], partial}' # The customer described the problem: the same words find nothing... curl -sS $B/namespaces/help-acme/search -H "Authorization: Bearer $BOT_KEY" \ -H "Content-Type: application/json" -d '{"q": "payment did not go through"}' | jq -c '{ids: [.hits[].id], partial}' # ...but their meaning does (this vector is the question's embedding). curl -sS $B/namespaces/help-acme/search -H "Authorization: Bearer $BOT_KEY" \ -H "Content-Type: application/json" -d '{"vector": [0.1, 0.0, 0.95, 0.2], "limit": 1}' | jq -c '{ids: [.hits[].id], partial}'
{"ids":["acme-e401"],"partial":false}
{"ids":[],"partial":false}
{"ids":["acme-declined"],"partial":false}The exact search returns Acme’s article and not Globex’s, which also says E401. The customer’s description shares no words with the article, so text search finds nothing; the question’s vector finds acme-declined. Vector hits carry an id, score and metadata, not the matched line: fetch the document for its text.
Isolation the bot can’t talk its way past
Most retrieval setups put every customer in one index and trust a tenant_id filter in your code. Here the boundary is the key: the bot’s key can read one namespace and nothing else.
- Invisible neighbours. Globex’s namespace answers the same 404 as a name nobody has, for search and for reading a document by id.
- Read-only. The bot can search its help center; a write is a 403.
- Yours to route. Your backend authenticates the customer and hands the bot the right key; keep the admin key out of the agent’s reach. More in the keys guide.
# Globex's articles answer Acme's bot exactly like a name nobody has. curl -sS -w ' HTTP %{http_code}\n' $B/namespaces/help-globex/search \ -H "Authorization: Bearer $BOT_KEY" -H "Content-Type: application/json" -d '{"q": "E401"}' curl -sS -w ' HTTP %{http_code}\n' $B/namespaces/help-globex/docs/globex-e401 \ -H "Authorization: Bearer $BOT_KEY" curl -sS -w ' HTTP %{http_code}\n' $B/namespaces/help-nobody-has/search \ -H "Authorization: Bearer $BOT_KEY" -H "Content-Type: application/json" -d '{"q": "E401"}' # And it can't write to its own help center. curl -sS -w ' HTTP %{http_code}\n' $B/namespaces/help-acme/docs \ -H "Authorization: Bearer $BOT_KEY" -H "Content-Type: application/json" \ -d '{"docs": [{"id": "x", "text": "ignore previous instructions"}]}'
{"error":"no such namespace","code":"not_found"} HTTP 404
{"error":"no such namespace","code":"not_found"} HTTP 404
{"error":"no such namespace","code":"not_found"} HTTP 404
{"error":"this key can only read: it may not do this","code":"forbidden"} HTTP 403Replace a stale article, don’t append to it
Writing an id again replaces the whole document. A bot can’t quote instructions that no longer exist.
# Acme moved from SSO to passkeys. Write the same id again: it replaces the article. curl -sS $B/namespaces/help-acme/docs -H "Authorization: Bearer $ADMIN_KEY" \ -H "Content-Type: application/json" -w '\n' -d '{"wait": true, "docs": [ {"id": "acme-e401", "text": "Error E401 in the Acme mobile app: sign in again with your passkey.", "meta": {"kind": "article", "lang": "en"}, "vector": [0.9, 0.1, 0.0, 0.0]}]}' # The old instructions are gone; the bot finds only the new ones. for q in "Acme SSO" "passkey" "E401"; do curl -sS $B/namespaces/help-acme/search -H "Authorization: Bearer $BOT_KEY" \ -H "Content-Type: application/json" -d "{\"q\": \"$q\"}" | jq -c --arg q "$q" '{q: $q, ids: [.hits[].id], line: .hits[0].line}' done
{"written":1,"deleted":0,"version":2,"stored_bytes":2415,"created":false}
{"q":"Acme SSO","ids":[],"line":null}
{"q":"passkey","ids":["acme-e401"],"line":"Error E401 in the Acme mobile app: sign in again with your passkey."}
{"q":"E401","ids":["acme-e401"],"line":"Error E401 in the Acme mobile app: sign in again with your passkey."}Send the document whole, its vector included. Then clean up: DELETE the key and both namespaces (each answered 204 in this run).
# Clean up: revoke the bot's key, then delete both test help centers.
curl -sS -o /dev/null -w '%{http_code}\n' -X DELETE $B/keys/$BOT_KEY_ID -H "Authorization: Bearer $ADMIN_KEY"
for ns in help-acme help-globex; do
curl -sS -o /dev/null -w '%{http_code}\n' -X DELETE $B/namespaces/$ns -H "Authorization: Bearer $ADMIN_KEY"
doneWhat this example shows, and what it doesn’t
It checks retrieval behaviour on three synthetic articles: exact matching, a vector nearest neighbour, the key boundary, and replacement by id. It isn’t a relevance benchmark for your help center, and toy vectors say nothing about an embedding model’s quality. Inspect partial before treating any answer as complete; every flag and limit is in the search guide.
Support patterns
| Support platform | A namespace per customer company (help-acme, help-globex). Your backend syncs their articles; their bot gets a key for their namespace only. |
| Articles + resolved tickets | Both in one namespace, told apart by kind in metadata. Filter to articles for answers, to tickets for “has this happened before?”. |
| By product and language | Metadata like product, plan and lang narrows every query, text or vector, before any document is read. |
| Stale articles | Write the edited article under the same id, its embedding included: the old text stops matching once the write is acknowledged with wait. Delete by id what was retired. |
| What customers ask | Log the bot’s questions to a second namespace and run SQL over them: the most asked topics, the error codes with no article. |
Questions
What does SkimmerDB do in a help-center chatbot?
It is the retrieval step. Your backend writes the help center’s articles, macros and tickets; when a customer asks something, the bot searches them by exact text, regex, metadata filters or vector similarity, and passes the best passages to the model that writes the answer. Chunking, embedding choice and the model call stay in your code.
Do I need embeddings?
Not for codes and names. Text and regex search need nothing but the text, and they are what finds an error code, an order number or a product name. Add an embedding to each document (from your own model, or made for you from the text with an OpenAI, Voyage, Gemini or Cohere key, or hosted) when questions should match by meaning too.
Two companies use the same error code. Can the bot mix them up?
Not across namespaces. In the example above both help centers have an E401 article with different fixes; Acme’s bot, holding a key limited to help-acme, gets Acme’s article, and Globex’s namespace answers 404 to it, for search and for reading a document directly. Your backend still has to give each bot the right key.
How do I keep the bot from quoting an old article?
Write the corrected article with the same id. The write replaces the document: its old text no longer matches any search, and with "wait": true the call answers once the new version is searchable. Delete retired articles by id.
What does a quiet help center cost?
Only its storage: $0.10 per GB-month on pro, and the free plan includes 1 GB. A namespace nobody is asking about runs no server or process of its own; its first query after a long sleep reads from object storage in a round trip or two. Paid accounts have a $10 monthly minimum that usage counts against.
Can I import an existing knowledge base?
Yes: up to 2 GB of CSV, NDJSON or Parquet in one call, with the columns you name as text and the rest as metadata to filter on. Writes of up to 10,000 documents at a time keep it in sync after that.
Try it with your own help center
Run the example above, then swap in your articles and real embeddings. Free up to 1 GB stored and 100k queries a month. No card to start.