You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(langchain-ibm): Updated langchain-ibm and langchain-db2 docs, Added correct icons, Makes IBM more visible (#1270)
## Overview
Updated `langchain-ibm` and `langchain-db2` docs,
Added correct icons,
Makes `IBM` more visible
## Type of change
**Type:** Update existing documentation
## Related issues/PRs
<!--
Link to related issues, feature PRs, or discussions (if applicable)
To automatically close an issue when this PR is merged, use closing
keywords:
- "closes#123" or "fixes#123" or "resolves#123"
For regular references without auto-closing, just use:
- "#123" or "See issue #123"
Examples:
- closes#456 (will auto-close issue #456 when PR is merged)
- See #789 for context (will reference but not auto-close issue #789)
-->
- GitHub issue:
- Feature PR:
<!-- For LangChain employees, if applicable: -->
- Linear issue:
- Slack thread:
## Checklist
<!-- Put an 'x' in all boxes that apply -->
- [x] I have read the [contributing guidelines](README.md)
- [x] I have tested my changes locally using `docs dev`
- [x] All code examples have been tested and work correctly
- [ ] I have used **root relative** paths for internal links
- [x] I have updated navigation in `src/docs.json` if needed
- I have gotten approval from the relevant reviewers
- (Internal team members only / optional) I have created a preview
deployment using the [Create Preview Branch
workflow](https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml)
## Additional notes
<!-- Any other information that would be helpful for reviewers -->
---------
Co-authored-by: Mason Daugherty <github@mdrxy.com>
Co-authored-by: Mason Daugherty <mason@langchain.dev>
For detailed documentation of all `ChatWatsonx` features and configurations head to the [API reference](https://python.langchain.com/api_reference/ibm/chat_models/langchain_ibm.chat_models.ChatWatsonx.html).
310
+
For detailed documentation of all `ChatWatsonx` features and configurations head to the [API reference](https://reference.langchain.com/python/integrations/langchain_ibm/ChatWatsonx/).
Copy file name to clipboardExpand all lines: src/oss/python/integrations/llms/ibm_watsonx.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: IBM watsonx.ai
3
3
---
4
4
5
-
>[WatsonxLLM](https://ibm.github.io/watsonx-ai-python-sdk/fm_extensions.html#langchain) is a wrapper for IBM [watsonx.ai](https://www.ibm.com/products/watsonx-ai) foundation models.
5
+
>[`WatsonxLLM`](https://ibm.github.io/watsonx-ai-python-sdk/fm_extensions.html#langchain) is a wrapper for IBM [watsonx.ai](https://www.ibm.com/products/watsonx-ai) foundation models.
6
6
7
7
This example shows how to communicate with `watsonx.ai` models using `LangChain`.
8
8
@@ -12,7 +12,7 @@ This example shows how to communicate with `watsonx.ai` models using `LangChain`
12
12
13
13
| Class | Package | Local | Serializable |[JS support](https://js.langchain.com/docs/integrations/llms/ibm/)| Downloads | Version |
For detailed documentation of all `WatsonxLLM` features and configurations head to the [API reference](https://python.langchain.com/api_reference/ibm/llms/langchain_ibm.llms.WatsonxLLM.html).
214
+
For detailed documentation of all `WatsonxLLM` features and configurations head to the [API reference](https://reference.langchain.com/python/integrations/langchain_ibm/WatsonxLLM/).
Copy file name to clipboardExpand all lines: src/oss/python/integrations/providers/ibm.mdx
+37-87Lines changed: 37 additions & 87 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ LangChain integrations related to IBM technologies, including the
6
6
[IBM watsonx.ai](https://www.ibm.com/products/watsonx-ai) platform and DB2 database.
7
7
8
8
## Watsonx AI
9
+
9
10
IBM® watsonx.ai™ AI studio is part of the IBM [watsonx](https://www.ibm.com/watsonx)™ AI and data platform, bringing together new generative
10
11
AI capabilities powered by [foundation models](https://www.ibm.com/products/watsonx-ai/foundation-models) and traditional machine learning (ML)
11
12
into a powerful studio spanning the AI lifecycle. Tune and guide models with your enterprise data to meet your needs with easy-to-use tools for
@@ -17,103 +18,52 @@ Watsonx.ai offers:
17
18
-**End-to-end AI governance:** Enterprises can scale and accelerate the impact of AI with trusted data across the business, using data wherever it resides.
18
19
-**Hybrid, multi-cloud deployments:** IBM provides the flexibility to integrate and deploy your AI workloads into your hybrid-cloud stack of choice.
19
20
21
+
### Model interfaces
20
22
21
-
### Installation and Setup
22
-
23
-
Install the integration package with:
24
-
25
-
<CodeGroup>
26
-
```bash pip
27
-
pip install -qU langchain-ibm
28
-
```
29
-
30
-
```bash uv
31
-
uv add langchain-ibm
32
-
```
33
-
</CodeGroup>
34
-
35
-
Get an IBM watsonx.ai api key and set it as an environment variable (`WATSONX_APIKEY`)
36
-
```python
37
-
import os
38
-
39
-
os.environ["WATSONX_APIKEY"] ="your IBM watsonx.ai api key"
40
-
```
41
-
42
-
### Chat Model
43
-
44
-
#### ChatWatsonx
45
-
46
-
See a [usage example](/oss/integrations/chat/ibm_watsonx).
47
-
48
-
```python
49
-
from langchain_ibm import ChatWatsonx
50
-
```
51
-
52
-
### LLMs
53
-
54
-
#### WatsonxLLM
55
-
56
-
See a [usage example](/oss/integrations/llms/ibm_watsonx).
For detailed documentation of all `WatsonxRerank` features and configurations head to the [API reference](https://python.langchain.com/api_reference/ibm/chat_models/langchain_ibm.rerank.WatsonxRerank.html).
270
+
For detailed documentation of all `WatsonxRerank` features and configurations head to the [API reference](https://reference.langchain.com/python/integrations/langchain_ibm/WatsonxRerank/).
Copy file name to clipboardExpand all lines: src/oss/python/integrations/text_embedding/ibm_watsonx.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: IBM watsonx.ai
3
3
---
4
4
5
-
>WatsonxEmbeddings is a wrapper for IBM [watsonx.ai](https://www.ibm.com/products/watsonx-ai) foundation models.
5
+
>`WatsonxEmbeddings` is a wrapper for IBM [watsonx.ai](https://www.ibm.com/products/watsonx-ai) foundation models.
6
6
7
7
This example shows how to communicate with `watsonx.ai` models using `LangChain`.
8
8
@@ -183,4 +183,4 @@ doc_result[0][:5]
183
183
184
184
## API reference
185
185
186
-
For detailed documentation of all `WatsonxEmbeddings` features and configurations head to the [API reference](https://python.langchain.com/api_reference/ibm/embeddings/langchain_ibm.embeddings.WatsonxEmbeddings.html).
186
+
For detailed documentation of all `WatsonxEmbeddings` features and configurations head to the [API reference](https://reference.langchain.com/python/integrations/langchain_ibm/WatsonxEmbeddings/).
@@ -302,4 +302,4 @@ The current weather in Boston is -1°C with 0mm of rain, a relative humidity of
302
302
303
303
## API reference
304
304
305
-
For detailed documentation of all `WatsonxToolkit` features and configurations head to the [API reference](https://python.langchain.com/api_reference/ibm/toolkit/langchain_ibm.toolkit.WatsonxToolkit.html).
305
+
For detailed documentation of all `WatsonxToolkit` features and configurations head to the [API reference](https://reference.langchain.com/python/integrations/langchain_ibm/WatsonxToolkit/).
0 commit comments