Retrieval (RAG) for runbooks
How an agent can answer from your own documents and say where the answer came from.
Retrieval-augmented generation (RAG) means finding the parts of your documents that match a question and putting them in front of the model before it answers. For operations, that's your runbooks, postmortems and architecture notes, which no public model has seen.
The steps: split documents into chunks (a section or a few paragraphs), turn each into an embedding (numbers that capture meaning), store them in a vector index, and at question time find the closest chunks. Many systems mix this with keyword search, which catches exact error messages that meaning-based search can miss.
Always return the source with each chunk so the answer can cite it and a person can check it. Keep the index current: an agent quoting last year's runbook confidently is worse than no agent.
Cost. Free to practise with word matching. In production, embeddings cost per token and a search service has its own price; Azure AI Search has a free tier for small trials.
Use it when
- your team's knowledge is in documents the model hasn't seen.
- answers must follow your procedures, not general advice.
- people need to check where advice came from.
How it works
- Chunk
- Split documents into sections with their source.
- Embed and index
- Store a vector for each chunk.
- Retrieve
- Find the closest chunks to the question.
- Answer
- The model answers from them and cites sources.
- Refresh
- Re-index when documents change.
Options
- Keyword search
- Simple, exact, great for error messages.
- Vector search
- Finds similar meaning in different words.
- Hybrid
- Both, ranked together; usually best.
Example. Fernhill Cloud indexed 300 runbooks and postmortems. The on-call agent's answers now end with sources like db-pool.md, and engineers fix the runbook when the cited advice is wrong.
Don't confuse it with
- RAG
- Adds your documents at question time; easy to update.
- Fine-tuning
- Changes the model itself; slow to update and not a way to add facts reliably.
Words to know
- Chunk
- A retrievable piece of a document.
- Embedding
- Numbers representing meaning.
- Vector index
- A store that finds the nearest embeddings.
Where to look
- Your runbooks
- A search index
Practise it
Read it in the guide, next to the tasks and labs.
Open in DevOps, Hands On