diff --git a/docs/generate_redirects.py b/docs/generate_redirects.py index ac8ed12e7..e8555ebdf 100644 --- a/docs/generate_redirects.py +++ b/docs/generate_redirects.py @@ -126,6 +126,15 @@ def generate_redirects(): catchall_404.write_text(CATCHALL_404_TEMPLATE.format(default_url=DEFAULT_REDIRECT)) print(f"Created: {catchall_404}") + # Copy static files (like llms.txt) that can't be redirected via HTML + static_files = ["llms.txt"] + for static_file in static_files: + src = script_dir / static_file + if src.exists(): + dst = output_dir / static_file + dst.write_text(src.read_text()) + print(f"Copied: {dst}") + print(f"\nGenerated {len(redirects)} redirect files in {output_dir}") diff --git a/docs/llms.txt b/docs/llms.txt new file mode 100644 index 000000000..75017c34f --- /dev/null +++ b/docs/llms.txt @@ -0,0 +1,35 @@ +# LangGraph + +LangGraph documentation has moved to docs.langchain.com. + +## Overview + +- [LangGraph Overview](https://docs.langchain.com/oss/python/langgraph/overview): Introduction to LangGraph, a library for building stateful, multi-actor applications with LLMs. +- [Why LangGraph?](https://docs.langchain.com/oss/python/langgraph/why-langgraph): Motivation for LangGraph and its key features. + +## Core Concepts + +- [Graph API](https://docs.langchain.com/oss/python/langgraph/graph-api): Learn how to define state, create nodes, and connect them with edges. +- [Streaming](https://docs.langchain.com/oss/python/langgraph/streaming): Stream outputs from your graph for better UX. +- [Persistence](https://docs.langchain.com/oss/python/langgraph/persistence): Add memory and checkpointing to your graphs. +- [Add Memory](https://docs.langchain.com/oss/python/langgraph/add-memory): Implement short-term and long-term memory. +- [Workflows & Agents](https://docs.langchain.com/oss/python/langgraph/workflows-agents): Build agents and workflows with LangGraph. + +## How-To Guides + +- [Use Subgraphs](https://docs.langchain.com/oss/python/langgraph/use-subgraphs): Compose graphs using subgraphs. +- [Observability](https://docs.langchain.com/oss/python/langgraph/observability): Add tracing and debugging to your graphs. +- [Common Errors](https://docs.langchain.com/oss/python/langgraph/common-errors): Troubleshoot common LangGraph errors. + +## Tutorials + +- [Agentic RAG](https://docs.langchain.com/oss/python/langgraph/agentic-rag): Build an agentic RAG system with LangGraph. +- [SQL Agent](https://docs.langchain.com/oss/python/langgraph/sql-agent): Create a SQL agent with LangGraph. + +## Reference + +- [API Reference](https://reference.langchain.com/python/langgraph/): Complete API documentation for LangGraph. + +## LangGraph Platform + +For deploying LangGraph applications in production, see the [LangSmith documentation](https://docs.langchain.com/langsmith/agent-server). diff --git a/docs/redirects.json b/docs/redirects.json index 64f8fa32c..1510ed38b 100644 --- a/docs/redirects.json +++ b/docs/redirects.json @@ -261,7 +261,6 @@ "/troubleshooting/errors/INVALID_GRAPH_NODE_RETURN_VALUE": "https://docs.langchain.com/oss/python/langgraph/INVALID_GRAPH_NODE_RETURN_VALUE", "/troubleshooting/errors/MULTIPLE_SUBGRAPHS": "https://docs.langchain.com/oss/python/langgraph/MULTIPLE_SUBGRAPHS", "/tutorials/rag/langgraph_self_rag": "https://docs.langchain.com/oss/python/langgraph/agentic-rag", - "/llms.txt": "https://docs.langchain.com/llms.txt", "/additional-resources": "https://docs.langchain.com/oss/python/langgraph/overview", "/examples": "https://docs.langchain.com/oss/python/langgraph/overview", "/guides": "https://docs.langchain.com/oss/python/langgraph/overview",