RAG that answers from your data, and shows where the answer came from.
Agensphere builds retrieval-augmented generation (RAG) systems that answer questions from your own documents and data, with citations, permission checks and measured retrieval quality. Most RAG failures are retrieval failures, so that is where we put the engineering: how documents are split, how they are searched, who may see them and how quality is measured.
What we build
- 01
Internal knowledge assistants
One place for staff to ask questions across policies, wikis, drives and tickets, answered with links to the source paragraphs.
- 02
Support answers from your docs
Answers for customers or agents grounded in product documentation and past resolutions, with escalation when the sources do not cover the question.
- 03
Document question answering
Questions over contracts, filings, manuals or reports where the exact clause and page matter.
- 04
Search across many tools
Retrieval that spans several systems at once and respects each one’s permissions.
- 05
Analyst copilots
Assistants that pull figures and passages from your data and cite every one, so the answer can be checked.
How we engineer retrieval
- L1 · DATA / KNOWLEDGE
Chunk by structure, not token count
Documents are split along their own headings, clauses and tables, so each passage keeps the context that makes it meaningful.
READ: Chunk by document structure, not by token count → - L1 · DATA / KNOWLEDGE
Hybrid search, not vectors alone
Keyword and semantic search together, then reranking, so exact names, codes and numbers are found as reliably as paraphrases.
READ: Hybrid search beats pure vector search for most RAG systems → - L1 · DATA / KNOWLEDGE
Permissions before ranking
Results are filtered by what the person asking is allowed to see before anything is ranked or shown to the model.
READ: Filter by permission before you rank, not after → - L2 · REASONING
Context engineered, not stuffed
What goes into the prompt is chosen and ordered deliberately, within the model’s budget, with sources attached.
READ: Context engineering: the job prompt engineering grew into → - L3 · INTELLIGENCE
Retrieval measured on its own
We test retrieval separately from the final answer, on your real questions, so a fix lands where the failure is.
READ: Treat a prompt change like a code change: ship it with an eval → - L0 · INFRASTRUCTURE
Data stays where it should
Indexes and model calls are placed to meet your data residency and compliance rules, and every prompt’s destination is known.
READ: Data compliance with LLMs: know where every prompt goes →
Start where you are.
- 01AI Audit →Teams whose AI works in demos but fails, drifts or costs too much in real use.
- 02Proof Build →Teams that want evidence before committing to a full build.
- 03Production Build →Teams with a validated use case that now has to work every day, at scale.
Read the engineering behind it
- How RAG works, step by stepRetrieval-augmented generation (RAG) answers questions from your own documents by finding the relevant passages first and handing them to the model. Two pipelines, one for indexing and one for answering, and every quality problem lives in one of their steps.
- RAG vs fine-tuning: which one your AI system actually needsRAG vs fine-tuning is usually framed as a choice. It is not: RAG changes what the model reads, fine-tuning changes how it behaves. Use RAG for knowledge that changes or must be cited, fine-tuning for a stable format or task, and prompting before either.
- Why LLMs hallucinate, and what actually reduces itLLMs hallucinate because a model generates the most plausible continuation, not the true one. When the facts are missing or blurry in its weights, plausible and true come apart. Grounding, verification and permission to say “I don't know” reduce it far more than prompts asking for accuracy.
- Tokens and embeddings: how text becomes numbersA model never sees letters. It sees token IDs, and then vectors. Knowing what a token is in an LLM explains pricing, context limits and odd failures with spelling and numbers; embeddings explain how a model represents meaning.
RAG Development: common questions
- What is RAG development?
- Building a system that retrieves the passages relevant to a question from your own data, puts them in the model’s prompt and has the model answer from them, with citations. It covers two pipelines: indexing (loading, splitting, embedding and storing documents) and answering (searching, assembling context and generating the answer).
- Should we use RAG or fine-tuning?
- Use RAG when the model needs knowledge: private, changing or citable facts. Use fine-tuning when it needs a behavior: a format, a tone or a narrow skill it does not do well. Many production systems use RAG for knowledge and keep fine-tuning for the few behaviors prompting cannot fix.
- Which vector database do you use?
- The one that fits your data and operations. Often that is the database you already run, such as Postgres with a vector extension, combined with keyword search. We choose for retrieval quality, permissions and cost, not for the newest product.
- How do you stop a RAG system from making things up?
- By making retrieval good enough that the right passage is there, telling the model to answer only from what it was given, requiring citations, and saying so when the sources do not answer the question. We measure how often answers are supported by their sources.
- Can it respect who is allowed to see which documents?
- Yes, and it has to. Each passage carries the permissions of its source, and results are filtered for the person asking before ranking, so the model never sees what that person could not open themselves.
- Does our data leave our environment?
- Only where you decide. Indexes can live in your cloud, and model calls can go to providers under no-training terms, to regional endpoints or to models hosted on your own infrastructure. We map where every prompt goes as part of the design.
- Do you work with companies in the United States?
- Yes. We build for startups and enterprises in the United States and worldwide. Engagements run remotely, over video calls, shared repositories and written progress updates. The system is deployed in your own cloud account, under your security and compliance controls, and you own everything we build.
- How do we start?
- Tell us what people need answers to and where the documents live, in the brief form. You get a written reply from the engineers who would build it. If you already run a RAG system that disappoints, an AI Audit finds where it fails first.