xuro-langchain f68c63b8c4 Merge pull request #4 from langchain-ai/rahul/update-langfuse
Update LangFuse functionality
2026-04-14 11:32:59 -04:00
2026-04-13 20:08:33 -04:00
2026-04-13 20:08:33 -04:00
2025-12-03 20:38:36 -05:00
2025-12-03 20:38:36 -05:00
2025-12-04 09:59:39 -05:00
2025-12-03 20:23:30 -05:00

Migrating to LangSmith

Setup

  1. Create a .env file in the project root following the .env.example file

  2. 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
  1. Select the desired observability provider to migrate from
  2. Confirm migration settings with yes or no to 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:

  1. Open the runbook in your IDE or using jupyter notebook in the root directory.
  2. Review sections for prompts, datasets, and traces.
  3. Execute cells to inspect transformations and payloads.
S
Description
No description provided
Readme 102 KiB
Languages
Python 62.5%
Jupyter Notebook 37.5%