Introduction
Healthcare assistants are changing the way patients and clinicians interact. For patients, these tools offer easy access to timely advice and guidance, improving overall care and satisfaction. For clinicians, they reduce administrative tasks, allowing more time for patient care while providing real-time knowledge and data to support informed decision-making. In high-stakes healthcare environments, ensuring the reliability of AI assistants is crucial for patient safety and trust in clinical workflows. Unreliable or inaccurate output from AI assistants can lead to:- Diagnostic errors
- Inappropriate treatment decisions
- Adverse patient outcomes
- Reduced user confidence
- Potential legal and regulatory challenges
Example Use Case
For our example, weâll use an AI clinical assistant that helps patients with:- Symptom-related medical guidance đŹ
- Assistance in ordering safe medications and in the correct quantities đ
Evaluation Objectives
We want to ensure that our assistant:- Responds to medical queries in a clear, helpful, and coherent manner
- Only approves drug orders that are relevant to the patient query
- Avoids incorrect or misleading information
- Operates with low latency and predictable cost
Step-by-Step Evaluation Guide
Step 1: Set up a Workflow
- Navigate to the âWorkflowsâ section in the Maxim AI dashboard and click on â+â to create a new workflow.
- Bring your clinical assistant via an API endpoint:
- Enter your AI assistantâs API URL
- Select the appropriate HTTP method
- Define your APIâs input key in the body (i.e., content, in our example)
- Define the variables (key-value pairs) for your endpoint in JSON format in the body section
- Test your workflow setup by passing a query to your API endpoint and checking if your AI assistant is successfully returning a response.
Step 2: Create a Dataset
Weâll create a golden dataset, which is a collection of patient queries and expected medication suggestions.- Go to the âLibraryâ section and select âDatasetsâ
- Click the â+â button and upload a CSV file as a dataset
- Map the columns:
- Set the column you wish to pass to the API endpoint as âInputâ type (e.g., âqueryâ column)
- Set the column you wish to compare with your AI assistantâs response as âExpected Outputâ type (e.g., âexpected_outputâ column)
The name of the column marked âInputâ type should match the name of the field weâre referencing in the body of the API endpoint in Workflows. For example, âqueryâ is the name of the column defined as âInputâ type and has to be referenced in the body as
{{query}}.- Click âAdd to datasetâ to complete the setup
Step 3: Evaluating the AI Assistant
Weâll evaluate the performance of our clinical assistant using the following evaluators from Maximâs Evaluator Store:
To maintain human-in-the-loop evaluation:
- Add a âHuman Evaluatorâ for domain experts or QA reviewers
- Enable direct annotation of results in the final report
- Add a layer of human supervision for sensitive healthcare domains
- Go to the Workflow and click âTestâ in the top right corner
- Select your golden dataset
- Select the output field (e.g., âcontentâ in the API response)
- Choose evaluation methods:
- Annotate on report: Add a column to the run report for direct scoring
- Send via email: Send secure links to external evaluators
Step 4: Analyze Evaluation Report
The test run generates a detailed report showing:- Performance across quality metrics (clarity, output relevance, etc.)
- Model performance metrics (latency and cost)
- Interactive inspection of input queries and responses
- Evaluator scores and reasoning
- Human evaluator feedback and suggestions
Conclusion
Evaluating AI clinical assistants is more than a box to check; itâs a critical safeguard for:- Patient safety
- Clinical reliability
- Long-term trust in healthcare AI
- Build robust evaluation workflows
- Integrate human feedback
- Systematically measure quality and performance