Skip to content

Framework

LangChain + Cloudmind

A LangChain callback handler that maps chains, agents, retrievers and tools onto Cloudmind's nested span model automatically.

How it works

Register the Cloudmind callback handler once and the entire LangChain execution tree is traced: chains, agents, retrievers, tools and the model calls underneath each of them.

Retrieval steps record the query, the returned chunks and their similarity scores, which is usually where RAG quality problems actually live.

Setup

import { CloudmindCallbackHandler } from "@cloudmind-ai/js/langchain";

const handler = new CloudmindCallbackHandler();

await chain.invoke({ question: "What is our refund policy?" }, { callbacks: [handler] });

Supported

  • Chains and LCEL

  • Agents and AgentExecutor

  • Retrievers and vector stores

  • Tools

  • LangGraph nodes

  • Streaming

Stop guessing whether your AI feature got better

Free for 50,000 traces a month. No credit card, no sales call, five minutes to your first trace.

Start free