Comet machine learning platform integrates with your existing infrastructure and tools so you can manage, visualize, and optimize models—from training runs to production monitoring


Install Comet and Dependencies
Initialize Comet and Set your Credentials
You can grab your Comet API Key here or click the link after initializing CometSet OpenAI and SerpAPI credentials
You will need an OpenAI API Key and a SerpAPI API Key to run the following examplesScenario 1: Using just an LLM
Scenario 2: Using an LLM in a Chain
Scenario 3: Using An Agent with Tools
Scenario 4: Using Custom Evaluation Metrics
TheCometCallbackManager
also allows you to define and use Custom Evaluation Metrics to assess generated outputs from your model. Let’s take a look at how this works.
In the snippet below, we will use the ROUGE metric to evaluate the quality of a generated summary of an input prompt.