LearnAI
Module 2 · Agents and RAG (Pro) · Lesson 1/4
← Back to catalog
Task

RAG: answer only according to documents

Write a prompt so that the bot responds STRICTLY according to the given context: it relies only on it and, if there is no exact answer there, honestly writes that this is not in the documents - without inventing new rules.

Unlock access to submit solutions for instant AI review.Start for free
RAG assistant core
💡 A bit of theory

A RAG bot is strong when it is strictly tied to the context: “answer only according to the text below; if the answer is not there, say so.” Without this, he hallucinates on top of the documents.

How it's graded · passing score 70

  • 1Reliance on context / honest “not in the documents”40%
  • 2Doesn't make up rules out of context60%
Your promptClaude ⌄