Instrumentation ( Auto )
Prompt Flow
1. Installation
First install the traceAI and promptflow packages.
2. Set Environment Variables
Set up your environment variables to authenticate with both FutureAGI and OpenAI services.
3. Initialize Trace Provider
Set up the trace provider to create a new project in FutureAGI, establish telemetry data pipelines .
4. Instrument your Project
Instrument your Project with OpenAI Instrumentor. This step ensures that all interactions with the PromptFlow are tracked and monitored.
5. Prepare the chat.prompty
File
Create a chat.prompty
file in the same directory as your script with the following content:
This will ensure that users have the necessary configuration to create the chat.prompty
file and use it with the ChatFlow
class.
6. Create a Flow
Create a Flow as you normally would. Our Instrumentor will automatically trace and send the telemetry data to our platform.