From fa01d4dbc77e5f2a3c598cfd709e7c5af79754ff Mon Sep 17 00:00:00 2001 From: Chester Curme Date: Thu, 29 May 2025 15:27:45 -0400 Subject: [PATCH] x --- docs/docusaurus.config.js | 6 +++++ docs/sidebars.js | 48 +++++++++++++++++++++++++++++++++++---- 2 files changed, 49 insertions(+), 5 deletions(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 584d44c2c62..3dbca3f7090 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -168,6 +168,12 @@ const config = { sidebarId: "integrations", label: "Integrations", }, + { + type: "docSidebar", + position: "left", + sidebarId: "examples", + label: "Examples", + }, { label: "API Reference", to: "https://python.langchain.com/api_reference/", diff --git a/docs/sidebars.js b/docs/sidebars.js index f1e867c6f5c..f215a334f02 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -27,9 +27,30 @@ module.exports = { }, { type: "category", - link: {type: 'doc', id: 'tutorials/index'}, - label: "Tutorials", + label: "Chat models", collapsible: false, + items: [ + {type: "doc", id: "concepts/chat_models", label: "Overview"}, + { + type: "category", + label: "Messages", + collapsible: false, + items: [ + {type: "doc", id: "concepts/messages", label: "Overview"}, + {type: "doc", id: "how_to/trim_messages", label: "How to use messages"}, + ], + }, + { + type: "category", + label: "Tool-calling", + collapsible: false, + items: [ + {type: "doc", id: "concepts/tool_calling", label: "Overview"}, + {type: "doc", id: "how_to/tool_calling", label: "How to call tools"}, + ], + }, + {type: "doc", id: "integrations/chat", label: "Available integrations"}, + ], items: [{ type: 'autogenerated', dirName: 'tutorials', @@ -38,12 +59,16 @@ module.exports = { }, { type: "category", - link: {type: 'doc', id: 'how_to/index'}, - label: "How-to guides", + label: "Embedding models", collapsible: false, + items: [ + {type: "doc", id: "concepts/embedding_models", label: "Overview"}, + {type: "doc", id: "how_to/embed_text", label: "How to use embedding models"}, + {type: "doc", id: "integrations/text_embedding", label: "Available integrations"}, + ], items: [{ type: 'autogenerated', - dirName: 'how_to', + dirName: 'tutorials', className: 'hidden', }], }, @@ -426,6 +451,19 @@ module.exports = { }, }, ], + examples: [ + { + type: 'category', + label: 'Examples', + collapsible: false, + items: [ + { + type: 'autogenerated', + dirName: 'tutorials', + }, + ], + }, + ], contributing: [ { type: "doc",