Integrate Opik with Langflow
Opik is an open-source platform designed for evaluating, testing, and monitoring large language model (LLM) applications. Developed by Comet, it aims to facilitate more intuitive collaboration, testing, and monitoring of LLM-based applications.
This guide walks you through how to configure Langflow to collect tracing data about your flow executions and automatically send the data to Opik.
Prerequisites
- A project in Langflow with a runnable flow
- An Open-Source Opik server or an Opik Cloud account - You can learn more about the differences here
- If you are using Opik Cloud, you will also need your Opik API key
Set your Opik configuration as environment variables
Call the CLI opik configure
to save your Opik configuration in the same environment where you run Langflow.
_10opik configure
For self-hosted Opik, you can also configure it using the Opik CLI by running the following command:
_10opik configure --use_local
See the Opik documentation for more ways to configure Opik SDKs.
Start Langflow and run a flow
- Start Langflow in the same terminal or environment where you set the environment variables:
_10uv run langflow run
-
In Langflow, open an existing project, and then run a flow.
-
Navigate to your Opik project dashboard and view the collected tracing data.
Disable the Opik integration
To disable the Opik integration, remove the environment variables you set in the previous steps and restart Langflow.