AI LAB technical archive
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.
- Go to the Settings page.
- Click on the Alerts tab.
- Select your notification channel (Email, Slack, PagerDuty).
- Set the threshold (e.g., "Reliability Index < 0.9").
- Click Save.