ladderlore
  • S3 や IAM などのサービス名を入力してください。

概念 · AIF-C01 の発展

RAG architecture patterns

Naive, advanced, graph, agentic and multimodal RAG, and when each one fits.

このレッスンはまだ翻訳されていないため、英語で表示しています。

AI Practitionerで学んだこと

  • RAG retrieves relevant passages, adds them to the prompt, and generates a grounded answer.
  • It uses embeddings and a vector store, so the model needs no retraining.
  • Amazon Bedrock Knowledge Bases is the managed way to do RAG on AWS.
AI Practitionerのレッスンを読む
  • Naive RAG

    Adds
    One vector search
    Pick when
    Simple lookups
  • Advanced RAG

    Adds
    Rewrite, hybrid search, rerank
    Pick when
    Answers miss or are noisy
  • GraphRAG

    Adds
    Entity graph in Neptune Analytics
    Pick when
    Facts linked across documents
  • Agentic RAG

    Adds
    An agent plans searches
    Pick when
    Multi-step, many sources
  • Multimodal RAG

    Adds
    Images, audio, video
    Pick when
    Content is not only text
Five RAG patterns and when to pick each.

1 / 2

  • Naive RAG

    Adds
    One vector search
    Pick when
    Simple lookups
  • Advanced RAG

    Adds
    Rewrite, hybrid search, rerank
    Pick when
    Answers miss or are noisy
  • GraphRAG

    Adds
    Entity graph in Neptune Analytics
    Pick when
    Facts linked across documents

2 / 2

  • Agentic RAG

    Adds
    An agent plans searches
    Pick when
    Multi-step, many sources
  • Multimodal RAG

    Adds
    Images, audio, video
    Pick when
    Content is not only text
Five RAG patterns and when to pick each.
Facts change or are private?
RAG
Need new tone or task skill?
Fine-tuning
Prompt engineering
yesnoyesno
RAG, fine-tuning or prompting. You can combine them.

概要

Naive RAG is the basic loop: embed the question, fetch the top matching chunks from one vector store, and generate. It is quick to build and fine for simple lookups. When answers miss, move to advanced RAG, which adds steps around the loop: rewrite or split the question, search with hybrid search (meaning plus keywords), filter by metadata, and rerank the results before generation.

概要

Some questions need more. GraphRAG links entities and their relations in a graph, so the system can connect facts across documents. Amazon Bedrock Knowledge Bases supports GraphRAG with Amazon Neptune Analytics. Agentic RAG lets an agent decide whether to search, which source to use and whether to search again, which suits multi-step questions over several sources. Multimodal RAG indexes images, audio or video as well as text, so a question can retrieve a chart or a clip.

概要

Managed or custom? Knowledge Bases handle ingestion, chunking, embedding, storage and retrieval, which makes them the right default. Build a custom pipeline when you need a control the managed service lacks, such as a special chunker, a retriever you already run, or a store it does not support. RAG and fine-tuning solve different problems: RAG supplies facts at question time, fine-tuning changes behavior.

覚えること

  • Naive RAG: embed, retrieve the top chunks, generate.
  • Advanced RAG adds query rewriting, hybrid search, metadata filters and reranking.
  • GraphRAG: an entity and relation graph, for questions that link facts across documents.
  • Agentic RAG: an agent plans the searches and picks the sources.
  • Multimodal RAG: images, audio and video are searchable too.

覚えること

  • Managed Knowledge Bases first. A custom pipeline only for a control you cannot get.

試験では

  • “Answers must connect facts spread across many documents” points to GraphRAG.
  • “The model must choose which source to search, and search again if needed” points to agentic RAG.
  • “Exact product codes are missed by embedding search” points to hybrid search.
  • “Add current facts without retraining” points to RAG, not fine-tuning.