Skip to content

Commit

Permalink
Update docs structure (#3736)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Dec 21, 2023
1 parent 9746edc commit def3a26
Show file tree
Hide file tree
Showing 13 changed files with 108 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Thank you for contributing to LangChainJS! Your PR will appear in our next release under the title you set above. Please make sure it highlights your valuable contribution.
Thank you for contributing to LangChain.js! Your PR will appear in our next release under the title you set above. Please make sure it highlights your valuable contribution.
To help streamline the review process, please make sure you read our contribution guidelines:
https://github.com/langchain-ai/langchainjs/blob/main/CONTRIBUTING.md
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ hide_table_of_contents: true

When loading content from a website, we may want to process load all URLs on a page.

For example, let's look at the [LangChainJS introduction](https://js.langchain.com/docs/get_started/introduction) docs.
For example, let's look at the [LangChain.js introduction](https://js.langchain.com/docs/get_started/introduction) docs.

This has many interesting child pages that we may want to load, split, and later retrieve in bulk.

Expand Down
2 changes: 1 addition & 1 deletion docs/core_docs/docs/integrations/vectorstores/typeorm.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TypeORM

To enable vector search in a generic PostgreSQL database, LangChainJS supports using [TypeORM](https://typeorm.io/) with the [`pgvector`](https://github.com/pgvector/pgvector) Postgres extension.
To enable vector search in a generic PostgreSQL database, LangChain.js supports using [TypeORM](https://typeorm.io/) with the [`pgvector`](https://github.com/pgvector/pgvector) Postgres extension.

## Setup

Expand Down
1 change: 1 addition & 0 deletions docs/core_docs/docs/modules/agents/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 4
sidebar_class_name: hidden
---

# Agents
Expand Down
1 change: 1 addition & 0 deletions docs/core_docs/docs/modules/callbacks/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 5
sidebar_class_name: hidden
---

# Callbacks
Expand Down
1 change: 1 addition & 0 deletions docs/core_docs/docs/modules/chains/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 2
sidebar_class_name: hidden
---

# Chains
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import CodeBlock from "@theme/CodeBlock";
# Google Vertex AI

:::info Experimental
This API is new and may change in future LangChainJS versions.
This API is new and may change in future LangChain.js versions.
:::

The `GoogleVertexAIMultimodalEmbeddings` class provides additional methods that are
Expand Down
2 changes: 2 additions & 0 deletions docs/core_docs/docs/modules/data_connection/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
sidebar_label: Retrieval
sidebar_position: 1
sidebar_class_name: hidden
---

# Retrieval
Expand Down
1 change: 1 addition & 0 deletions docs/core_docs/docs/modules/experimental/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 6
sidebar_class_name: hidden
---

# Experimental
1 change: 1 addition & 0 deletions docs/core_docs/docs/modules/memory/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 3
sidebar_class_name: hidden
---

# Memory
Expand Down
1 change: 1 addition & 0 deletions docs/core_docs/docs/modules/model_io/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
sidebar_position: 0
sidebar_custom_props:
description: Interface with language models
sidebar_class_name: hidden
---

# Model I/O
Expand Down
98 changes: 95 additions & 3 deletions docs/core_docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,99 @@ module.exports = {
label: "Modules",
collapsed: false,
collapsible: false,
items: [{ type: "autogenerated", dirName: "modules" }],
items: [
{
type: "category",
label: "Model I/O",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "modules/model_io",
},
],
link: { type: "doc", id: "modules/model_io/index" },
},
{
type: "category",
label: "Retrieval",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "modules/data_connection",
},
],
link: { type: "doc", id: "modules/data_connection/index" },
},
{
type: "category",
label: "Agents",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "modules/agents",
},
],
link: { type: "doc", id: "modules/agents/index" },
},
{
type: "category",
label: "More",
collapsed: true,
items: [
{
type: "category",
label: "Chains",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "modules/chains",
},
],
link: { type: "doc", id: "modules/chains/index" },
},
{
type: "category",
label: "Memory",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "modules/memory",
},
],
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: "category",
label: "Experimental",
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "modules/experimental",
},
],
link: { type: "doc", id: "modules/experimental/index" },
},
],
},
],
link: {
type: "doc",
id: "modules/index",
Expand Down Expand Up @@ -114,7 +206,7 @@ module.exports = {
items: [{ type: "autogenerated", dirName: "integrations/platforms" }],
link: {
type: "generated-index",
description: "LangChainJS providers of integrations.",
description: "LangChain.js integration providers.",
slug: "integrations/platforms",
},
},
Expand Down Expand Up @@ -221,7 +313,7 @@ module.exports = {
link: {
type: "generated-index",
description:
"LangChainJS feature integrations with third party libraries, services and more.",
"LangChain.js feature integrations with third party libraries, services and more.",
slug: "integrations/components",
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const DEFAULT_ESLINTRC = `module.exports = {

export const DEFAULT_README = `# @langchain/<ADD_PACKAGE_NAME_HERE>
This package contains the LangChainJS integrations for <ADD_NAME_HERE> through their SDK.
This package contains the LangChain.js integrations for <ADD_NAME_HERE> through their SDK.
## Installation
Expand Down

2 comments on commit def3a26

@vercel
Copy link

@vercel vercel bot commented on def3a26 Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on def3a26 Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

langchainjs-docs – ./docs/core_docs/

langchainjs-docs-langchain.vercel.app
langchainjs-docs-git-main-langchain.vercel.app
langchainjs-docs-ruddy.vercel.app
js.langchain.com

Please sign in to comment.