Experiment
OpenAI
Install traceAI
Set Environment Variables
Set up your environment variables to authenticate with both FutureAGI and OpenAI services. These credentials enable:
- Secure access to FutureAGI’s observability platform
- Authentication with OpenAI’s API
- Encrypted telemetry data transmission
Define Evaluation Tags
Define evaluation criteria for monitoring LLM responses. Evaluation tags allow you to:
- Define custom evaluation criteria
- Set up automated response quality checks
- Track model performance metrics
Click here here to learn how to configure eval tags for observability.
Register Future AGI Tracer Provider
Set up the trace provider to establish the observability pipeline. The trace provider:
- Creates a new project in FutureAGI
- Establishes telemetry data pipelines
- Configures version tracking
- Sets up evaluation frameworks
Instrument OpenAI
Instrument the OpenAI client to enable telemetry collection. This step ensures that all interactions with the OpenAI API are tracked and monitored.
Define Function to Call OpenAI
Define the function that will be used to call the OpenAI API. This function will be used to call the OpenAI API and return the response.