Glossary

Retrieval-Augmented Generation (RAG)

RAG

Retrieval-Augmented Generation hands a language model passages pulled from your own data, so it answers from your content. On IBM i, retrieval is the hard half.

Full nameRetrieval-Augmented Generation
Two halvesFind the facts, then write the answer
Hard part on IBM iFinding the facts
Vector store in Db2 for iNone as of September 2026

How RAG works

  1. RetrievePull the passages most related to the question from your own data.
  2. Add to the promptSend those passages to the large language model along with the question.
  3. AnswerThe model answers from your current content, not only from what it learned in training.

It is the standard way to get AI to answer questions about your documents, your runbooks and your history.

What RAG looks like on IBM i

Who supplies each piece

PieceWhere it comes from
Embeddingswatsonx.ai embedding models and its text embeddings API
Search indexOutside Db2 for i. IBM points to OpenSearch on Power
System of recordDb2 for i
Storing the vectorsYour job, in a database you provide, per IBM's documentation

The Bob Premium Package for i lists RAG workflows among its skills. IBM has not published where those workflows keep their embeddings.

When you do not need RAG

Exact, structured questions do not need RAG. Send those to Db2 for i through the IBM i MCP Server, and save RAG for questions no single row can answer.

Related Terms