Weave Integration
Weave is Weights & Biases' toolkit for developing and monitoring AI applications.
Overview
The Weave integration enables LangGuard to:
- Import traces from Weave projects
- Sync artifacts and model versions
- Track experiments and evaluations
- Apply governance policies
Prerequisites
- A Weights & Biases account
- Weave enabled for your project
- API key from W&B
Getting Your API Key
- Log in to Weights & Biases
- Navigate to User Settings
- Find API Keys section
- Copy your API key
Setup
Add Integration
- Navigate to Settings > Integrations in LangGuard
- Click Add Integration
- Select Weave
- Enter credentials:
- Name: Friendly name
- API Key: Your W&B API key
- Entity: Your W&B username or team
- Project: Weave project name
- Click Test Connection
- Configure sync settings
- Click Save
Environment Variables
WANDB_API_KEY=your-api-key
WANDB_ENTITY=your-entity
WEAVE_PROJECT=your-project
What Gets Synced
| Weave Entity | LangGuard Mapping |
|---|---|
| Calls | Traces |
| Ops | Operations/spans |
| Artifacts | Metadata |
| Tables | Data references |
Features
Experiment Tracking
Weave provides rich experiment context:
- Model versions
- Dataset versions
- Hyperparameters
- Evaluation metrics
Artifact Lineage
Track data and model lineage:
- Input datasets
- Model checkpoints
- Output artifacts
Troubleshooting
Authentication Failed
- Verify API key is correct
- Check entity name matches
- Ensure project exists
No Calls Found
- Verify Weave tracing is enabled
- Check project name is correct
- Adjust time range settings
Next Steps
- Trace Explorer - Analyze Weave traces
- Data Catalog - Browse synced artifacts