* port unrelated changes from IA PR * few more ports * fix build * edit to try to restart build
27 lines
No EOL
1.1 KiB
Text
27 lines
No EOL
1.1 KiB
Text
---
|
|
title: LangSmith
|
|
slug: /integrations-langsmith
|
|
---
|
|
|
|
LangSmith is a full-lifecycle DevOps service from LangChain that provides monitoring and observability. To integrate with Langflow, add your LangChain API key and configuration as Langflow environment variables, and then start Langflow.
|
|
|
|
1. Obtain your LangChain API key from [https://smith.langchain.com](https://smith.langchain.com/)
|
|
2. Add the following keys to the Langflow .env file.
|
|
Replace `LANGCHAIN_API_KEY` and `LANGSMITH_PROJECT_NAME` with your LangChain API key.
|
|
|
|
```text
|
|
LANGSMITH_TRACING=true
|
|
LANGSMITH_ENDPOINT=https://api.smith.langchain.com/
|
|
LANGSMITH_API_KEY=LANGCHAIN_API_KEY
|
|
LANGSMITH_PROJECT=LANGSMITH_PROJECT_NAME
|
|
```
|
|
|
|
Alternatively, export the environment variables in your terminal:
|
|
|
|
`export LANGSMITH_TRACING=true && export LANGSMITH_ENDPOINT="https://api.smith.langchain.com/" && export LANGSMITH_API_KEY="LANGCHAIN_API_KEY" && export LANGSMITH_PROJECT="LANGSMITH_PROJECT_NAME"`
|
|
|
|
3. Restart Langflow using `langflow run --env-file .env`
|
|
4. Run a project in Langflow.
|
|
5. View the LangSmith dashboard for monitoring and observability.
|
|
|
|
 |