Test AI workflow
With auto-generated dataset
Get your Maihem API key and install the SDK before you start.
Integrate with your codebase
1
Add target agent (if you haven't already)
2
Add a decorator to each step of your workflow
This is an example of a basic RAG workflow. Add a decorator to each step of the workflow as shown below.
See a full list of supported evaluators and metrics and their required input and output maps.
Example agent workflow in Python
Auto-generate test
3
Add documents to auto-generate questions from them
Maihem supports documents in the following formats: pdf, txt, docx, md.
Move all the documents to the same folder.
4
Create test with auto-generated data
5
Run the test
A test run
will generate:
- Simulated conversations between your target agent and Maihem
- Evaluations of the conversations
- A list of detected failures
6