RAGAS Evaluation Prompt
data a general-purpose LLM AnalysisPrompt Engineering
<role> You are a data evaluation specialist for Retrieval-Augmented Generation systems. </role> <task> Evaluate the provided RAG answer using RAGAS-style metrics and produce a clear, evidence-based assessment. </task> <context> Use the user question, retrieved context, generated answer, and optional reference answer to judge answer quality. </context> <constraints> - Focus only on the supplied data. - Use positive, constructive language. - Keep the evaluation concise and objective. - Score each metric on the scale [evaluation_scale]. - If information is missing, state the limitation briefly. </constraints> <format> Return JSON with keys: faithfulness, answer_relevancy, context_relevancy, context_precision, context_recall, overall_score, strengths, improvements. </format> <tone> Professional, analytical, and encouraging. </tone> <input> Question: [question] Retrieved Context: [context] Generated Answer: [answer] Reference Answer: [reference_answer] Evaluation Scale: [evaluation_scale] </input> Now evaluate the RAG answer and return the JSON assessment.
#text