docs: Add LangSmith docs
This commit is contained in:
parent
add8fc7ded
commit
147f075877
5 changed files with 56 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ Components are the building blocks of flows. They consist of inputs, outputs, an
|
||||||
style={{ width: "100%", margin: "20px auto" }}
|
style={{ width: "100%", margin: "20px auto" }}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div style={{ marginBottom: "20px" }}>
|
{/* <div style={{ marginBottom: "20px" }}> */}
|
||||||
|
|
||||||
{/\* On the top right corner of the component, you'll find the component status icon ().
|
{/\* On the top right corner of the component, you'll find the component status icon ().
|
||||||
Build the flow by clicking the **Playground** at the bottom right of the workspace.
|
Build the flow by clicking the **Playground** at the bottom right of the workspace.
|
||||||
|
|
@ -114,7 +114,7 @@ Build the flow by clicking the **Playgr
|
||||||
Once the validation is complete, the status of each validated component should turn green ().
|
Once the validation is complete, the status of each validated component should turn green ().
|
||||||
To debug, hover over the component status to see the outputs. \*/}
|
To debug, hover over the component status to see the outputs. \*/}
|
||||||
|
|
||||||
</div>
|
{/* </div> */}
|
||||||
|
|
||||||
{/\* ### Multiple outputs
|
{/\* ### Multiple outputs
|
||||||
|
|
||||||
|
|
|
||||||
46
docs/docs/integrations/langsmith/intro.mdx
Normal file
46
docs/docs/integrations/langsmith/intro.mdx
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
import Admonition from "@theme/Admonition";
|
||||||
|
import ThemedImage from "@theme/ThemedImage";
|
||||||
|
import useBaseUrl from "@docusaurus/useBaseUrl";
|
||||||
|
import ZoomableImage from "/src/theme/ZoomableImage.js";
|
||||||
|
|
||||||
|
# LangSmith
|
||||||
|
|
||||||
|
LangSmith is a full-lifecycle DevOps service from LangChain that provides monitoring and observability. To integrate with Langflow, just add your LangChain API key as a Langflow environment variable and you are good to go!
|
||||||
|
|
||||||
|
## Step-by-step Configuration
|
||||||
|
|
||||||
|
1. Obtain your LangChain API key from https://smith.langchain.com
|
||||||
|
2. Add the following keys to Langflow .env file:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
LANGCHAIN_API_KEY="your-api-key"
|
||||||
|
LANGCHAIN_PROJECT="your-project-name"
|
||||||
|
```
|
||||||
|
|
||||||
|
or export the environment variables in your terminal:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export LANGCHAIN_API_KEY="your-api-key"
|
||||||
|
export LANGCHAIN_PROJECT="your-project-name"
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Restart Langflow using `langflow run --env-file .env`
|
||||||
|
4. Run any project and check the LangSmith dashboard for monitoring and observability.
|
||||||
|
|
||||||
|
<ZoomableImage
|
||||||
|
alt="LangSmith Flow Example"
|
||||||
|
sources={{
|
||||||
|
light: useBaseUrl("img/langsmith-flow.png"),
|
||||||
|
dark: useBaseUrl("img/langsmith-flow.png"),
|
||||||
|
}}
|
||||||
|
style={{ width: "80%", margin: "20px auto" }}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<ZoomableImage
|
||||||
|
alt="LangSmith Trace"
|
||||||
|
sources={{
|
||||||
|
light: useBaseUrl("img/langsmith-trace.png"),
|
||||||
|
dark: useBaseUrl("img/langsmith-trace.png"),
|
||||||
|
}}
|
||||||
|
style={{ width: "80%", margin: "20px auto" }}
|
||||||
|
/>
|
||||||
|
|
@ -141,6 +141,7 @@ module.exports = {
|
||||||
label: "Integrations",
|
label: "Integrations",
|
||||||
collapsed: false,
|
collapsed: false,
|
||||||
items: [
|
items: [
|
||||||
|
"integrations/langsmith/intro",
|
||||||
{
|
{
|
||||||
type: "category",
|
type: "category",
|
||||||
label: "Notion",
|
label: "Notion",
|
||||||
|
|
@ -157,6 +158,13 @@ module.exports = {
|
||||||
"integrations/notion/page-content-viewer",
|
"integrations/notion/page-content-viewer",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// type: "category",
|
||||||
|
// label: "LangSmith",
|
||||||
|
// items: [
|
||||||
|
// ,
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
BIN
docs/static/img/langsmith-flow.png
vendored
Normal file
BIN
docs/static/img/langsmith-flow.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 298 KiB |
BIN
docs/static/img/langsmith-trace.png
vendored
Normal file
BIN
docs/static/img/langsmith-trace.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 620 KiB |
Loading…
Add table
Add a link
Reference in a new issue