Skip to content

Commit de28687

Browse files
authored
Add pointers from LLM pages to chat model pages (#5719)
1 parent 8d24df4 commit de28687

File tree

7 files changed

+53
-7
lines changed

7 files changed

+53
-7
lines changed

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/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

0 commit comments

Comments
 (0)