AIToday
Large Language ModelsQiita 機械学習Published: Dec 3, 2026, 01:00 JST

ONE WEDGE explains RAG with a leave-rule walkthrough

Send on LINE
ONE WEDGE explains RAG with a leave-rule walkthrough

3 Key Points

  1. What happened

    ONE WEDGE published a code-free beginner's guide to RAG (Retrieval-Augmented Generation), walking through a fictional company's refresh-leave rules to show how an LLM is handed searched documents and answers with cited sources.

  2. Why it matters

    The guide shows that prompt instructions alone cannot supply company-specific rules, so the application must retrieve the right documents and pass them to the model for grounded answers.

Ask AI

Ask the AI about this article. Questions and answers are published on this page

Context & Analysis

The guide situates RAG as a follow-on to earlier installments on hallucination and prompt design. Prompt instructions can specify a role or tone, but they cannot convey a company's own rules — which is why the application retrieves relevant passages and hands them to the model alongside the question.

The walkthrough separates preparation (extracting text, splitting long passages, and keeping document names and headings for citations) from the live flow of search, context assembly, and generation. It notes that how documents are split matters: a section on application steps could be retrieved while important eligibility conditions are left out.

RAG and fine-tuning differ on maintenance: when a leave deadline changes, the documents and search data are updated rather than the model's weights. Stale search data can still pass an old rule to the model, so the guide treats checking sources, retrieval, and the final answer as separate steps. It also warns that a question whose answer is absent from the provided documents should return a clear 'cannot confirm' response, not a guess.

FAQ
What is RAG in simple terms?
RAG stands for Retrieval-Augmented Generation, or '検索拡張生成' in Japanese. It combines an LLM with a search step that finds relevant documents and passes them to the model as context for the answer.
Does RAG eliminate hallucination?
No. The guide lists three failure points: outdated documents left in the search target, the search picking the wrong section, and the model misreading the retrieved text. It says checking whether the right documents were found and whether the answer followed them should be done separately.
How is RAG different from fine-tuning?
In basic RAG, reference documents are added to the input at answer time, so the model's weights do not need updating. Fine-tuning adapts a trained model to a specific task or output, and the two can be combined depending on the goal.
Qiita 機械学習Read Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Related Articles

Next articleZero-code developer grows AI-built system to 1,107,567 lines in 8 months