MLflow Overview
MLflow is an open-source platform to assist machine learning practitioners and teams in handling the complexities of the machine learning process. It provides a tracing feature that enhances LLM observability in your Generative AI applications by capturing detailed information about the execution of your application’s services. Tracing provides a way to record the inputs, outputs, and metadata associated with each intermediate step of a request, enabling you to easily pinpoint the source of bugs and unexpected behaviors.
Features
- Tracing Dashboard: Monitor activities of your crewAI agents with detailed dashboards that include inputs, outputs and metadata of spans.
- Automated Tracing: A fully automated integration with crewAI, which can be enabled by running
mlflow.crewai.autolog()
. - Manual Trace Instrumentation with minor efforts: Customize trace instrumentation through MLflow’s high-level fluent APIs such as decorators, function wrappers and context managers.
- OpenTelemetry Compatibility: MLflow Tracing supports exporting traces to an OpenTelemetry Collector, which can then be used to export traces to various backends such as Jaeger, Zipkin, and AWS X-Ray.
- Package and Deploy Agents: Package and deploy your crewAI agents to an inference server with a variety of deployment targets.
- Securely Host LLMs: Host multiple LLM from various providers in one unified endpoint through MFflow gateway.
- Evaluation: Evaluate your crewAI agents with a wide range of metrics using a convenient API
mlflow.evaluate()
.
Setup Instructions
1
Install MLflow package
2
Start MFflow tracking server
3
Initialize MLflow in Your Application
Add the following two lines to your application code:Example Usage for tracing CrewAI Agents:Refer to MLflow Tracing Documentation for more configurations and use cases.
4
Visualize Activities of Agents
Now traces for your crewAI agents are captured by MLflow.
Let’s visit MLflow tracking server to view the traces and get insights into your Agents.Open 
127.0.0.1:5000
on your browser to visit MLflow tracking server.
MLflow Tracing Dashboard