Skip to content

The agent engineering platform.

Mv LCEL docs up a level (#10073)

Bagatur5f1c67b47c95
diff --git a/docs/docs_skeleton/docs/expression_language/index.mdx b/docs/docs_skeleton/docs/expression_language/index.mdx
new file mode 100644
index 0000000000..e014256145
--- /dev/null
+++ b/docs/docs_skeleton/docs/expression_language/index.mdx
@@ -0,0 +1,14 @@
+---
+sidebar_class_name: hidden
+---
+
+# LangChain Expression Language (LCEL)
+
+LangChain Expression Language or LCEL is a declarative way to easily compose chains together.
+Any chain constructed this way will automatically have full sync, async, and streaming support.
+
+#### [Interface](/docs/expression_language/interface)
+The base interface shared by all LCEL objects
+
+#### [Cookbook](/docs/expression_language/cookbook)
+Examples of common LCEL usage patterns
diff --git a/docs/docs_skeleton/docs/get_started/introduction.mdx b/docs/docs_skeleton/docs/get_started/introduction.mdx
index e1af50a12b..08d156525f 100644
--- a/docs/docs_skeleton/docs/get_started/introduction.mdx
+++ b/docs/docs_skeleton/docs/get_started/introduction.mdx
@@ -51,7 +51,7 @@ Walkthroughs and best-practices for common end-to-end use cases, like:
Learn best practices for developing with LangChain.
### [Ecosystem](/docs/ecosystem/)
-LangChain is part of a rich ecosystem of tools that integrate with our framework and build on top of it. Check out our growing list of [integrations](/docs/integrations/) and [dependent repos](/docs/ecosystem/dependents).
+LangChain is part of a rich ecosystem of tools that integrate with our framework and build on top of it. Check out our growing list of [integrations](/docs/integrations/) and [dependent repos](/docs/additional_resources/dependents).
### [Additional resources](/docs/additional_resources/)
Our community is full of prolific developers, creative builders, and fantastic teachers. Check out [YouTube tutorials](/docs/additional_resources/youtube.html) for great tutorials from folks in the community, and [Gallery](https://github.com/kyrolabs/awesome-langchain) for a list of awesome LangChain projects, compiled by the folks at [KyroLabs](https://kyrolabs.com).
diff --git a/docs/docs_skeleton/docs/guides/expression_language/index.mdx b/docs/docs_skeleton/docs/guides/expression_language/index.mdx
deleted file mode 100644
index 338a37a060..0000000000
--- a/docs/docs_skeleton/docs/guides/expression_language/index.mdx
+++ /dev/null
@@ -1,9 +0,0 @@
-# LangChain Expression Language
-
-import DocCardList from "@theme/DocCardList";
-
-LangChain Expression Language is a declarative way to easily compose chains together.
-Any chain constructed this way will automatically have full sync, async, and streaming support.
-See guides below for how to interact with chains constructed this way as well as cookbook examples.
-
-<DocCardList />
\ No newline at end of file
diff --git a/docs/docs_skeleton/sidebars.js b/docs/docs_skeleton/sidebars.js
index 90950592be..fea37592d9 100644
--- a/docs/docs_skeleton/sidebars.js
+++ b/docs/docs_skeleton/sidebars.js
@@ -46,23 +46,23 @@ module.exports = {
},
{
type: "category",
- label: "Guides",
+ label: "LangChain Expression Language",
collapsed: true,
- items: [{ type: "autogenerated", dirName: "guides" }],
+ items: [{ type: "autogenerated", dirName: "expression_language" } ],
link: {
- type: 'generated-index',
- description: 'Design guides for key parts of the development process',
- slug: "guides",
+ type: 'doc',
+ id: "expression_language/index"
},
},
{
type: "category",
- label: "Ecosystem",
+ label: "Guides",
collapsed: true,
- items: [{ type: "autogenerated", dirName: "ecosystem" }],
+ items: [{ type: "autogenerated", dirName: "guides" }],
link: {
type: 'generated-index',
- slug: "ecosystem",
+ description: 'Design guides for key parts of the development process',
+ slug: "guides",
},
},
{
@@ -72,7 +72,7 @@ module.exports = {
items: [{ type: "autogenerated", dirName: "additional_resources" }, { type: "link", label: "Gallery", href: "https://github.com/kyrolabs/awesome-langchain" }],
link: {
type: 'generated-index',
- slug: "additional_resources",
+ slug: "additional_resources",
},
},
'community'
diff --git a/docs/docs_skeleton/vercel.json b/docs/docs_skeleton/vercel.json
index b88a1f8e27..22fcc57bf4 100644
--- a/docs/docs_skeleton/vercel.json
+++ b/docs/docs_skeleton/vercel.json
@@ -3547,6 +3547,18 @@
{
"source": "/en/latest/integrations/:path*",
"destination": "/docs/integrations/providers/:path*"
+ },
+ {
+ "source": "/docs/guides/expression_language(/?)",
+ "destination": "/docs/expression_language/"
+ },
+ {
+ "source": "/docs/guides/expression_language/:path*",
+ "destination": "/docs/expression_language/:path*"
+ },
+ {
+ "source": "/docs/ecosystem/dependents",
+ "destination": "/docs/additional_resources/dependents"
}
]
}
\ No newline at end of file
diff --git a/docs/extras/ecosystem/dependents.mdx b/docs/extras/additional_resources/dependents.mdx
similarity index 100%
rename from docs/extras/ecosystem/dependents.mdx
rename to docs/extras/additional_resources/dependents.mdx
diff --git a/docs/extras/guides/expression_language/cookbook.ipynb b/docs/extras/expression_language/cookbook.ipynb
similarity index 100%
rename from docs/extras/guides/expression_language/cookbook.ipynb
rename to docs/extras/expression_language/cookbook.ipynb
diff --git a/docs/extras/guides/expression_language/interface.ipynb b/docs/extras/expression_language/interface.ipynb
similarity index 100%
rename from docs/extras/guides/expression_language/interface.ipynb
rename to docs/extras/expression_language/interface.ipynb