How do you build a company knowledge base that answers correctly?
24 posts
Playbook
Practitioners build reliable knowledge bases by precomputing context, establishing ground truth layers, and using automated evaluation methods like LLM-generated question-and-answer pairs.
- Precompute context in data graphs
Salesforce Engineering moves identity matching, joins, and entitlement calculations upstream into Data 360 data graphs to provide prejoined JSON views for agents, achieving a median lookup latency below 200 milliseconds . 1
- Build a Ground Truth layer
To prevent agents from querying incorrect tables or definitions, Fin implemented a Ground Truth layer which increased accuracy from 65%-70% to 100% . 3
- Rerank merged collections
Alaan reranks all excerpts after merging collections and tags each with scoreKind to ensure real relevance scores outrank placeholder scores . 2
- Label-free search evaluation
Hamel Husain suggests using an LLM to write one question for every document to create question-and-answer pairs, then testing if the search system retrieves the matching document . 8
- Use git for support knowledge
Ketan suggests keeping support knowledge in a git repo using markdown and YAML headers, where product PR merges trigger a pipeline to propose updates . 6
- Decompose complex decisions
Allie Laabs recommends decomposing decisions into small, fuzzy questions for the model while delegating math and business logic to code . 4
Choosing between approaches
Using a single large LLM 'Choice' question can lead to prompt gymnastics, whereas decomposing decisions into smaller questions makes outcomes more auditable 4.
Not covered yet
The material does not address how to manage the cost or token overhead of these various architectural approaches.
Posts
- Precompute customer context in data graphs to keep agent lookups under 200 millisecondsSalesforce Engineering moved identity matching, joins, and entitlement calculations upstream into Data 360 data graphs.

- Rerank after merging collections and tag excerpts with scoreKindAlaan converted Notion, Drive, Slack and product code into the same kind of chunks in one store.

- Build a Ground Truth layer after audits found Claude querying the wrong tablesAt Fin, a company of about 1,400, roughly 700 people use Claude Code daily to query the data warehouse, up from 220 six months earlier.

- Use Jev for fuzzy judgments and delegate math and business logic to codeAllie Laabs at TypeSafe AI recommends using Jev as a System One component rather than a complete decision engine.

- An institutional-memory agent updates facts with evidence and lets them ageJoao Wenzel of Citadel Securities borrowed the state estimators used in robotics to build an institutional-memory agent.

- Keep the support knowledge base in git and let product PR merges propose updatesEmergent turned its customer-support knowledge base into a git repo, with articles as markdown carrying YAML headers.

- Redis Docs MCP exposes just search, fetch and ask, and judges retrieval on evidenceBetween April and July 2026 the Redis team built the Redis Docs MCP server with three tools, search, fetch and ask, callable by MCP clients without authentication.

- Evaluate search without labels: have an LLM write one question per documentHamel Husain's label-free way to evaluate retrieval: take your documents and have an LLM write one question each can answer, forming question-and-answer pairs.

- Deep Agents offload large tool results and old messages to a filesystem, then summarizeHarrison Chase explains the context management in Deep Agents: compaction should reduce what is sent to the model, not erase the underlying work history.

- Sketch architecture diagrams in MacOS Freeform and use Claude to critique the imagesOdd_Reaction_5356 manually sketched architecture and state management diagrams in MacOS Freeform, then sent images to the Claude project context to ask for improvements.
- Match cache to vector index size for Lakebase Search: 11 to 23 ms p50 on hot queries
- Generate a domain glossary with an LLM, then have experts review it
- Taxbit's compliance assistant binds user identity in closures and masks PII with Guardrails
14 more posts to see