Quickstart
Run evaluations and detect events in your messages in minutes.
Get started with phospho lab, the core of phospho. This is what the hosted version of phospho leverages to deliver insights.
The phospho lab is a tool that allows you to run evaluations and detect events in your messages.
- Define custom workloads and jobs
- Run them on your messages in parallel
- Optimize your models and configurations
Installation
Install the phospho package with the lab
extra:
You need to set your OPENAI_API_KEY as an environment variable.
If you don’t want to use OpenAI, you can setup Ollama and set the following environment variables:
This will replace all calls to OpenAI models with calls to the mistral
model running with Ollama. Make sure you’ve downloaded Item.
Create a workload
The phospho lab lets you run extractions on your messages.
Start by creating a workload. A workload is a set of jobs that you want to run on your messages.
Define jobs
Define jobs and add them to the workload. For example, let’s add an event detection job. Those are the jobs you can setup in phospho cloud.
Run the workload
Now, you can run the workload on your messages.
Messages are a basic abstraction. They can be user messages or LLM outputs. They can contain metadata or additional information. It’s up to the jobs to decide what to do with them.
Gather results
Results are stored in the workload.
You can also get them in a pandas dataframe.
Was this page helpful?