Get started
MAIHEM python package
The maihem python package allows you to simulate AI personas and generate synthetic text data for training and evaluating your LLMs. It also provides text data evaluations.
Installation
To install, run the following command in a terminal:
Make sure you have upgraded to the latest version with the following command in the terminal.
Import maihem package
To import the maihem package, in python add this line
Get API key
You need an API key to access our service.
Log into your account here, then click in the Account
tab on the left.
You will find your API key there. Store it safely and don’t share it with anyone else.
Set API key
Before using the maihem package, you need to set your maihem API key as an environment variable. You can add it directly in your python code, or to your local bash script.
Alternative 1: In python code
In the beggining of your code add the following lines with your corresponding API key: