From 416dfe95da68065b26e755c93b2bd1433c5ea9f6 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Fri, 22 Nov 2024 13:16:41 -0500 Subject: [PATCH 1/6] qxqx --- docs/docs/concepts/template_applications.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docs/concepts/template_applications.md b/docs/docs/concepts/template_applications.md index df8bc5e63..621755961 100644 --- a/docs/docs/concepts/template_applications.md +++ b/docs/docs/concepts/template_applications.md @@ -6,7 +6,8 @@ Templates are open source reference applications designed to help you get started quickly when building with LangGraph. They provide working examples of common agentic workflows that can be customized to your needs. -Templates can be accessed via [LangGraph Studio (macOS only)](langgraph_studio.md), or cloned directly from Github. You can download LangGraph Studio and see available templates [here](https://studio.langchain.com/). +You can create an application from a template using the LangGraph CLI. + ## Available templates From 05791f5dfc5804a5022549cf10a60d86568da2de Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Fri, 22 Nov 2024 13:26:46 -0500 Subject: [PATCH 2/6] qxqx --- docs/docs/concepts/template_applications.md | 27 ++++++++++++++++++--- docs/docs/tutorials/index.md | 1 + 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/docs/docs/concepts/template_applications.md b/docs/docs/concepts/template_applications.md index 621755961..366237e1d 100644 --- a/docs/docs/concepts/template_applications.md +++ b/docs/docs/concepts/template_applications.md @@ -1,9 +1,5 @@ # Template Applications -!!! note Prerequisites - - - [LangGraph Studio](./langgraph_studio.md) - Templates are open source reference applications designed to help you get started quickly when building with LangGraph. They provide working examples of common agentic workflows that can be customized to your needs. You can create an application from a template using the LangGraph CLI. @@ -18,3 +14,26 @@ You can create an application from a template using the LangGraph CLI. | **Memory Agent** | A ReAct-style agent with an additional tool to store memories for use across threads. | [Repo](https://github.com/langchain-ai/memory-agent) | [Repo](https://github.com/langchain-ai/memory-agent-js) | | **Retrieval Agent** | An agent that includes a retrieval-based question-answering system. | [Repo](https://github.com/langchain-ai/retrieval-agent-template) | [Repo](https://github.com/langchain-ai/retrieval-agent-template-js) | | **Data-Enrichment Agent** | An agent that performs web searches and organizes its findings into a structured format. | [Repo](https://github.com/langchain-ai/data-enrichment) | [Repo](https://github.com/langchain-ai/data-enrichment-js) | + + + +## 🌱 Create a LangGraph App + +To create a new app from a template, use the `langgraph new` command. This command will create a new directory with the specified template. + +```shell + +This is a quick start guide to help you get a LangGraph app up and running locally. + +!!! info "Requirements" + + - [LangGraph CLI](https://langchain-ai.github.io/langgraph/cloud/reference/cli/): Requires langchain-cli[inmem] >= 0.1.58 + +## Install the LangGraph CLI + +```bash +pip install "langgraph-cli[inmem]==0.1.58" python-dot-env +``` + + + diff --git a/docs/docs/tutorials/index.md b/docs/docs/tutorials/index.md index d9593c9b8..2605c282e 100644 --- a/docs/docs/tutorials/index.md +++ b/docs/docs/tutorials/index.md @@ -13,6 +13,7 @@ New to LangGraph or LLM app development? Read this material to get up and runnin - [LangGraph Quickstart](introduction.ipynb): Build a chatbot that can use tools and keep track of conversation history. Add human-in-the-loop capabilities and explore how time-travel works. - [LangGraph Server Quickstart](langgraph-platform/local-server.md): Launch a LangGraph server locally and interact with it using the REST API and LangGraph Studio Web UI. - [LangGraph Cloud QuickStart](../cloud/quick_start.md): Deploy a LangGraph app using LangGraph Cloud. +- [Start from a ](../concepts/template_applications.md): Use a template to quickly create a new LangGraph application. ## Use cases 🛠️ From f122ae2eb16d2bd36b6518e1008fb48fa4f79004 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Fri, 22 Nov 2024 14:20:56 -0500 Subject: [PATCH 3/6] qxqx --- docs/docs/how-tos/deploy-self-hosted.md | 2 +- docs/docs/tutorials/langgraph-platform/local-server.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/how-tos/deploy-self-hosted.md b/docs/docs/how-tos/deploy-self-hosted.md index 88d7c72e4..d0d3a3efe 100644 --- a/docs/docs/how-tos/deploy-self-hosted.md +++ b/docs/docs/how-tos/deploy-self-hosted.md @@ -74,7 +74,7 @@ If you want to run this quickly without setting up a separate Redis and Postgres * You need to replace `my-image` with the name of the image you built in the previous step (from `langgraph build`). and you should provide appropriate values for `REDIS_URI`, `DATABASE_URI`, and `LANGSMITH_API_KEY`. * If your application requires additional environment variables, you can pass them in a similar way. - * If using [Self-Hosted Enterprise](../concepts/deployment_options.md#self-hosted-enterprise, you must provide `LANGGRAPH_CLOUD_LICENSE_KEY` as an additional environment variable. + * If using [Self-Hosted Enterprise](../concepts/deployment_options.md#self-hosted-enterprise), you must provide `LANGGRAPH_CLOUD_LICENSE_KEY` as an additional environment variable. ### Using Docker Compose diff --git a/docs/docs/tutorials/langgraph-platform/local-server.md b/docs/docs/tutorials/langgraph-platform/local-server.md index a41333921..22754c471 100644 --- a/docs/docs/tutorials/langgraph-platform/local-server.md +++ b/docs/docs/tutorials/langgraph-platform/local-server.md @@ -9,7 +9,7 @@ This is a quick start guide to help you get a LangGraph app up and running local ## Install the LangGraph CLI ```bash -pip install "langgraph-cli[inmem]==0.1.58" python-dot-env +pip install "langgraph-cli[inmem]==0.1.58" python-dotenv ``` ## 🌱 Create a LangGraph App @@ -241,4 +241,4 @@ Access detailed documentation for development and API usage: - **[LangGraph Server API Reference](../../cloud/reference/api/api_ref.html)**: Explore the LangGraph Server API documentation. - **[Python SDK Reference](../../cloud/reference/sdk/python_sdk_ref.md)**: Explore the Python SDK API Reference. -- **[JS/TS SDK Reference](../../cloud/reference/sdk/js_ts_sdk_ref.md)**: Explore the Python SDK API Reference. \ No newline at end of file +- **[JS/TS SDK Reference](../../cloud/reference/sdk/js_ts_sdk_ref.md)**: Explore the Python SDK API Reference. From c1c2ce8f1be240f02b6deec1d508be550124e4f2 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Fri, 22 Nov 2024 14:42:36 -0500 Subject: [PATCH 4/6] x --- docs/docs/concepts/template_applications.md | 51 +++++++++++++++------ docs/docs/tutorials/index.md | 2 +- 2 files changed, 38 insertions(+), 15 deletions(-) diff --git a/docs/docs/concepts/template_applications.md b/docs/docs/concepts/template_applications.md index 366237e1d..1bed86a32 100644 --- a/docs/docs/concepts/template_applications.md +++ b/docs/docs/concepts/template_applications.md @@ -4,8 +4,18 @@ Templates are open source reference applications designed to help you get starte You can create an application from a template using the LangGraph CLI. +!!! info "Requirements" -## Available templates + - Python >= 3.11 + - [LangGraph CLI](https://langchain-ai.github.io/langgraph/cloud/reference/cli/): Requires langchain-cli[inmem] >= 0.1.58 + +## Install the LangGraph CLI + +```bash +pip install "langgraph-cli[inmem]==0.1.58" python-dotenv +``` + +## Available Templates | Template | Description | Python | JS/TS | |---------------------------|------------------------------------------------------------------------------------------|------------------------------------------------------------------|---------------------------------------------------------------------| @@ -16,24 +26,37 @@ You can create an application from a template using the LangGraph CLI. | **Data-Enrichment Agent** | An agent that performs web searches and organizes its findings into a structured format. | [Repo](https://github.com/langchain-ai/data-enrichment) | [Repo](https://github.com/langchain-ai/data-enrichment-js) | - ## 🌱 Create a LangGraph App -To create a new app from a template, use the `langgraph new` command. This command will create a new directory with the specified template. - -```shell - -This is a quick start guide to help you get a LangGraph app up and running locally. - -!!! info "Requirements" - - - [LangGraph CLI](https://langchain-ai.github.io/langgraph/cloud/reference/cli/): Requires langchain-cli[inmem] >= 0.1.58 - -## Install the LangGraph CLI +To create a new app from a template, use the `langgraph new` command. ```bash -pip install "langgraph-cli[inmem]==0.1.58" python-dot-env +langgraph new ``` +## Next Steps +Review the `README.md` file in the root of your new LangGraph app for more information about the template and how to customize it. +After configuring the app properly and adding your API keys, you can start the app using the LangGraph CLI: + +```bash +langgraph dev +``` + +See the following guides for more information on how to deploy your app: + +- **[Launch Local LangGraph Server](../tutorials/langgraph-platform/local-server.md)**: This quick start guide shows how to start a LangGraph Server locally for the **ReAct Agent** template. The steps are similar for other templates. +- **[Deploy to LangGraph Cloud](../cloud/quick_start.md)**: Deploy your LangGraph app using LangGraph Cloud. + +### LangGraph Framework + +- **[LangGraph Concepts](../../concepts)**: Learn the foundational concepts of LangGraph. +- **[LangGraph How-to Guides](../../how-tos)**: Guides for common tasks with LangGraph. + +### 📚 Learn More about LangGraph Platform + +Expand your knowledge with these resources: + +- **[LangGraph Platform Concepts](../concepts/index.md#langgraph-platform)**: Understand the foundational concepts of the LangGraph Platform. +- **[LangGraph Platform How-to Guides](../how-tos/index.md#langgraph-platform)**: Discover step-by-step guides to build and deploy applications. diff --git a/docs/docs/tutorials/index.md b/docs/docs/tutorials/index.md index 2605c282e..286137479 100644 --- a/docs/docs/tutorials/index.md +++ b/docs/docs/tutorials/index.md @@ -13,7 +13,7 @@ New to LangGraph or LLM app development? Read this material to get up and runnin - [LangGraph Quickstart](introduction.ipynb): Build a chatbot that can use tools and keep track of conversation history. Add human-in-the-loop capabilities and explore how time-travel works. - [LangGraph Server Quickstart](langgraph-platform/local-server.md): Launch a LangGraph server locally and interact with it using the REST API and LangGraph Studio Web UI. - [LangGraph Cloud QuickStart](../cloud/quick_start.md): Deploy a LangGraph app using LangGraph Cloud. -- [Start from a ](../concepts/template_applications.md): Use a template to quickly create a new LangGraph application. +- [LangGraph Template Quickstart](../concepts/template_applications.md): Quickly start building with LangGraph Platform using a template application. ## Use cases 🛠️ From 24b16908b712d2c1ce9cb705c731109908a401d0 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Fri, 22 Nov 2024 14:43:08 -0500 Subject: [PATCH 5/6] x --- docs/docs/concepts/template_applications.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/concepts/template_applications.md b/docs/docs/concepts/template_applications.md index 1bed86a32..34809eae1 100644 --- a/docs/docs/concepts/template_applications.md +++ b/docs/docs/concepts/template_applications.md @@ -51,8 +51,8 @@ See the following guides for more information on how to deploy your app: ### LangGraph Framework -- **[LangGraph Concepts](../../concepts)**: Learn the foundational concepts of LangGraph. -- **[LangGraph How-to Guides](../../how-tos)**: Guides for common tasks with LangGraph. +- **[LangGraph Concepts](../concepts)**: Learn the foundational concepts of LangGraph. +- **[LangGraph How-to Guides](../how-tos)**: Guides for common tasks with LangGraph. ### 📚 Learn More about LangGraph Platform From f08155d60be7a07aadddbcc76ae7c49dbb762f65 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Fri, 22 Nov 2024 14:43:28 -0500 Subject: [PATCH 6/6] x --- docs/docs/concepts/template_applications.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/concepts/template_applications.md b/docs/docs/concepts/template_applications.md index 34809eae1..32209ad47 100644 --- a/docs/docs/concepts/template_applications.md +++ b/docs/docs/concepts/template_applications.md @@ -51,8 +51,8 @@ See the following guides for more information on how to deploy your app: ### LangGraph Framework -- **[LangGraph Concepts](../concepts)**: Learn the foundational concepts of LangGraph. -- **[LangGraph How-to Guides](../how-tos)**: Guides for common tasks with LangGraph. +- **[LangGraph Concepts](../concepts/index.md)**: Learn the foundational concepts of LangGraph. +- **[LangGraph How-to Guides](../how-tos/index.md)**: Guides for common tasks with LangGraph. ### 📚 Learn More about LangGraph Platform