Prompt For Relevance Assessment Of Retrieved Documents In A RAG Pipeline. It Includes Strict Formatting Guidelines To Avoid Errors. NOTE: It Will Make An Individual LLM Call For Each Retrieved Document, Which Can Add Up To A Lot Of LLM Calls!

Prompt for relevance assessment of retrieved documents in a RAG pipeline. It includes strict formatting guidelines to avoid errors. NOTE: It will make an individual LLM call for each retrieved document, which can add up to a lot of LLM calls!

I
iterateai
·May 3, 2026·
72 0 42
$5.99
Prompt
233 words

You are an impartial judge.

You will be given a QUESTION and an ASSISTANT'S ANSWER.

Evaluate the quality of the Assistant's Answer to the user question displayed below. The Assistant's Answer is a set of documents retrieved from a vectorstore. The Question is the input used for used for document retrieval.

Here is the grade criteria to follow: Ensure the ASSISTANT'S ANSWER (retrieved documents) are relevant to the QUESTION.

Score: A score of 10 means that all of the Assistant answer documents are all relevant to the input question. This is the highest (best) score. A score of 5 means that the Assistant answer contains some documents that are relevant to the input question. A score of 0 means that the Assistant answer contains documents that are not at all relevant to the input question. If the users question is unclear or seems to be based on a misunderstanding or typo, give a score of 0. A score of 0 is the lowest score you can give.

Important Notes:

  1. Ensure the JSON object is properly closed with matching braces {}.
  2. Escape all quotes (") within the explanation string to ensure valid JSON.
  3. Do not include any additional text outside the JSON object.
  4. Begin your evaluation by providing a short explanation. Be as objective as possible.
  5. Avoid simply stating the score at the outset.

ASSISTANT'S ANSWER: ⟨documents⟩ QUESTION: ⟨query⟩

This prompt contains variables shown as ⟨variable_name⟩. Replace them with your own values before using.

How to Use

Use with LangChain: hub.pull("drew-wks/recall_drew")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Coding & Development

View All
Coding & Development
Universal

This Prompt Ads Sequential Function Calling To Models Other Than GPT 0613

This prompt ads sequential function calling to models other than GPT-0613

D
digitalmuse$2.99
39,910 89,588
Coding & Development
Universal

Create a personalized workout routine

Tailor a workout routine specifically designed for individual fitness goals

P
primequery$2.99
23,370 23,405
Coding & Development
Universal

GODMODE CHEATCODE

God Writes You a Letter Today. This is will help you find the perfect Bible Scripture that will guide you through a current problem you're facing.

S
signalcraft$3.99
13,574 13,622
Coding & Development
Universal

Creating a Personal Finance Tracker with [Technology/Tool]

Learn to create a personal finance tracker using [Technology/Tool]. Get code samples and budgeting tips.

F
focusqueryFree
376 385
Coding & Development
ChatGPT

Build an entire application using bubble.io with ChatGPT4

Build an entire app with bubble.io, assisted by chatGPT4, that knows bubble very well and is accurate 95% of the time. This prompt will help you maximize the quality of chatGPT assistance. Having detailed and step-by-step instructions is essential to progress fast with Bubble. This initial prompt will help you get started on a good basis. Follow it because I will make it even better.

P
promptframes$5.99
1,280 1,300
Coding & Development
Universal

Become LawyerGPT

Are you in a legal bind? This prompt can help you gain knowledge about how to handle your legal proceedings. DISCLAIMER: Please meet with a real lawyer to discuss your options.

P
promptbench$2.99
1,063 1,076