mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-21 14:43:07 +00:00
Fix scripts
This commit is contained in:
@@ -29,6 +29,6 @@ cp docs/langgraph.md versioned_docs/version-0.2.x/
|
||||
|
||||
yarn
|
||||
|
||||
poetry run quarto preview docs
|
||||
|
||||
poetry run python scripts/resolve_versioned_links_in_markdown.py versioned_docs/version-0.2.x/ /docs/0.2.x/
|
||||
|
||||
poetry run quarto preview docs
|
||||
|
||||
@@ -86,6 +86,10 @@ const config = {
|
||||
current: {
|
||||
label: '0.1.x',
|
||||
badge: false,
|
||||
},
|
||||
"0.2.x": {
|
||||
label: "0.2.x",
|
||||
banner: "unreleased",
|
||||
}
|
||||
},
|
||||
sidebarPath: require.resolve("./sidebars.js"),
|
||||
|
||||
@@ -8,7 +8,7 @@ DOCS_DIR = Path(os.path.abspath(__file__)).parents[1]
|
||||
|
||||
def update_links(doc_path, docs_link):
|
||||
for path in (DOCS_DIR / doc_path).glob('**/*'):
|
||||
if path.is_file() and path.suffix in ['.md', '.mdx']:
|
||||
if path.is_file() and path.suffix in ['.md', '.mdx', '.ipynb']:
|
||||
with open(path, "r") as f:
|
||||
content = f.read()
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ Well, you came to the right place: read this material to quickly get up and runn
|
||||
|
||||
[Build an Extraction Service](/docs/use_cases/extraction/quickstart/)
|
||||
|
||||
[Build a ChatBot](/docs/use_cases/chatbots/quickstart/)
|
||||
[Build a Chatbot](/docs/use_cases/chatbots/quickstart/)
|
||||
|
||||
[Build an Agent](/docs/modules/agents/quick_start/)
|
||||
|
||||
|
||||
@@ -46,446 +46,6 @@
|
||||
},
|
||||
"security"
|
||||
],
|
||||
"oldDocs": [
|
||||
{
|
||||
"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/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": [
|
||||
{
|
||||
"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": "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": "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"
|
||||
}
|
||||
],
|
||||
"integrations": [
|
||||
{
|
||||
"type": "category",
|
||||
@@ -754,43 +314,6 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"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",
|
||||
|
||||
Reference in New Issue
Block a user