Practical AI: Retrieval-Augmented Generation (RAG)

RAG is a technique that helps AI answer questions using information retrieved from documents, notes, or databases instead of relying only on what it learned during training.

For example, when you ask AI about a project meeting, a RAG system can search the meeting notes, retrieve relevant passages, and use them to generate an answer.

Your question =>Retrieve notes=>Grounded answer

Find action items in meeting notes

Take one meeting summary or project document and upload it to ChatGPT.

Prompt

“Using only this document, identify my action items, deadlines, dependencies, and unresolved questions. Cite the relevant sections. If information is missing, say ‘Not specified.’”

Key lesson

RAG = Retrieve relevant information + Generate an answer.

Unlike model training, RAG can use newly supplied information without changing the model’s underlying parameters.

Remember that retrieved documents can still be outdated or incorrect. Always verify important decisions against their original sources.

RAG improves an AI’s response by first retrieving relevant information from trusted sources and then generating an answer using that information.

For example, instead of relying only on general knowledge, AI can search your:

  • Project documents
  • Meeting notes
  • Product manuals
  • Company knowledge base

In simple words, RAG helps AI answer:

“What do the available sources say about this question?”

About the Author

Yogi

24 years of experience in various layers of software. Primarily experienced in system side software design and development on server management software. Interested in linux development in x86 and arm architecture.