Skip to content

Commit dcc0432

Browse files
authored
Merge branch 'main' into brace/more-lowest-latest-deps-ci
2 parents 9301293 + de28687 commit dcc0432

File tree

13 files changed

+87
-30
lines changed

13 files changed

+87
-30
lines changed

docs/core_docs/docs/integrations/llms/azure.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ import CodeBlock from "@theme/CodeBlock";
22

33
# Azure OpenAI
44

5+
:::caution
6+
You are currently on a page documenting the use of Azure OpenAI [text completion models](/docs/concepts/#llms). The latest and most popular Azure OpenAI models are [chat completion models](/docs/concepts/#chat-models).
7+
8+
Unless you are specifically using `gpt-3.5-turbo-instruct`, you are probably looking for [this page instead](/docs/integrations/chat/azure/).
9+
:::
10+
511
[Azure OpenAI](https://azure.microsoft.com/products/ai-services/openai-service/) is a cloud service to help you quickly develop generative AI experiences with a diverse set of prebuilt and curated models from OpenAI, Meta and beyond.
612

713
LangChain.js supports integration with [Azure OpenAI](https://azure.microsoft.com/products/ai-services/openai-service/) using the new Azure integration in the [OpenAI SDK](https://github.com/openai/openai-node).

docs/core_docs/docs/integrations/llms/bedrock.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Bedrock
22

3+
:::caution
4+
You are currently on a page documenting the use of Amazon Bedrock models as [text completion models](/docs/concepts/#llms). Many popular models available on Bedrock are [chat completion models](/docs/concepts/#chat-models).
5+
6+
You may be looking for [this page instead](/docs/integrations/chat/bedrock/).
7+
:::
8+
39
> [Amazon Bedrock](https://aws.amazon.com/bedrock/) is a fully managed service that makes Foundation Models (FMs)
410
> from leading AI startups and Amazon available via an API. You can choose from a wide range of FMs to find the model that is best suited for your use case.
511

docs/core_docs/docs/integrations/llms/cohere.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Cohere
22

3+
:::caution
4+
You are currently on a page documenting the use of Cohere models as [text completion models](/docs/concepts/#llms). Many popular models available on Cohere are [chat completion models](/docs/concepts/#chat-models).
5+
6+
You may be looking for [this page instead](/docs/integrations/chat/cohere/).
7+
:::
8+
39
import CodeBlock from "@theme/CodeBlock";
410

511
LangChain.js supports Cohere LLMs. Here's an example:

docs/core_docs/docs/integrations/llms/fireworks.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ import CodeBlock from "@theme/CodeBlock";
66

77
# Fireworks
88

9+
:::caution
10+
You are currently on a page documenting the use of Fireworks models as [text completion models](/docs/concepts/#llms). Many popular models available on Fireworks are [chat completion models](/docs/concepts/#chat-models).
11+
12+
You may be looking for [this page instead](/docs/integrations/chat/fireworks/).
13+
:::
14+
915
import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx";
1016

1117
<IntegrationInstallTooltip></IntegrationInstallTooltip>

docs/core_docs/docs/integrations/llms/google_vertex_ai.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Google Vertex AI
22

3-
Langchain.js supports two different authentication methods based on whether
3+
:::caution
4+
You are currently on a page documenting the use of Google Vertex models as [text completion models](/docs/concepts/#llms). Many popular models available on Google Vertex are [chat completion models](/docs/concepts/#chat-models).
5+
6+
You may be looking for [this page instead](/docs/integrations/chat/google_vertex_ai/).
7+
:::
8+
9+
LangChain.js supports two different authentication methods based on whether
410
you're running in a Node.js environment or a web environment.
511

612
## Setup

docs/core_docs/docs/integrations/llms/ollama.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Ollama
22

3-
[Ollama](https://ollama.ai/) allows you to run open-source large language models, such as Llama 2, locally.
3+
:::caution
4+
You are currently on a page documenting the use of Ollama models as [text completion models](/docs/concepts/#llms). Many popular models available on Ollama are [chat completion models](/docs/concepts/#chat-models).
5+
6+
You may be looking for [this page instead](/docs/integrations/chat/ollama/).
7+
:::
8+
9+
[Ollama](https://ollama.ai/) allows you to run open-source large language models, such as Llama 3, locally.
410

511
Ollama bundles model weights, configuration, and data into a single package, defined by a Modelfile. It optimizes setup and configuration details, including GPU usage.
612

docs/core_docs/docs/integrations/llms/openai.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# OpenAI
22

3+
:::caution
4+
You are currently on a page documenting the use of OpenAI [text completion models](/docs/concepts/#llms). The latest and most popular OpenAI models are [chat completion models](/docs/concepts/#chat-models).
5+
6+
Unless you are specifically using `gpt-3.5-turbo-instruct`, you are probably looking for [this page instead](/docs/integrations/chat/openai/).
7+
:::
8+
39
Here's how you can initialize an `OpenAI` LLM instance:
410

511
import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx";

docs/core_docs/docs/integrations/llms/togetherai.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ import CodeBlock from "@theme/CodeBlock";
22

33
# Together AI
44

5+
:::caution
6+
You are currently on a page documenting the use of Together AI models as [text completion models](/docs/concepts/#llms). Many popular models available on Together AI are [chat completion models](/docs/concepts/#chat-models).
7+
8+
You may be looking for [this page instead](/docs/integrations/chat/togetherai/).
9+
:::
10+
511
Here's an example of calling a Together AI model as an LLM:
612

713
import TogetherAI from "@examples/models/llm/togetherai.ts";

docs/core_docs/docs/integrations/platforms/aws.mdx

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,17 @@ keywords: [bedrock]
44

55
# AWS
66

7-
All functionality related to [Amazon AWS](https://aws.amazon.com/) platform
7+
All functionality related to the [Amazon AWS](https://aws.amazon.com/) platform.
8+
9+
## Chat Models
10+
11+
### Bedrock
12+
13+
See a [usage example](/docs/integrations/chat/bedrock).
14+
15+
```typescript
16+
import { BedrockChat } from "@langchain/community/chat_models/bedrock";
17+
```
818

919
## LLMs
1020

@@ -13,7 +23,7 @@ All functionality related to [Amazon AWS](https://aws.amazon.com/) platform
1323
See a [usage example](/docs/integrations/llms/bedrock).
1424

1525
```typescript
16-
import { Bedrock } from "langchain/llms/bedrock";
26+
import { Bedrock } from "@langchain/community/llms/bedrock";
1727
```
1828

1929
### SageMaker Endpoint
@@ -28,7 +38,7 @@ See a [usage example](/docs/integrations/llms/aws_sagemaker).
2838
import {
2939
SagemakerEndpoint,
3040
SageMakerLLMContentHandler,
31-
} from "langchain/llms/sagemaker_endpoint";
41+
} from "@langchain/community/llms/sagemaker_endpoint";
3242
```
3343

3444
## Text Embedding Models
@@ -38,7 +48,7 @@ import {
3848
See a [usage example](/docs/integrations/text_embedding/bedrock).
3949

4050
```typescript
41-
import { BedrockEmbeddings } from "langchain/embeddings/bedrock";
51+
import { BedrockEmbeddings } from "@langchain/community/embeddings/bedrock";
4252
```
4353

4454
## Document loaders
@@ -55,7 +65,7 @@ npm install @aws-sdk/client-s3
5565
```
5666

5767
```typescript
58-
import { S3Loader } from "langchain/document_loaders/web/s3";
68+
import { S3Loader } from "@langchain/community/document_loaders/web/s3";
5969
```
6070

6171
## Memory

docs/core_docs/docs/integrations/platforms/index.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ LangChain integrates with many providers.
1212
These providers have standalone `@langchain/{provider}` packages for improved versioning, dependency management and testing.
1313

1414
- [Anthropic](https://www.npmjs.com/package/@langchain/anthropic)
15-
- [Azure OpenAI](https://www.npmjs.com/package/@langchain/azure-openai)
1615
- [Cloudflare](https://www.npmjs.com/package/@langchain/cloudflare)
1716
- [Cohere](https://www.npmjs.com/package/@langchain/cohere)
1817
- [Exa](https://www.npmjs.com/package/@langchain/exa)

docs/core_docs/docs/integrations/platforms/microsoft.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ import CodeBlock from "@theme/CodeBlock";
88

99
All functionality related to `Microsoft Azure` and other `Microsoft` products.
1010

11+
## Chat Models
12+
13+
### Azure OpenAI
14+
15+
See a [usage example](/docs/integrations/chat/azure)
16+
17+
import AzureChatOpenAI from "@examples/models/chat/integration_azure_openai.ts";
18+
19+
<UnifiedModelParamsTooltip></UnifiedModelParamsTooltip>
20+
21+
<CodeBlock language="typescript">{AzureChatOpenAI}</CodeBlock>
22+
1123
## LLM
1224

1325
### Azure OpenAI
@@ -70,18 +82,6 @@ import AzureOpenAIEmbeddings from "@examples/models/embeddings/azure_openai.ts";
7082

7183
<CodeBlock language="typescript">{AzureOpenAIEmbeddings}</CodeBlock>
7284

73-
## Chat Models
74-
75-
### Azure OpenAI
76-
77-
See a [usage example](/docs/integrations/chat/azure)
78-
79-
import AzureChatOpenAI from "@examples/models/chat/integration_azure_openai.ts";
80-
81-
<UnifiedModelParamsTooltip></UnifiedModelParamsTooltip>
82-
83-
<CodeBlock language="typescript">{AzureChatOpenAI}</CodeBlock>
84-
8585
## Vector stores
8686

8787
### Azure AI Search

docs/core_docs/docs/integrations/platforms/openai.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ All functionality related to OpenAI
2020

2121
- Get an OpenAI api key and set it as an environment variable (`OPENAI_API_KEY`)
2222

23+
## Chat model
24+
25+
See a [usage example](/docs/integrations/chat/openai).
26+
27+
```typescript
28+
import { ChatOpenAI } from "@langchain/openai";
29+
```
30+
2331
## LLM
2432

2533
See a [usage example](/docs/integrations/llms/openai).
@@ -36,14 +44,6 @@ npm install @langchain/openai
3644
import { OpenAI } from "@langchain/openai";
3745
```
3846

39-
## Chat model
40-
41-
See a [usage example](/docs/integrations/chat/openai).
42-
43-
```typescript
44-
import { ChatOpenAI } from "@langchain/openai";
45-
```
46-
4747
## Text Embedding Model
4848

4949
See a [usage example](/docs/integrations/text_embedding/openai)

docs/core_docs/docs/tutorials/rag.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,9 @@
422422
"source": [
423423
"### Go deeper\n",
424424
"\n",
425-
"`TextSplitter`: Object that splits a list of `Document`s into smaller chunks. Subclass of `DocumentTransformers`. - Explore `Context-aware splitters`, which keep the location (“context”) of each split in the original `Document`: - [Markdown files](/docs/how_to/code_splitter/#markdown) - [Code](/docs/how_to/code_splitter/) (15+ langs) - [Interface](https://v02.api.js.langchain.com/classes/langchain_text_splitter.TextSplitter.html): API reference for the base interface.\n",
425+
"`TextSplitter`: Object that splits a list of `Document`s into smaller chunks. Subclass of `DocumentTransformers`. - Explore `Context-aware splitters`, which keep the location (“context”) of each split in the original `Document`: - [Markdown files](/docs/how_to/code_splitter/#markdown) - [Code](/docs/how_to/code_splitter/) (15+ langs) - [Interface](https://v02.api.js.langchain.com/classes/langchain_textsplitters.TextSplitter.html): API reference for the base interface.\n",
426426
"\n",
427-
"`DocumentTransformer`: Object that performs a transformation on a list of `Document`s. - Docs: Detailed documentation on how to use `DocumentTransformer`s - [Integrations](/docs/integrations/document_transformers) - [Interface](https://v02.api.js.langchain.com/modules/langchain_schema_document.html#BaseDocumentTransformer): API reference for the base interface."
427+
"`DocumentTransformer`: Object that performs a transformation on a list of `Document`s. - Docs: Detailed documentation on how to use `DocumentTransformer`s - [Integrations](/docs/integrations/document_transformers) - [Interface](https://v02.api.js.langchain.com/classes/langchain_core_documents.BaseDocumentTransformer.html): API reference for the base interface."
428428
]
429429
},
430430
{

0 commit comments

Comments
 (0)