This commit is contained in:
Eugene Yurtsev 2024-10-22 15:58:50 -04:00
parent f1d5ffcee3
commit 2c97eea638

View File

@ -95,84 +95,84 @@ The conceptual guide will not cover step-by-step instructions or specific implem
export const RedirectAnchors = () => { export const RedirectAnchors = () => {
// get # anchor from url // get # anchor from url
const lookup = { const lookup = {
{source: "#conceptual-guide", destination: "/docs/concepts"}, { source="#conceptual-guide", destination="/docs/concepts" },
{source: "#architecture", destination: "/docs/concepts/architecture"}, { source="#architecture", destination="/docs/concepts/architecture" },
{source: "#langchaincore", destination: "/docs/concepts/architecture/#langchain-core"}, { source="#langchaincore", destination="/docs/concepts/architecture/#langchain-core" },
{source: "#langchain", destination: "/docs/concepts/architecture/#langchain"}, { source="#langchain", destination="/docs/concepts/architecture/#langchain" },
{source: "#langchaincommunity", destination: "/docs/concepts/architecture/#langchain-community"}, { source="#langchaincommunity", destination="/docs/concepts/architecture/#langchain-community" },
{source: "#partner-packages", destination: "/docs/concepts/architecture/#partner-packages"}, { source="#partner-packages", destination="/docs/concepts/architecture/#partner-packages" },
{source: "#langgraph", destination: "/docs/concepts/architecture/#langgraph"}, { source="#langgraph", destination="/docs/concepts/architecture/#langgraph" },
{source: "#langserve", destination: "/docs/concepts/architecture/#langserve"}, { source="#langserve", destination="/docs/concepts/architecture/#langserve" },
{source: "#langsmith", destination: "/docs/concepts/architecture/#langsmith"}, { source="#langsmith", destination="/docs/concepts/architecture/#langsmith" },
{source: "#langchain-expression-language-lcel", destination: "/docs/concepts/lcel"}, { source="#langchain-expression-language-lcel", destination="/docs/concepts/lcel" },
{source: "#runnable-interface", destination: "/docs/concepts/runnables"}, { source="#runnable-interface", destination="/docs/concepts/runnables" },
{source: "#components", destination: "/docs/concepts/"}, { source="#components", destination="/docs/concepts/" },
{source: "#chat-models", destination: "/docs/concepts/chat_models"}, { source="#chat-models", destination="/docs/concepts/chat_models" },
{source: "#multimodality", destination: "/docs/concepts/multimodality"}, { source="#multimodality", destination="/docs/concepts/multimodality" },
{source: "#llms", destination: "/docs/concepts/chat_models"}, { source="#llms", destination="/docs/concepts/chat_models" },
{source: "#messages", destination: "/docs/concepts/messages"}, { source="#messages", destination="/docs/concepts/messages" },
{source: "#humanmessage", destination: "/docs/concepts/messages/#humanmessage"}, { source="#humanmessage", destination="/docs/concepts/messages/#humanmessage" },
{source: "#aimessage", destination: "/docs/concepts/messages/#aimessage"}, { source="#aimessage", destination="/docs/concepts/messages/#aimessage" },
{source: "#systemmessage", destination: "/docs/concepts/messages/#systemmessage"}, { source="#systemmessage", destination="/docs/concepts/messages/#systemmessage" },
{source: "#toolmessage", destination: "/docs/concepts/messages/#toolmessage"}, { source="#toolmessage", destination="/docs/concepts/messages/#toolmessage" },
{source: "#legacy-functionmessage", destination: "/docs/concepts/messages/#legacy-functionmessage"}, { source="#legacy-functionmessage", destination="/docs/concepts/messages/#legacy-functionmessage" },
{source: "#prompt-templates", destination: "/docs/concepts/prompt_templates"}, { source="#prompt-templates", destination="/docs/concepts/prompt_templates" },
{source: "#string-prompttemplates", destination: "/docs/concepts/prompt_templates"}, { source="#string-prompttemplates", destination="/docs/concepts/prompt_templates" },
{source: "#chatprompttemplates", destination: "/docs/concepts/prompt_templates"}, { source="#chatprompttemplates", destination="/docs/concepts/prompt_templates" },
{source: "#messagesplaceholder", destination: "/docs/concepts/prompt_templates"}, { source="#messagesplaceholder", destination="/docs/concepts/prompt_templates" },
{source: "#example-selectors", destination: "/docs/concepts/example_selectors"}, { source="#example-selectors", destination="/docs/concepts/example_selectors" },
{source: "#output-parsers", destination: "/docs/concepts/output_parsers"}, { source="#output-parsers", destination="/docs/concepts/output_parsers" },
{source: "#chat-history", destination: "/docs/concepts/chat_history"}, { source="#chat-history", destination="/docs/concepts/chat_history" },
{source: "#documents", destination: "https://python.langchain.com/api_reference/core/documents/langchain_core.documents.base.Document.html"}, { source="#documents", destination="https://python.langchain.com/api_reference/core/documents/langchain_core.documents.base.Document.html" },
{source: "#document-loaders", destination: "/docs/concepts/document_loaders"}, { source="#document-loaders", destination="/docs/concepts/document_loaders" },
{source: "#text-splitters", destination: "/docs/concepts/text_splitters"}, { source="#text-splitters", destination="/docs/concepts/text_splitters" },
{source: "#embedding-models", destination: "/docs/concepts/embedding_models"}, { source="#embedding-models", destination="/docs/concepts/embedding_models" },
{source: "#vector-stores", destination: "/docs/concepts/vectorstores"}, { source="#vector-stores", destination="/docs/concepts/vectorstores" },
{source: "#retrievers", destination: "/docs/concepts/retrievers"}, { source="#retrievers", destination="/docs/concepts/retrievers" },
{source: "#keyvalue-stores", destination: "/docs/concepts/key_value_stores"}, { source="#keyvalue-stores", destination="/docs/concepts/key_value_stores" },
{source: "#interface", destination: "/docs/concepts/runnables"}, { source="#interface", destination="/docs/concepts/runnables" },
{source: "#tools", destination: "/docs/concepts/tools"}, { source="#tools", destination="/docs/concepts/tools" },
{source: "#invoke-with-just-the-arguments", destination: "/docs/concepts/tools"}, { source="#invoke-with-just-the-arguments", destination="/docs/concepts/tools" },
{source: "#invoke-with-toolcall", destination: "/docs/concepts/tools"}, { source="#invoke-with-toolcall", destination="/docs/concepts/tools" },
{source: "#best-practices", destination: "/docs/concepts/tools/#best-practices"}, { source="#best-practices", destination="/docs/concepts/tools/#best-practices" },
{source: "#related", destination: "/docs/concepts/tools"}, { source="#related", destination="/docs/concepts/tools" },
{source: "#toolkits", destination: "/docs/concepts/toosl/#toolkits"}, { source="#toolkits", destination="/docs/concepts/toosl/#toolkits" },
{source: "#initialize-a-toolkit", destination: "/docs/concepts/toosl/#toolkits"}, { source="#initialize-a-toolkit", destination="/docs/concepts/toosl/#toolkits" },
{source: "#get-list-of-tools", destination: "/docs/concepts/toosl/#toolkits"}, { source="#get-list-of-tools", destination="/docs/concepts/toosl/#toolkits" },
{source: "#agents", destination: "/docs/concepts/agents"}, { source="#agents", destination="/docs/concepts/agents" },
{source: "#react-agents", destination: "/docs/concepts/agents"}, { source="#react-agents", destination="/docs/concepts/agents" },
{source: "#callbacks", destination: "/docs/concepts/callbacks"}, { source="#callbacks", destination="/docs/concepts/callbacks" },
{source: "#callback-events", destination: "/docs/concepts/callbacks/#callback-events"}, { source="#callback-events", destination="/docs/concepts/callbacks/#callback-events" },
{source: "#callback-handlers", destination: "/docs/concepts/callbacks/#callback-handlers"}, { source="#callback-handlers", destination="/docs/concepts/callbacks/#callback-handlers" },
{source: "#passing-callbacks", destination: "/docs/concepts/callbacks/#passing-callbacks"}, { source="#passing-callbacks", destination="/docs/concepts/callbacks/#passing-callbacks" },
{source: "#techniques", destination: "/docs/concepts/"}, { source="#techniques", destination="/docs/concepts/" },
{source: "#streaming", destination: "/docs/concepts/streaming"}, { source="#streaming", destination="/docs/concepts/streaming" },
{source: "#stream-and-astream", destination: "/docs/concepts/streaming#stream-and-astream"}, { source="#stream-and-astream", destination="/docs/concepts/streaming#stream-and-astream" },
{source: "#astreamevents", destination: "/docs/concepts/astream_events"}, { source="#astreamevents", destination="/docs/concepts/astream_events" },
{source: "#callbacks", destination: "/docs/concepts/callbacks"}, { source="#callbacks", destination="/docs/concepts/callbacks" },
{source: "#tokens", destination: "/docs/concepts/tokens"}, { source="#tokens", destination="/docs/concepts/tokens" },
{source: "#functiontool-calling", destination: "/docs/concepts/tool_calling"}, { source="#functiontool-calling", destination="/docs/concepts/tool_calling" },
{source: "#tool-usage", destination: "/docs/concepts/tool_calling"}, { source="#tool-usage", destination="/docs/concepts/tool_calling" },
{source: "#structured-output", destination: "/docs/concepts/structured_outputs"}, { source="#structured-output", destination="/docs/concepts/structured_outputs" },
{source: "#withstructuredoutput", destination: "/docs/concepts/structured_outputs"}, { source="#withstructuredoutput", destination="/docs/concepts/structured_outputs" },
{source: "#raw-prompting", destination: "/docs/concepts/structured_outputs"}, { source="#raw-prompting", destination="/docs/concepts/structured_outputs" },
{source: "#json-mode", destination: "/docs/concepts/structured_outputs/#json-mode"}, { source="#json-mode", destination="/docs/concepts/structured_outputs/#json-mode" },
{source: "#tool-calling-structuredoutputtoolcalling", destination: "/docs/concepts/structured_outputs"}, { source="#tool-calling-structuredoutputtoolcalling", destination="/docs/concepts/structured_outputs" },
{source: "#fewshot-prompting", destination: "/docs/concepts/fewshot-prompting"}, { source="#fewshot-prompting", destination="/docs/concepts/few_shot_prompting" },
{source: "#1-generating-examples", destination: "/docs/concepts/few_shot_prompting/1-generating-examples"}, { source="#1-generating-examples", destination="/docs/concepts/few_shot_prompting/#1-generating-examples" },
{source: "#2-number-of-examples", destination: "/docs/concepts/few_shot_prompting/2-number-of-examples"}, { source="#2-number-of-examples", destination="/docs/concepts/few_shot_prompting/#2-number-of-examples" },
{source: "#3-selecting-examples", destination: "/docs/concepts/few_shot_prompting/3-selecting-examples"}, { source="#3-selecting-examples", destination="/docs/concepts/few_shot_prompting/#3-selecting-examples" },
{source: "#4-formatting-examples", destination: "/docs/concepts/few_shot_prompting/4-formatting-examples"}, { source="#4-formatting-examples", destination="/docs/concepts/few_shot_prompting/#4-formatting-examples" },
{source: "#retrieval", destination: "/docs/concepts/retrieval"}, { source="#retrieval", destination="/docs/concepts/retrieval" },
{source: "#query-translation", destination: "/docs/concepts/retrieval/query-construction"}, { source="#query-translation", destination="/docs/concepts/retrieval/#query-re-writing" },
{source: "#routing", destination: "/docs/concepts/routing"}, { source="#routing", destination="/docs/concepts/" },
{source: "#query-construction", destination: "/docs/concepts/retrieval/query-construction"}, { source="#query-construction", destination="/docs/concepts/retrieval/#query-construction" },
{source: "#indexing", destination: "/docs/concepts/retrieval/"}, { source="#indexing", destination="/docs/concepts/retrieval/" },
{source: "#postprocessing", destination: "/docs/concepts/retrieval/"}, { source="#postprocessing", destination="/docs/concepts/retrieval/" },
{source: "#generation", destination: "/docs/concepts/rag"}, { source="#generation", destination="/docs/concepts/rag" },
{source: "#text-splitting", destination: "/docs/concepts/text_splitting"}, { source="#text-splitting", destination="/docs/concepts/text_splitting" },
{source: "#evaluation", destination: "/docs/concepts/evaluation"}, { source="#evaluation", destination="/docs/concepts/evaluation" },
{source: "#tracing", destination: "/docs/concepts/tracing"}, { source="#tracing", destination="/docs/concepts/tracing" },
}; };
const hash = window?.location?.hash; const hash = window?.location?.hash;
if (hash) { if (hash) {