How does retrieval-augmented generation work?
Your documents are split into passages and indexed for search. When someone asks a question, the system finds the most relevant passages, gives only those to the model, and the model writes an answer that cites them. If nothing relevant is found, it says so.
| Stage | What we build | Why it matters |
|---|---|---|
| Ingest | Connectors that read PDFs, documents, web pages, helpdesk tickets and database records | Answers can only be as current as the content behind them |
| Chunk and index | Passages split on headings and meaning, stored with embeddings in PostgreSQL and pgvector | Good passages make good answers; bad splits lose context |
| Retrieve | Hybrid search on meaning and keywords, filtered by the user's permissions | The model never sees what the person may not see |
| Generate | Claude, OpenAI or an open-weight model writes the answer from the retrieved passages | The model is grounded instead of guessing |
| Cite and log | Every answer links to its sources and is stored with the passages used | People can check, and you can audit |
