Knowledge base: retrieval without a model
Store pages, documents and crawl output; ask questions across them for a few hundred tokens.
Agents and people keep re-reading the same sources: the handbook, the competitor's docs, last quarter's filings, the pages a crawl collected yesterday. Knowledge collections store that material once, chunked into passages, and answer questions from it with SQLite FTS5 (BM25 ranking, porter stemming). No embeddings, no vector database, no model call, nothing leaves your server. A question returns the best passages with their sources and a receipt: tokens returned vs. tokens of the sources it would otherwise have re-read.
The same engine answers Ask CrawlGenie (the help assistant in the dashboard) from the built-in docs, and you can embed it on your own site.
When to use it#
| Situation | Do this |
|---|---|
| A crawl finished and you will ask many questions about it | Crawl page → Send to Knowledge (or POST /v1/knowledge/{id}/documents {crawlId}) |
| A set of PDFs/Office files (policies, contracts, reports) | Add their URLs or upload (base64); OCR runs when needed |
| An agent should remember what it read in a session | knowledge_add {collection, url} from MCP |
| Watch rows should be searchable later | {watchId} adds the latest dataset as text |
| Notes, emails, meeting text | {text, title} |
API#
# collections
curl $CRAWLGENIE/v1/knowledge -H "Authorization: Bearer $KEY"
curl -X POST $CRAWLGENIE/v1/knowledge -H "Authorization: Bearer $KEY" -H "content-type: application/json" -d '{"name":"competitor-docs","description":"Docs and pricing of 5 competitors"}'
# add material (any of url | urls | text | base64 | crawlId | watchId)
curl -X POST $CRAWLGENIE/v1/knowledge/kb_123/documents -H "Authorization: Bearer $KEY" -H "content-type: application/json" \
-d '{"urls":["https://competitor.com/docs/sso","https://competitor.com/pricing.pdf"]}'
# ask across your collections (includeDocs: true adds CrawlGenie's own docs)
curl -X POST $CRAWLGENIE/v1/knowledge/search -H "Authorization: Bearer $KEY" -H "content-type: application/json" \
-d '{"q":"does the enterprise plan include SSO","collections":["competitor-docs"],"limit":6,"maxChars":3000}'
Response: hits[] {collection, title, source, heading, text, score, tokens}, text (ready to hand to a model, numbered with sources), tokens, tokensSources, savingsPct.
MCP tools: knowledge_add, knowledge_search; work_memory with action: "delete" and the collection's name deletes a collection, when you ask. SDKs: cg.knowledge.* (TypeScript), v.knowledge_* (Python).
How retrieval works (so you can trust and tune it)#
- Text is split into passages (paragraphs or list groups of roughly 120–700 characters); the nearest markdown heading is attached to each passage.
- Passages go into an FTS5 table with porter stemming (so "crawling" matches "crawl").
- A query is tokenised, stop-words removed, and matched as
ORof terms; FTS5 BM25 ranks them with heading and title weighted higher. - A light re-rank rewards passages that cover more of the query terms and exact phrases; at most three passages per document so one long page cannot crowd out the rest.
- Results come back in score order with a character budget.
What it is good at: factual lookups, "where does it say", definitions, numbers, procedures. What it is weaker at: questions whose words do not appear in the text (synonyms, paraphrase). Add a short glossary document to a collection to bridge your vocabulary to the sources'.
Ask CrawlGenie (help) and a chatbot for your website#
POST /help/ask {"q": "..."} is public (no key) and answers from the built-in docs: answer (markdown), hits, links, confident. It powers the "Ask CrawlGenie" button in the dashboard. To offer it on your own site, call it from your page or proxy it; nothing about the visitor is stored. GET /help/search?q= returns ranked snippets for a search box. The docs are also served as GET /docs/<slug>.md, GET /llms.txt and GET /llms-full.txt for agents.
Work memory across chats and apps#
Besides the pages you save, Memory keeps the short notes your AI writes while it works. With CrawlGenie connected, an AI saves a one-line memory on its own when something is decided, a preference is stated or it stops with steps left (work_memory { action: "save", project, note }), and a new chat in any connected app (ChatGPT, Claude, Claude Code, Codex, Cursor) recalls the project with work_memory { action: "recall", project }: decisions and next steps first, then preferences, issues, findings and sources, plus what CrawlGenie read, searched and ran for you in the last 14 days, in a few hundred tokens with 0 model tokens.
Open Memory → Work memory to read every note by project and kind, re-file one with a click, add your own, delete any, copy the line that picks a project up in a new chat, and see exactly what a new chat reads. Notes are documents of the "Work notes" collection and count against the plan's memory documents like any saved page.
Never stored. Secrets (API keys, tokens, passwords, private keys) are removed before anything is saved, whatever the settings. Personal data (e-mail addresses, phone numbers, IP addresses), payment data (card numbers, IBANs) and ID numbers are removed by default, and you can add your own blocked words or domains under Never stored; what matches is replaced by a marker and the AI is told what was left out. Names and street addresses cannot be detected reliably, so add the ones that matter as blocked words. CrawlGenie never stores the chat itself.
Your products: what CrawlGenie learned about what you sell#
CrawlGenie learns the workspace's own products from the places you already told it: an AI visibility setup (name, what it sells, who buys it, competitors, core features) and a website you asked it to read fill a product card under Settings → Your business, with no model. Check it once and press Looks right; edit any field, add a product from its website, or forget one. Nothing learned later overwrites what you typed.
It is reused wherever a job is about your product: an agent drafted from "find leads for Acme" fills the search from who buys Acme; the agent_plan brief your AI reads in Claude, ChatGPT, Claude Code or Cursor states the product first; the AI visibility setup starts filled in; and every work-memory recall carries one line per product, so a chat in any AI knows what you sell. It holds your public pitch only, never a secret, and the Overview asks for one review until you have looked at it.
Limits#
- Per-owner isolation: collections belong to the key's workspace or organisation; built-in docs are visible to everyone.
- Documents larger than ~400k tokens are stored but the token count is capped in the token savings.
- There is no semantic similarity. If you need "find things like this" rather than "find where it says this", pair Knowledge with your own embedding step on the passages it returns.
Section: Read the web for less · This page as markdown · Questions? hello@crawlgenie.com