docs: v0.2 docs in master (#21438)

current python.langchain.com is building from branch `v0.1`. Iterate on
v0.2 docs here.

---------

Signed-off-by: Weichen Xu <weichen.xu@databricks.com>
Signed-off-by: Rahul Tripathi <rauhl.psit.ec@gmail.com>
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
Co-authored-by: Leonid Ganeline <leo.gan.57@gmail.com>
Co-authored-by: Leonid Kuligin <lkuligin@yandex.ru>
Co-authored-by: Averi Kitsch <akitsch@google.com>
Co-authored-by: Nuno Campos <nuno@langchain.dev>
Co-authored-by: Nuno Campos <nuno@boringbits.io>
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
Co-authored-by: Martín Gotelli Ferenaz <martingotelliferenaz@gmail.com>
Co-authored-by: Fayfox <admin@fayfox.com>
Co-authored-by: Eugene Yurtsev <eugene@langchain.dev>
Co-authored-by: Dawson Bauer <105886620+djbauer2@users.noreply.github.com>
Co-authored-by: Ravindu Somawansa <ravindu.somawansa@gmail.com>
Co-authored-by: Dhruv Chawla <43818888+Dominastorm@users.noreply.github.com>
Co-authored-by: ccurme <chester.curme@gmail.com>
Co-authored-by: Bagatur <baskaryan@gmail.com>
Co-authored-by: WeichenXu <weichen.xu@databricks.com>
Co-authored-by: Benito Geordie <89472452+benitoThree@users.noreply.github.com>
Co-authored-by: kartikTAI <129414343+kartikTAI@users.noreply.github.com>
Co-authored-by: Kartik Sarangmath <kartik@thirdai.com>
Co-authored-by: Sevin F. Varoglu <sfvaroglu@octoml.ai>
Co-authored-by: MacanPN <martin.triska@gmail.com>
Co-authored-by: Prashanth Rao <35005448+prrao87@users.noreply.github.com>
Co-authored-by: Hyeongchan Kim <kozistr@gmail.com>
Co-authored-by: sdan <git@sdan.io>
Co-authored-by: Guangdong Liu <liugddx@gmail.com>
Co-authored-by: Rahul Triptahi <rahul.psit.ec@gmail.com>
Co-authored-by: Rahul Tripathi <rauhl.psit.ec@gmail.com>
Co-authored-by: pjb157 <84070455+pjb157@users.noreply.github.com>
Co-authored-by: Eun Hye Kim <ehkim1440@gmail.com>
Co-authored-by: kaijietti <43436010+kaijietti@users.noreply.github.com>
Co-authored-by: Pengcheng Liu <pcliu.fd@gmail.com>
Co-authored-by: Tomer Cagan <tomer@tomercagan.com>
Co-authored-by: Christophe Bornet <cbornet@hotmail.com>
This commit is contained in:
Erick Friis
2024-05-08 12:29:59 -07:00
committed by GitHub
parent ee35b9ba56
commit 21d14549a9
365 changed files with 22149 additions and 53474 deletions

View File

@@ -18,125 +18,27 @@
Create as many sidebars as you want.
*/
module.exports = {
// By default, Docusaurus generates a sidebar from the docs folder structure
module.exports = {
docs: [
{
type: "category",
label: "Get started",
label: "Introduction",
collapsed: false,
collapsible: false,
items: [{ type: "autogenerated", dirName: "get_started" }],
link: {
type: 'doc',
id: "get_started/introduction"
},
link: { type: "doc", id: "introduction" },
items: ["installation"],
},
{
type: "category",
label: "Use cases",
collapsed: false,
collapsible: false,
items: [
{
type: "category",
label: "Q&A with RAG",
collapsed: true,
items: [
"use_cases/question_answering/quickstart",
"use_cases/question_answering/chat_history",
"use_cases/question_answering/streaming",
"use_cases/question_answering/sources",
"use_cases/question_answering/citations",
{
type: "category",
label: "More",
collapsed: true,
items: [
"use_cases/question_answering/hybrid",
"use_cases/question_answering/per_user",
"use_cases/question_answering/conversational_retrieval_agents",
"use_cases/question_answering/local_retrieval_qa",
]
},
],
link: { type: "doc", id: "use_cases/question_answering/index" }
},
{
type: "category",
label: "Extracting structured output",
link: { type: "doc", id: "use_cases/extraction/index" },
collapsed: true,
items: [
"use_cases/extraction/quickstart",
"use_cases/extraction/guidelines",
"use_cases/extraction/how_to/examples",
{
type: "category",
label: "More",
collapsed: true,
items: [
"use_cases/extraction/how_to/handle_long_text",
"use_cases/extraction/how_to/handle_files",
"use_cases/extraction/how_to/parse",
]
},
]
},
{ type: "category", label: "Chatbots", collapsed: true, items: [{ type: "autogenerated", dirName: "use_cases/chatbots" }], link: { type: "doc", id: "use_cases/chatbots/index" } },
{ type: "category", label: "Tool use and agents", collapsed: true, items: [{ type: "autogenerated", dirName: "use_cases/tool_use" }], link: { type: "doc", id: "use_cases/tool_use/index" } },
{ type: "category", label: "Query analysis", collapsed: true, items: [{ type: "autogenerated", dirName: "use_cases/query_analysis" }], link: { type: "doc", id: "use_cases/query_analysis/index" } },
{ type: "category", label: "Q&A over SQL + CSV", collapsed: true, items: [{ type: "autogenerated", dirName: "use_cases/sql" }], link: { type: "doc", id: "use_cases/sql/index" } },
{
type: "category",
label: "More",
collapsed: true,
items: [
// "use_cases/apis",
{ type: "category", label: "Graphs", collapsed: true, items: [{ type: "autogenerated", dirName: "use_cases/graph", }], link: { type: "doc", id: "use_cases/graph/index" } },
"use_cases/code_understanding",
"use_cases/data_generation",
"use_cases/tagging",
"use_cases/summarization",
"use_cases/web_scraping"
]
}
],
link: {
type: 'doc',
id: "use_cases/index"
},
type: "doc",
id: "tutorials/index",
label: "Tutorials",
},
{
type: "category",
label: "Expression Language",
collapsed: false,
collapsible: false,
items: [
"expression_language/get_started",
"expression_language/interface",
{ type: "category", label: "Primitives", collapsed: true, items: [{ type: "autogenerated", dirName: "expression_language/primitives", }], link: { type: "doc", id: "expression_language/primitives/index" } },
"expression_language/why",
"expression_language/streaming",
"expression_language/how_to/message_history",
{
type: "category",
label: "More",
collapsed: true,
items: [
"expression_language/how_to/routing",
"expression_language/how_to/inspect",
"expression_language/how_to/decorator",
"expression_language/cookbook/prompt_size",
"expression_language/cookbook/multiple_chains",
]
},
],
link: {
type: 'doc',
id: "expression_language/index"
},
type: "doc",
id: "how_to/index",
label: "How-To Guides",
},
"concepts",
{
type: "category",
label: "Ecosystem",
@@ -147,121 +49,22 @@
type: "category",
label: "🦜🛠️ LangSmith",
collapsed: true,
items: [{ type: "autogenerated", dirName: "langsmith" } ],
items: [
{
type: "autogenerated",
dirName: "langsmith",
},
],
link: {
type: 'doc',
id: "langsmith/index"
type: "doc",
id: "langsmith/index",
},
},
"langgraph",
"langserve",
]
},
"security"
],
components: [
{
type: "category",
label: "Model I/O",
collapsed: false,
collapsible: false,
link: { type: "doc", id: "modules/model_io/index" },
items: [
{
type: "category",
label: "Prompts",
items: [{ type: "autogenerated", dirName: "modules/model_io/prompts" }],
link: { type: "doc", id: "modules/model_io/prompts/index" }
},
{
type: "category",
label: "Chat models",
items: [{ type: "autogenerated", dirName: "modules/model_io/chat" }],
link: { type: "doc", id: "modules/model_io/chat/index" }
},
{
type: "category",
label: "LLMs",
items: [{ type: "autogenerated", dirName: "modules/model_io/llms" }],
link: { type: "doc", id: "modules/model_io/llms/index" }
},
{
type: "category",
label: "Output parsers",
items: [{ type: "autogenerated", dirName: "modules/model_io/output_parsers" }],
link: { type: "doc", id: "modules/model_io/output_parsers/index" }
},
],
},
{
type: "category",
label: "Retrieval",
collapsed: false,
collapsible: false,
link: { type: "doc", id: "modules/data_connection/index" },
items: [
{
type: "category",
label: "Document loaders",
items: [{ type: "autogenerated", dirName: "modules/data_connection/document_loaders" }],
link: { type: "doc", id: "modules/data_connection/document_loaders/index" }
},
{
type: "category",
label: "Text splitters",
items: [{ type: "autogenerated", dirName: "modules/data_connection/document_transformers" }],
link: { type: "doc", id: "modules/data_connection/document_transformers/index" }
},
{
type: "category",
label: "Embedding models",
items: [{ type: "autogenerated", dirName: "modules/data_connection/text_embedding" }],
link: { type: "doc", id: "modules/data_connection/text_embedding/index" }
},
"modules/data_connection/vectorstores/index",
{
type: "category",
label: "Retrievers",
items: [{ type: "autogenerated", dirName: "modules/data_connection/retrievers" }],
link: { type: "doc", id: "modules/data_connection/retrievers/index" }
},
"modules/data_connection/indexing"
],
},
{
type: "category",
label: "Composition",
collapsed: false,
collapsible: false,
items: [
{ type: "category", label: "Tools", collapsed: true, items: [{ type: "autogenerated", dirName: "modules/tools" }], link: { type: 'doc', id: "modules/tools/index" }},
{ type: "category", label: "Agents", collapsed: true, items: [{ type: "autogenerated", dirName: "modules/agents" }], link: { type: 'doc', id: "modules/agents/index" }},
"modules/chains"
],
link: { type: "doc", id: "modules/composition" }
},
{
type: "category",
label: "More",
collapsed: true,
items: [
{ type: "category", label: "Memory", collapsed: true, items: [
"modules/memory/chat_messages/index",
{type: "category", label: "Memory classes [BETA]", collapsed: true, items: [
"modules/memory/adding_memory",
"modules/memory/adding_memory_chain_multiple_inputs",
"modules/memory/agent_with_memory",
"modules/memory/agent_with_memory_in_db",
"modules/memory/conversational_customization",
"modules/memory/custom_memory",
"modules/memory/multiple_memory",
{ type: "category", label: "Types", collapsed: true, items: [{ type: "autogenerated", dirName: "modules/memory/types" }]}
]}
], link: { type: 'doc', id: "modules/memory/index" }},
{ type: "category", label: "Callbacks", collapsed: true, items: [{type:"autogenerated", dirName: "modules/callbacks" }], link: { type: 'doc', id: "modules/callbacks/index" }},
]
},
{ type: "doc", id: "modules/index", className: "hidden" },
"security",
],
integrations: [
{
@@ -269,12 +72,29 @@
label: "Providers",
collapsible: false,
items: [
{ type: "autogenerated", dirName: "integrations/platforms" },
{ type: "category", label: "More", collapsed: true, items: [{type:"autogenerated", dirName: "integrations/providers" }], link: { type: 'generated-index', slug: "integrations/providers", }},
{
type: "autogenerated",
dirName: "integrations/platforms",
},
{
type: "category",
label: "More",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/providers",
},
],
link: {
type: "generated-index",
slug: "integrations/providers",
},
},
],
link: {
type: 'doc',
id: 'integrations/platforms/index'
type: "doc",
id: "integrations/platforms/index",
},
},
{
@@ -282,56 +102,264 @@
label: "Components",
collapsible: false,
items: [
{ type: "category", label: "Chat models", collapsed: true, items: [{type:"autogenerated", dirName: "integrations/chat" }], link: { type: 'doc', id: "integrations/chat/index"}},
{ type: "category", label: "LLMs", collapsed: true, items: [{type:"autogenerated", dirName: "integrations/llms" }], link: { type: 'doc', id: "integrations/llms/index"}},
{ type: "category", label: "Embedding models", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/text_embedding" }], link: {type: "generated-index", slug: "integrations/text_embedding" }},
{ type: "category", label: "Document loaders", collapsed: true, items: [{type:"autogenerated", dirName: "integrations/document_loaders" }], link: {type: "generated-index", slug: "integrations/document_loaders" }},
{ type: "category", label: "Document transformers", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/document_transformers" }], link: {type: "generated-index", slug: "integrations/document_transformers" }},
{ type: "category", label: "Vector stores", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/vectorstores" }], link: {type: "generated-index", slug: "integrations/vectorstores" }},
{ type: "category", label: "Retrievers", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/retrievers" }], link: {type: "generated-index", slug: "integrations/retrievers" }},
{ type: "category", label: "Tools", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/tools" }], link: {type: "generated-index", slug: "integrations/tools" }},
{ type: "category", label: "Toolkits", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/toolkits" }], link: {type: "generated-index", slug: "integrations/toolkits" }},
{ type: "category", label: "Memory", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/memory" }], link: {type: "generated-index", slug: "integrations/memory" }},
{ type: "category", label: "Graphs", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/graphs" }], link: {type: "generated-index", slug: "integrations/graphs" }},
{ type: "category", label: "Callbacks", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/callbacks" }], link: {type: "generated-index", slug: "integrations/callbacks" }},
{ type: "category", label: "Chat loaders", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/chat_loaders" }], link: {type: "generated-index", slug: "integrations/chat_loaders" }},
{ type: "category", label: "Adapters", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/adapters" }], link: {type: "generated-index", slug: "integrations/adapters" }},
{ type: "category", label: "Stores", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/stores" }], link: {type: "doc", id: "integrations/stores/index" }},
{
type: "category",
label: "Chat models",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/chat",
},
],
link: {
type: "doc",
id: "integrations/chat/index",
},
},
{
type: "category",
label: "LLMs",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/llms",
},
],
link: {
type: "doc",
id: "integrations/llms/index",
},
},
{
type: "category",
label: "Embedding models",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/text_embedding",
},
],
link: {
type: "generated-index",
slug: "integrations/text_embedding",
},
},
{
type: "category",
label: "Document loaders",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/document_loaders",
},
],
link: {
type: "generated-index",
slug: "integrations/document_loaders",
},
},
{
type: "category",
label: "Document transformers",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/document_transformers",
},
],
link: {
type: "generated-index",
slug: "integrations/document_transformers",
},
},
{
type: "category",
label: "Vector stores",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/vectorstores",
},
],
link: {
type: "generated-index",
slug: "integrations/vectorstores",
},
},
{
type: "category",
label: "Retrievers",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/retrievers",
},
],
link: {
type: "generated-index",
slug: "integrations/retrievers",
},
},
{
type: "category",
label: "Tools",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/tools",
},
],
link: {
type: "generated-index",
slug: "integrations/tools",
},
},
{
type: "category",
label: "Toolkits",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/toolkits",
},
],
link: {
type: "generated-index",
slug: "integrations/toolkits",
},
},
{
type: "category",
label: "Memory",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/memory",
},
],
link: {
type: "generated-index",
slug: "integrations/memory",
},
},
{
type: "category",
label: "Graphs",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/graphs",
},
],
link: {
type: "generated-index",
slug: "integrations/graphs",
},
},
{
type: "category",
label: "Callbacks",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/callbacks",
},
],
link: {
type: "generated-index",
slug: "integrations/callbacks",
},
},
{
type: "category",
label: "Chat loaders",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/chat_loaders",
},
],
link: {
type: "generated-index",
slug: "integrations/chat_loaders",
},
},
{
type: "category",
label: "Adapters",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/adapters",
},
],
link: {
type: "generated-index",
slug: "integrations/adapters",
},
},
{
type: "category",
label: "Stores",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "integrations/stores",
},
],
link: {
type: "doc",
id: "integrations/stores/index",
},
},
],
link: {
type: 'generated-index',
type: "generated-index",
slug: "integrations/components",
},
},
],
guides: [
{
type: "category", label: "Development", collapsible: false, items: [{type: "autogenerated", dirName: "guides/development" }],
link: { type: "doc", id: "guides/development/index"},
},
{
type: "category",
label: "Productionization",
collapsible: false,
items: [{type: "autogenerated", dirName: "guides/productionization" }],
link: {
type: "doc",
id: "guides/productionization/index",
}
},
{ type: "doc", id: "guides/index", className: "hidden" },
],
templates: [
{
type: "category",
label: "Templates",
items: [
{ type: "autogenerated", dirName: "templates" },
{
type: "autogenerated",
dirName: "templates",
},
],
link: { type: 'doc', id: "templates/index" }
link: {
type: "doc",
id: "templates/index",
},
},
],
contributing: [
{ type: "category", label: "Contributing", items: [{type: "autogenerated", dirName: "contributing" }] }
{
type: "category",
label: "Contributing",
items: [
{
type: "autogenerated",
dirName: "contributing",
},
],
},
],
};