How a retrieval pipeline is built
A knowledge agent is only as good as its retrieval. Answering a question takes several steps, and each one can be tuned separately:
- Ingest: connectors pull content from your sources, such as Google Drive, SharePoint, Confluence, Notion, helpdesk articles and ticket histories, along with each document's permissions and last-updated date.
- Parse and chunk: documents are split into passages that keep headings, tables and lists intact. Chunking is explained in our glossary entry on chunking; poor splits are one of the most common causes of poor answers.
- Index: each passage is stored with embeddings for meaning-based search and with keywords for exact terms such as product codes and policy numbers.
- Retrieve and rerank: a question runs against both indexes, and a reranker orders the candidates by relevance.
- Answer: the model writes an answer only from the retrieved passages and cites them. If they do not contain the answer, it says so.
Permissions that follow the source
The hardest part of internal knowledge search is not search. It is making sure nobody sees an answer built from a document they cannot open. We copy access rules from each source system at indexing time, keep them in sync as they change, and filter retrieval by the asking user's identity before any passage reaches the model. Users sign in through your identity provider, such as Microsoft Entra ID or Google Workspace, so the agent knows who is asking.
Sensitive collections, such as HR cases, salary data or legal matters, can be excluded entirely or placed in separate indexes with their own access. We test permissions explicitly: for each role, we run questions whose answers sit in restricted documents and confirm they are not answered.
Choosing the right retrieval approach
| Approach | Good for | Limitation |
|---|
| Keyword search | Exact codes, names and phrases | Misses questions phrased differently from the text |
| Vector (semantic) search | Questions in the user's own words | Can miss exact identifiers |
| Hybrid with reranking | Most company knowledge bases | More components to run and tune |
| Knowledge graph additions | Questions about relationships, such as who owns which system | Needs structured data and upkeep |
Most of our builds start with hybrid retrieval and reranking. A knowledge graph is added only when tests show that relationship questions matter and fail without it.
Keeping knowledge fresh and consistent
Stale content produces confident wrong answers. Connectors sync on a schedule or on change events, deleted documents are removed from the index promptly, and each passage carries its last-updated date so the agent can prefer recent versions. When two sources disagree, for example an old and a new leave policy both still on the drive, the agent shows both with dates and flags the conflict to the content owner rather than choosing silently.
We also give knowledge owners a report of questions that could not be answered, answers that users marked unhelpful and documents that are retrieved often but are old. That turns the agent into a tool for improving documentation, not just reading it.
Evaluating answers before employees rely on them
We build a question set with your subject experts: real questions from your helpdesk, Slack channels and onboarding sessions, each with the correct answer and the source it should come from. We measure retrieval separately from answering: did the right passage reach the model, and did the model answer correctly from it? This tells us whether a problem is in search or in generation. Groundedness checks confirm each claim is supported by a cited passage, which is the core defense against hallucination. The question set reruns on every change to chunking, models or prompts.
Data handling and model choices
Indexing company knowledge means copying sensitive content into a new system, so the index gets the same care as the sources. We host the vector store and document cache in your cloud account or a region you choose, encrypt it at rest, and log every query with the user and the passages returned. Hosted models are used with settings that do not retain or train on your data. Where policy rules out sending content to an external provider, retrieval and generation can both run on open-weight models inside your environment. Personal data inside documents, such as employee records, is either excluded at indexing or masked, depending on what the use case needs and what your DPDP Act 2023 obligations allow.
Adoption depends on where the agent lives. We usually deploy first in Slack or Microsoft Teams, with a web page for longer research, and start with one department whose content is in reasonable shape, such as HR or IT. Typical first areas are described on our HR and IT helpdesk pages and the knowledge management solution page. Feedback buttons on every answer, a named content owner per source and a short review each month keep quality improving after launch. You can try a simple version of document question answering with our document Q&A tool.