Skip to content

Commit

Permalink
Add update instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Apr 9, 2023
1 parent 5987015 commit 15e132d
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 3 deletions.
15 changes: 15 additions & 0 deletions docs/docs/getting-started/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ sidebar_position: 1

# Setup and Installation

:::info
Updating from <0.0.52? See [this section](#updating-from-0052) for instructions.
:::

## Quickstart

If you want to get started quickly on using LangChain in Node.js, [clone this repository](https://github.com/domeccleston/langchain-ts-starter) and follow the README instructions for a boilerplate project with those dependencies set up.
Expand Down Expand Up @@ -83,6 +87,17 @@ const nextConfig = {
};
```

## Updating from <0.0.52

If you are updating from a version of LangChain prior to 0.0.52, you will need to update your imports to use the new path structure. For example, if you were previously importing `OpenAI` from `langchain/llms`, you will now need to import it from `langchain/llms/openai`. This applies to all imports from

- `langchain/llms`, see [LLMs](../modules/models/llms/integrations)
- `langchain/chat_models`, see [Chat Models](../modules/models/chat/integrations)
- `langchain/embeddings`, see [Embeddings](../modules/models/embeddings/integrations)
- `langchain/vectorstores`, see [Vector Stores](../modules/indexes/vector_stores/integrations/)
- `langchain/document_loaders`, see [Document Loaders](../modules/indexes/document_loaders/examples/)
- `langchain/retrievers`, see [Retrievers](../modules/indexes/retrievers/)

## Unsupported: Node.js 16

We do not support Node.js 16, but if you still want to run LangChain on Node.js 16, you will need to follow the instructions in this section. We do not guarantee that these instructions will continue to work in the future.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
hide_table_of_contents: true
---

# ChatGPT Plugin Retriever

This example shows how to use the ChatGPT Retriever Plugin within LangChain.
Expand Down
4 changes: 4 additions & 0 deletions docs/docs/modules/indexes/retrievers/metal-retriever.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
hide_table_of_contents: true
---

# Remote Retriever

This example shows how to use the Metal Retriever in a `RetrievalQAChain` to retrieve documents from Metal index.
Expand Down
4 changes: 4 additions & 0 deletions docs/docs/modules/indexes/retrievers/remote-retriever.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
hide_table_of_contents: true
---

# Remote Retriever

This example shows how to use a Remote Retriever in a `RetrievalQAChain` to retrieve documents from a remote server.
Expand Down
9 changes: 6 additions & 3 deletions docs/docs/modules/indexes/retrievers/vectorstore.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# VectorStore
---
hide_table_of_contents: true
---

The main supported type of Retriever is one backed by a Vector Store.
Once you've created a Vector Store, the way to use it as a Retriever is very simple:
# Vector Store

Once you've created a [Vector Store](../vector_stores/), the way to use it as a Retriever is very simple:

```typescript
vectorStore = ...
Expand Down

0 comments on commit 15e132d

Please sign in to comment.