Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
Hi @jamess jamess ,
In Azure AI Foundry, prompt evaluation is most effective when you combine automated evaluations with human review. Here are some practical troubleshooting and validation steps you can follow:
- Create a representative evaluation dataset
- Prepare a JSONL dataset containing real-world inputs and expected outputs.
- Include edge cases, ambiguous queries, and common user scenarios.
- Use Azure AI Foundry Evaluation
- Run evaluation jobs using the same prompt, model, temperature, and parameters that you plan to use in production.
- Compare multiple prompt versions under identical conditions.
- Review key evaluation metrics
- Accuracy/Correctness: Does the response answer the question correctly?
- Relevance: Is the response aligned with the user's intent?
- Groundedness (for RAG scenarios): Is the answer based on the provided context?
- Completeness: Are all parts of the question addressed?
- Fluency: Is the response clear and natural?
- Perform A/B testing
- Modify only one prompt component at a time (instructions, examples, format, etc.).
- Compare evaluation results to identify which changes improve quality.
- Validate consistency
- Run the same test dataset multiple times.
- Review responses for variability, especially when using higher temperature settings.
- Monitor after deployment
- Review user feedback and production telemetry regularly.
- Re-evaluate prompts whenever the model, data source, or business requirements change.
Microsoft documentation related to prompt evaluation and comparison can be helpful:
- Azure AI Foundry Evaluation
- Evaluate and compare prompt versions
- RAG evaluation and groundedness metrics
These practices help establish a repeatable process for measuring prompt quality and detecting regressions before deployment.
Thankyou!