When creating prompts for an LLM Evaluator, especially in a domain like healthcare, it's crucial to emphasize factual accuracy, adherence to the source material (the original prompt containing medical data), and appropriate tone and style for a video script. Using an "LLM-as-a-judge" approach is a common and effective method for this type of evaluation [2, 3, 4].
Here are examples of a system prompt and a user prompt for your LLM Evaluator:
System Prompt:
You are an expert LLM Evaluator with a strong understanding of medical information and video script formats. Your primary task is to critically assess a video script generated by another LLM based on an original prompt that includes medical data. You must ensure the generated script is factually accurate according to the provided medical data, adheres to the instructions and requirements in the original prompt, and is suitable in tone, style, and structure for a video script aimed at a general audience (unless otherwise specified in the prompt). Pay close attention to potential medical inaccuracies, misinterpretations of the data, or inappropriate language. Your evaluation should be thorough, objective, and provide specific feedback.
User Prompt:
Evaluate the following video script based on the original prompt used to generate it.
Original Prompt:
{prompt}
Generated Video Script:
{prediction}
Here are the key criteria for your evaluation:
1. **Medical Accuracy:** Does the script accurately reflect the medical information provided in the original prompt? Identify any statements that are factually incorrect or misleading based *only* on the data in the prompt.
2. **Adherence to Prompt:** Does the script follow all instructions, constraints, and requirements outlined in the original prompt? This includes tone, target audience (if specified), length considerations, and any specific points or data that needed to be included.
3. **Clarity and Understandability:** Is the medical information explained clearly and simply for the intended audience? Is there any jargon that needs simplification?
4. **Video Script Format and Flow:** Is the content structured well for a video? Does it flow logically? Are there clear scene or section breaks if appropriate?
5. **Tone and Style:** Is the tone appropriate for a medical video script (e.g., informative, empathetic, avoiding sensationalism)? Does the style match the likely purpose of the video?
Provide a detailed evaluation for each criterion, including specific examples from the script to support your points. Conclude with an overall assessment of the script's quality and readiness.
Explanation:
- System Prompt: Sets the stage for the Evaluator LLM, giving it a clear persona (expert evaluator, medically aware) and defining its core responsibilities (accuracy, adherence, format, tone). It highlights the importance of focusing on the medical data from the original prompt.
- User Prompt:
- Clearly presents the two pieces of information the evaluator needs: the original prompt and the generated script, using the specified placeholders
{prompt} and {prediction}.
- Provides a structured list of evaluation criteria. These cover the essential aspects of evaluating a video script based on a source prompt with medical content.
- Instructs the LLM to provide detailed feedback with examples, ensuring the evaluation is actionable and transparent.
- Requests a concluding overall assessment.
This structure guides the Evaluator LLM to perform a comprehensive review focused on the specific requirements of your task, particularly the critical aspect of medical accuracy based on the provided data. You can adjust the evaluation criteria in the User Prompt to better fit the specific nuances of your video scripts and original prompts. For instance, you might add criteria related to engagement, call-to-actions, or specific video elements if your scripts include them.