How-to Guides

Step-by-step instructions for common tasks and workflows.

Integrating with LangChain

Learn how to use Co-one as a custom callback handler in your LangChain pipelines to automatically evaluate every generation.

import { CoOneCallbackHandler } from 'co-one-langchain';

const handler = new CoOneCallbackHandler({
  apiKey: process.env.CO_ONE_API_KEY,
});

const chain = new LLMChain({
  llm: chatModel,
  prompt: promptTemplate,
  callbacks: [handler],
});

Setting up Alerts

Configure email or Slack notifications when your model's reliability score drops below a certain threshold.

  1. Go to the Settings page.
  2. Click on the Alerts tab.
  3. Select your notification channel (Email, Slack, PagerDuty).
  4. Set the threshold (e.g., "Reliability Index < 0.9").
  5. Click Save.

Choose whether to allow optional analytics and marketing tags.