Glossary · AI/ML

RAG

Retrieval-Augmented Generation

Also known as: retrieval augmented generation

A pattern where the app first retrieves relevant documents, then passes them to the LLM with the question so the answer is grounded in your data.

The basic pipeline

flowchart TD
  Q["Question"] --> E["Embed question"]
  E --> S["Search vector DB"]
  S --> C["Top-k chunks"]
  C --> P["Prompt = question + chunks"]
  P --> L["LLM"]
  L --> A["Grounded answer"]
  1. Ingest: split documents into chunks, create embeddings, store them in a vector database.
  2. Retrieve: embed the question and fetch the most similar chunks.
  3. Generate: put those chunks in the prompt and ask the LLM to answer only from them.

When to use it

  • The answer depends on private, large, or frequently changing data.
  • You need citations or traceability.
  • Fine-tuning would be too slow or expensive to keep up to date.

See also

Related technologies

Used in these posts

AI/ML • 7 min read Reader level: Beginner

What you'll learn

  • Why RAG beats asking a model from memory, and when to use it
  • How 10 RAG variants work, from Simple RAG to Graph RAG and Agentic RAG
  • Which variant fits which problem, using a side-by-side summary matrix
  • How to build an adaptive router that picks a RAG strategy per query
10 Types of RAG

Think of RAG like an open-book exam. Instead of guessing from memory, the AI looks at a library of books (your data) to find the right facts before it answers you.

#rag#ai#ml
Java • 9 min read Reader level: Intermediate

What you'll learn

  • How a RAG system that chats with local documents is designed
  • How data ingestion and retrieval work with Spring AI
  • How to set up, build, and run the project
  • How to ingest documents, ask questions, and test the results
RAG-Nomic LLM using Java and Spring AI

A Retrieval-Augmented Generation (RAG) system built with Spring AI, designed to chat with local documents.

#project#java#spring-ai#rag
AI/ML • 8 min read Reader level: Beginner

What you'll learn

  • How AI changes, and does not change, a traditional developer's job
  • A side-by-side view of traditional versus AI-enhanced development
  • How to bring AI into existing Java, .NET, PHP, Ruby, or Node.js stacks
  • A beginner-to-advanced AI learning roadmap
From Traditional Developer to AI Engineer: A Simple Guide to Staying Relevant

A practical guide for traditional software developers to transition into AI engineering by layering AI capabilities onto existing skills and systems.

#ai-engineering#developer-career#llm#rag