Skip to content

Commit

Permalink
fix(ci): Remove dep, add more not found redirects (langchain-ai#7353)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored and syntaxsec committed Dec 13, 2024
1 parent 5ba7e2d commit 07f8ecd
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 2 deletions.
1 change: 0 additions & 1 deletion docs/core_docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"validate": "yarn notebook_validate"
},
"dependencies": {
"@anthropic-ai/vertex-sdk": "^0.4.1",
"@docusaurus/core": "2.4.3",
"@docusaurus/preset-classic": "2.4.3",
"@docusaurus/remark-plugin-npm2yarn": "2.4.3",
Expand Down
103 changes: 103 additions & 0 deletions docs/core_docs/src/theme/NotFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,11 @@ const suggestedLinks = {
canonical: "/docs/integrations/llms/together",
alternative: ["/v0.1/docs/integrations/llms/togetherai/"],
},
"/docs/integrations/llms/fake/": {
canonical:
"https://api.js.langchain.com/classes/_langchain_core.utils_testing.FakeLLM.html",
alternative: ["/v0.1/docs/integrations/llms/fake/"],
},
"/docs/integrations/retrievers/vectorstore/": {
canonical: "/docs/how_to/vectorstore_retriever",
alternative: ["/v0.1/docs/integrations/retrievers/vectorstore/"],
Expand All @@ -317,6 +322,38 @@ const suggestedLinks = {
canonical: "https://langchain-ai.github.io/langgraphjs/",
alternative: ["/v0.1/docs/langgraph/"],
},
"/docs/modules/": {
canonical: "/docs/concepts/",
alternative: ["/v0.1/docs/modules/"],
},
"/docs/modules/agents": {
canonical: "/docs/concepts/agents/",
alternative: ["/v0.1/docs/modules/agents/"],
},
"/docs/modules/agents/concepts/": {
canonical: "/docs/concepts/agents/",
alternative: ["/v0.1/docs/modules/agents/concepts/"],
},
"/docs/modules/agents/agent_types/": {
canonical: "/docs/how_to/migrate_agent/",
alternative: ["/v0.1/docs/modules/agents/agent_types/"],
},
"/docs/modules/agents/how_to/agent_structured/": {
canonical: "/docs/how_to/migrate_agent/",
alternative: ["/v0.1/docs/modules/agents/how_to/agent_structured/"],
},
"/docs/modules/agents/how_to/max_iterations/": {
canonical: "/docs/how_to/migrate_agent/",
alternative: ["/v0.1/docs/modules/agents/how_to/max_iterations/"],
},
"/docs/modules/agents/how_to/streaming/": {
canonical: "/docs/how_to/migrate_agent/",
alternative: ["/v0.1/docs/modules/agents/how_to/streaming/"],
},
"/docs/modules/agents/quick_start/": {
canonical: "https://langchain-ai.github.io/langgraphjs//",
alternative: ["/v0.1//docs/modules/agents/quick_start/"],
},
"/docs/modules/agents/agent_types/chat_conversation_agent/": {
canonical: "/docs/how_to/migrate_agent",
alternative: [
Expand Down Expand Up @@ -447,6 +484,10 @@ const suggestedLinks = {
canonical: "/docs/how_to/#callbacks",
alternative: ["/v0.1/docs/modules/callbacks/how_to/with_listeners/"],
},
"/docs/modules/chains/": {
canonical: "/docs/how_to/sequence",
alternative: ["/v0.1/docs/modules/chains/"],
},
"/docs/modules/chains/additional/analyze_document/": {
canonical:
"https://js.langchain.com/v0.1/docs/modules/chains/additional/analyze_document/",
Expand Down Expand Up @@ -568,6 +609,62 @@ const suggestedLinks = {
canonical: "/docs/tutorials/rag",
alternative: ["/v0.1/docs/modules/chains/popular/vector_db_qa/"],
},
"/docs/modules/data_connection/": {
canonical: "/docs/concepts/rag",
alternative: ["/v0.1/docs/modules/data_connection/"],
},
"/docs/modules/data_connection/document_loaders/": {
canonical: "/docs/concepts/document_loaders",
alternative: ["/v0.1/docs/modules/data_connection/document_loaders/"],
},
"/docs/modules/data_connection/document_loaders/csv/": {
canonical: "/docs/integrations/document_loaders/file_loaders/csv/",
alternative: ["/v0.1/docs/modules/data_connection/document_loaders/csv/"],
},
"/docs/modules/data_connection/document_loaders/custom/": {
canonical: "/docs/how_to/document_loader_custom/",
alternative: [
"/v0.1/docs/modules/data_connection/document_loaders/custom/",
],
},
"/docs/modules/data_connection/document_loaders/file_directory/": {
canonical: "/docs/integrations/document_loaders/file_loaders/directory/",
alternative: [
"/v0.1/docs/modules/data_connection/document_loaders/file_directory/",
],
},
"/docs/modules/data_connection/document_loaders/json/": {
canonical: "/docs/integrations/document_loaders/file_loaders/json/",
alternative: ["/v0.1/docs/modules/data_connection/document_loaders/json/"],
},
"/docs/modules/data_connection/document_loaders/pdf/": {
canonical: "/docs/integrations/document_loaders/file_loaders/pdf/",
alternative: ["/v0.1/docs/modules/data_connection/document_loaders/pdf/"],
},
"/docs/modules/data_connection/document_transformers/": {
canonical: "/docs/concepts/text_splitters/",
alternative: ["/v0.1/docs/modules/data_connection/document_transformers/"],
},
"/docs/modules/data_connection/document_transformers/character_text_splitter/":
{
canonical: "/docs/how_to/character_text_splitter/",
alternative: [
"/v0.1/docs/modules/data_connection/document_transformers/character_text_splitter/",
],
},
"/docs/modules/data_connection/document_transformers/code_splitter/": {
canonical: "/docs/how_to/code_splitter/",
alternative: [
"/v0.1/docs/modules/data_connection/document_transformers/code_splitter/",
],
},
"/docs/modules/data_connection/document_transformers/recursive_text_splitter/":
{
canonical: "/docs/how_to/recursive_text_splitter/",
alternative: [
"/v0.1/docs/modules/data_connection/document_transformers/recursive_text_splitter/",
],
},
"/docs/modules/data_connection/document_loaders/creating_documents/": {
canonical: "/docs/concepts#document",
alternative: [
Expand Down Expand Up @@ -866,6 +963,12 @@ const suggestedLinks = {
"/v0.1/docs/modules/model_io/output_parsers/types/json_functions/",
],
},
"/docs/modules/model_io/output_parsers/types/structured/": {
canonical: "/docs/how_to/structured_output/",
alternative: [
"/v0.1/docs/modules/model_io/output_parsers/types/structured/",
],
},
"/docs/modules/model_io/output_parsers/types/string/": {
canonical:
"https://api.js.langchain.com/classes/_langchain_core.output_parsers.StringOutputParser.html",
Expand Down
1 change: 0 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24458,7 +24458,6 @@ __metadata:
version: 0.0.0-use.local
resolution: "core_docs@workspace:docs/core_docs"
dependencies:
"@anthropic-ai/vertex-sdk": ^0.4.1
"@babel/eslint-parser": ^7.18.2
"@docusaurus/core": 2.4.3
"@docusaurus/preset-classic": 2.4.3
Expand Down

0 comments on commit 07f8ecd

Please sign in to comment.