Skip to main content
Open on GitHub

Weights & Biases

Weights & Biases is provider of the AI developer platform to train and fine-tune AI models and develop AI applications.

Weights & Biase products can be used to log metrics and artifacts during training, and to trace the execution of your code.

There are several main ways to use Weights & Biases products within LangChain:

  • with wandb_tracing_enabled
  • with Weave lightweight toolkit
  • with WandbCallbackHandler (deprecated)

wandb_tracing_enabled

See a usage example.

See in the W&B documentation.

from langchain_community.callbacks import wandb_tracing_enabled
API Reference:wandb_tracing_enabled

Weave

See in the W&B documentation.

WandbCallbackHandler

Note: the WandbCallbackHandler is being deprecated in favour of the wandb_tracing_enabled.

See a usage example.

See in the W&B documentation.

from langchain_community.callbacks import WandbCallbackHandler
API Reference:WandbCallbackHandler

Was this page helpful?