mirror of
https://github.com/langchain-ai/langsmith-migrations.git
synced 2026-06-29 22:13:38 -04:00
main
Update LangFuse functionality
Migrating to LangSmith
Setup
-
Create a
.envfile in the project root following the .env.example file -
Use a Python virtual environment and install dependencies.
python3 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -r requirements.txt
Migrating Prompts, Datasets, and Traces
The migration orchestrator prompts you to select which observability framework you want to migrate from.
source .venv/bin/activate
python -u migrate.py
- Select the desired observability provider to migrate from
- Confirm migration settings with
yesornoto migrate prompts, datasets, and traces.- Note: Trace replay is for illustrative purposes on how to convert formats. Migrating your full trace data to LangSmith should be done using bulk export functionality.
Runbooks (Notebooks)
Each provider has a runbook notebook to illustrate how to migrate your existing code to utilize LangSmith.
Each observability provider in this repo has a runbook under its corresponding directory.
- Langfuse runbook:
providers/langfuse/runbook.ipynb - Arize Phoenix runbook:
providers/phoenix/runbook.ipynb
Usage:
- Open the runbook in your IDE or using
jupyter notebookin the root directory. - Review sections for prompts, datasets, and traces.
- Execute cells to inspect transformations and payloads.
Description
Languages
Python
62.5%
Jupyter Notebook
37.5%