From c180835d03edf4d37f48fec577dadf21369c373f Mon Sep 17 00:00:00 2001 From: Mateusz Szewczyk Date: Mon, 3 Nov 2025 13:17:05 +0100 Subject: [PATCH 1/5] Updated langchain-ibm reference documentataion --- .../python/docs/integrations/langchain_ibm.md | 11 ---- .../integrations/langchain_ibm/ChatWatsonx.md | 12 ++++ .../langchain_ibm/WatsonxEmbeddings.md | 12 ++++ .../integrations/langchain_ibm/WatsonxLLM.md | 12 ++++ .../langchain_ibm/WatsonxRerank.md | 12 ++++ .../WatsonxSQLDatabaseToolkit.md | 10 +++ .../langchain_ibm/WatsonxToolkit.md | 12 ++++ .../docs/integrations/langchain_ibm/index.md | 66 +++++++++++++++++++ 8 files changed, 136 insertions(+), 11 deletions(-) delete mode 100644 reference/python/docs/integrations/langchain_ibm.md create mode 100644 reference/python/docs/integrations/langchain_ibm/ChatWatsonx.md create mode 100644 reference/python/docs/integrations/langchain_ibm/WatsonxEmbeddings.md create mode 100644 reference/python/docs/integrations/langchain_ibm/WatsonxLLM.md create mode 100644 reference/python/docs/integrations/langchain_ibm/WatsonxRerank.md create mode 100644 reference/python/docs/integrations/langchain_ibm/WatsonxSQLDatabaseToolkit.md create mode 100644 reference/python/docs/integrations/langchain_ibm/WatsonxToolkit.md create mode 100644 reference/python/docs/integrations/langchain_ibm/index.md diff --git a/reference/python/docs/integrations/langchain_ibm.md b/reference/python/docs/integrations/langchain_ibm.md deleted file mode 100644 index f6578a0ffc..0000000000 --- a/reference/python/docs/integrations/langchain_ibm.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: IBM ---- - -# `langchain-ibm` - -[![PyPI - Version](https://img.shields.io/pypi/v/langchain-ibm?label=%20)](https://pypi.org/project/langchain-ibm/#history) -[![PyPI - License](https://img.shields.io/pypi/l/langchain-ibm)](https://opensource.org/licenses/MIT) -[![PyPI - Downloads](https://img.shields.io/pepy/dt/langchain-ibm)](https://pypistats.org/packages/langchain-ibm) - -::: langchain_ibm diff --git a/reference/python/docs/integrations/langchain_ibm/ChatWatsonx.md b/reference/python/docs/integrations/langchain_ibm/ChatWatsonx.md new file mode 100644 index 0000000000..256a357ca0 --- /dev/null +++ b/reference/python/docs/integrations/langchain_ibm/ChatWatsonx.md @@ -0,0 +1,12 @@ +--- +title: ChatWatsonx +--- + +# `ChatWatsonx` + +!!! warning "Reference docs" + This page contains **reference documentation** for `ChatWatsonx`. See + [the docs](https://docs.langchain.com/oss/python/integrations/chat/ibm_watsonx) + for conceptual guides, tutorials, and examples on using `ChatWatsonx`. + +::: langchain_ibm.chat_models.ChatWatsonx diff --git a/reference/python/docs/integrations/langchain_ibm/WatsonxEmbeddings.md b/reference/python/docs/integrations/langchain_ibm/WatsonxEmbeddings.md new file mode 100644 index 0000000000..52d15e766a --- /dev/null +++ b/reference/python/docs/integrations/langchain_ibm/WatsonxEmbeddings.md @@ -0,0 +1,12 @@ +--- +title: WatsonxEmbeddings +--- + +# `WatsonxEmbeddings` + +!!! warning "Reference docs" + This page contains **reference documentation** for `WatsonxEmbeddings`. See + [the docs](https://docs.langchain.com/oss/python/integrations/text_embedding/ibm_watsonx) + for conceptual guides, tutorials, and examples on using `WatsonxEmbeddings`. + +::: langchain_ibm.embeddings.WatsonxEmbeddings diff --git a/reference/python/docs/integrations/langchain_ibm/WatsonxLLM.md b/reference/python/docs/integrations/langchain_ibm/WatsonxLLM.md new file mode 100644 index 0000000000..eac83bf8ae --- /dev/null +++ b/reference/python/docs/integrations/langchain_ibm/WatsonxLLM.md @@ -0,0 +1,12 @@ +--- +title: WatsonxLLM +--- + +# `WatsonxLLM` + +!!! warning "Reference docs" + This page contains **reference documentation** for `WatsonxLLM`. See + [the docs](https://docs.langchain.com/oss/python/integrations/llms/ibm_watsonx) + for conceptual guides, tutorials, and examples on using `WatsonxLLM`. + +::: langchain_ibm.llms.WatsonxLLM diff --git a/reference/python/docs/integrations/langchain_ibm/WatsonxRerank.md b/reference/python/docs/integrations/langchain_ibm/WatsonxRerank.md new file mode 100644 index 0000000000..ef80c8718e --- /dev/null +++ b/reference/python/docs/integrations/langchain_ibm/WatsonxRerank.md @@ -0,0 +1,12 @@ +--- +title: WatsonxRerank +--- + +# `WatsonxRerank` + +!!! warning "Reference docs" + This page contains **reference documentation** for `WatsonxRerank`. See + [the docs](https://docs.langchain.com/oss/python/integrations/retrievers/ibm_watsonx_ranker) + for conceptual guides, tutorials, and examples on using `WatsonxRerank`. + +::: langchain_ibm.rerank.WatsonxRerank diff --git a/reference/python/docs/integrations/langchain_ibm/WatsonxSQLDatabaseToolkit.md b/reference/python/docs/integrations/langchain_ibm/WatsonxSQLDatabaseToolkit.md new file mode 100644 index 0000000000..1e5c059342 --- /dev/null +++ b/reference/python/docs/integrations/langchain_ibm/WatsonxSQLDatabaseToolkit.md @@ -0,0 +1,10 @@ +--- +title: WatsonxSQLDatabaseToolkit +--- + +# `WatsonxSQLDatabaseToolkit` + +!!! warning "Reference docs" + This page contains **reference documentation** for `WatsonxSQLDatabaseToolkit`. + +::: langchain_ibm.agent_toolkits.sql.toolkit.WatsonxSQLDatabaseToolkit diff --git a/reference/python/docs/integrations/langchain_ibm/WatsonxToolkit.md b/reference/python/docs/integrations/langchain_ibm/WatsonxToolkit.md new file mode 100644 index 0000000000..370d51bcc3 --- /dev/null +++ b/reference/python/docs/integrations/langchain_ibm/WatsonxToolkit.md @@ -0,0 +1,12 @@ +--- +title: WatsonxToolkit +--- + +# `WatsonxToolkit` + +!!! warning "Reference docs" + This page contains **reference documentation** for `WatsonxToolkit`. See + [the docs](https://docs.langchain.com/oss/python/integrations/tools/ibm_watsonx) + for conceptual guides, tutorials, and examples on using `WatsonxToolkit`. + +::: langchain_ibm.agent_toolkits.utility.toolkit.WatsonxToolkit diff --git a/reference/python/docs/integrations/langchain_ibm/index.md b/reference/python/docs/integrations/langchain_ibm/index.md new file mode 100644 index 0000000000..47662762e2 --- /dev/null +++ b/reference/python/docs/integrations/langchain_ibm/index.md @@ -0,0 +1,66 @@ +--- +title: IBM +--- + +# `langchain-ibm` + +[![PyPI - Version](https://img.shields.io/pypi/v/langchain-ibm?label=%20)](https://pypi.org/project/langchain-ibm/#history) +[![PyPI - License](https://img.shields.io/pypi/l/langchain-ibm)](https://opensource.org/licenses/MIT) +[![PyPI - Downloads](https://img.shields.io/pepy/dt/langchain-ibm)](https://pypistats.org/packages/langchain-ibm) + +## Modules + +!!! note "Usage documentation" + Refer to [the docs](https://docs.langchain.com/oss/python/integrations/providers/ibm) for a high-level guide on how to use each module. These reference pages contain auto-generated API documentation for each module, focusing on the "what" rather than the "how" or "why" (i.e. no end-to-end tutorials or conceptual overviews). + +
+ +- :material-message-text:{ .lg .middle } __`ChatWatsonx`__ + + --- + + IBM watsonx.ai chat models. + + [:octicons-arrow-right-24: Reference](./ChatWatsonx.md) + +- :material-message-text:{ .lg .middle } __`WatsonxLLM`__ + + --- + + (Legacy) IBM watsonx.ai text completion models. + + [:octicons-arrow-right-24: Reference](./WatsonxLLM.md) + +- :material-message-text:{ .lg .middle } __`WatsonxEmbeddings`__ + + --- + + IBM watsonx.ai embedding models. + + [:octicons-arrow-right-24: Reference](./WatsonxEmbeddings.md) + +- :material-message-text:{ .lg .middle } __`WatsonxRerank`__ + + --- + + IBM watsonx.ai document retriever. + + [:octicons-arrow-right-24: Reference](./WatsonxRerank.md) + +- :material-message-text:{ .lg .middle } __`WatsonxToolkit`__ + + --- + + IBM watsonx.ai toolkit. + + [:octicons-arrow-right-24: Reference](./WatsonxToolkit.md) + +- :material-message-text:{ .lg .middle } __`WatsonxSQLDatabaseToolkit`__ + + --- + + IBM watsonx.ai SQL database toolkit. + + [:octicons-arrow-right-24: Reference](./WatsonxSQLDatabaseToolkit.md) + +
From 41743b3a85dd377b064680e48a549e2156d2e958 Mon Sep 17 00:00:00 2001 From: Mateusz Szewczyk Date: Mon, 3 Nov 2025 13:48:30 +0100 Subject: [PATCH 2/5] update references --- reference/python/mkdocs.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reference/python/mkdocs.yml b/reference/python/mkdocs.yml index cba30e07bb..d64a9913ac 100644 --- a/reference/python/mkdocs.yml +++ b/reference/python/mkdocs.yml @@ -444,7 +444,14 @@ nav: - Google (VertexAI): integrations/langchain_google_vertexai.md - Groq: integrations/langchain_groq.md - HuggingFace: integrations/langchain_huggingface.md - - IBM: integrations/langchain_ibm.md + - IBM: + - integrations/langchain_ibm/index.md + - ChatWatsonx: integrations/langchain_ibm/ChatWatsonx.md + - WatsonxLLM: integrations/langchain_ibm/WatsonxLLM.md + - WatsonxEmbeddings: integrations/langchain_ibm/WatsonxEmbeddings.md + - WatsonxRerank: integrations/langchain_ibm/WatsonxRerank.md + - WatsonxToolkit: integrations/langchain_ibm/WatsonxToolkit.md + - WatsonxSQLDatabaseToolkit: integrations/langchain_ibm/WatsonxSQLDatabaseToolkit.md - Milvus: integrations/langchain_milvus.md - Mistral AI: integrations/langchain_mistralai.md - MongoDB: https://langchain-mongodb.readthedocs.io/en/latest/index.html From b00b4022898ecb62cbf6602fae8591c557f7605c Mon Sep 17 00:00:00 2001 From: Mateusz Szewczyk Date: Mon, 3 Nov 2025 22:40:30 +0100 Subject: [PATCH 3/5] Add different icons for each component --- reference/python/docs/integrations/langchain_ibm/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/python/docs/integrations/langchain_ibm/index.md b/reference/python/docs/integrations/langchain_ibm/index.md index 47662762e2..78ff887b66 100644 --- a/reference/python/docs/integrations/langchain_ibm/index.md +++ b/reference/python/docs/integrations/langchain_ibm/index.md @@ -31,7 +31,7 @@ title: IBM [:octicons-arrow-right-24: Reference](./WatsonxLLM.md) -- :material-message-text:{ .lg .middle } __`WatsonxEmbeddings`__ +- :fontawesome-solid-layer-group:{ .lg .middle } __`WatsonxEmbeddings`__ --- @@ -39,7 +39,7 @@ title: IBM [:octicons-arrow-right-24: Reference](./WatsonxEmbeddings.md) -- :material-message-text:{ .lg .middle } __`WatsonxRerank`__ +- :fontawesome-solid-layer-group:{ .lg .middle } __`WatsonxRerank`__ --- @@ -47,7 +47,7 @@ title: IBM [:octicons-arrow-right-24: Reference](./WatsonxRerank.md) -- :material-message-text:{ .lg .middle } __`WatsonxToolkit`__ +- :fontawesome-solid-screwdriver-wrench:{ .lg .middle } __`WatsonxToolkit`__ --- @@ -55,7 +55,7 @@ title: IBM [:octicons-arrow-right-24: Reference](./WatsonxToolkit.md) -- :material-message-text:{ .lg .middle } __`WatsonxSQLDatabaseToolkit`__ +- :fontawesome-solid-screwdriver-wrench:{ .lg .middle } __`WatsonxSQLDatabaseToolkit`__ --- From 5680d177b9bc884e713c958b438b6422f13e30e8 Mon Sep 17 00:00:00 2001 From: Mateusz Szewczyk Date: Tue, 4 Nov 2025 12:27:08 +0100 Subject: [PATCH 4/5] Update langchain IBM documentataion, updated icons --- reference/python/docs/integrations/index.md | 8 ++ .../docs/integrations/langchain_ibm/index.md | 4 +- .../integrations/langchain_openai/index.md | 8 +- src/docs.json | 3 +- src/oss/python/integrations/chat/index.mdx | 1 + src/oss/python/integrations/providers/ibm.mdx | 97 ++++++++----------- 6 files changed, 56 insertions(+), 65 deletions(-) diff --git a/reference/python/docs/integrations/index.md b/reference/python/docs/integrations/index.md index 50100c3b33..01c135859f 100644 --- a/reference/python/docs/integrations/index.md +++ b/reference/python/docs/integrations/index.md @@ -79,6 +79,14 @@ To learn more about integrations in LangChain, visit the [Integrations overview] [:octicons-arrow-right-24: Reference](./langchain_ollama.md) +- :material-message:{ .lg .middle } __`langchain-ibm`__ + + --- + + Interface to IBM watsonx.ai. + + [:octicons-arrow-right-24: Reference](./langchain_ibm/index.md) + Other providers are listed in the section navigation (left sidebar). diff --git a/reference/python/docs/integrations/langchain_ibm/index.md b/reference/python/docs/integrations/langchain_ibm/index.md index 78ff887b66..55ea6c4921 100644 --- a/reference/python/docs/integrations/langchain_ibm/index.md +++ b/reference/python/docs/integrations/langchain_ibm/index.md @@ -23,7 +23,7 @@ title: IBM [:octicons-arrow-right-24: Reference](./ChatWatsonx.md) -- :material-message-text:{ .lg .middle } __`WatsonxLLM`__ +- :fontawesome-solid-i-cursor:{ .lg .middle } __`WatsonxLLM`__ --- @@ -39,7 +39,7 @@ title: IBM [:octicons-arrow-right-24: Reference](./WatsonxEmbeddings.md) -- :fontawesome-solid-layer-group:{ .lg .middle } __`WatsonxRerank`__ +- :fontawesome-solid-download:{ .lg .middle } __`WatsonxRerank`__ --- diff --git a/reference/python/docs/integrations/langchain_openai/index.md b/reference/python/docs/integrations/langchain_openai/index.md index e39d03f880..69a73c92fb 100644 --- a/reference/python/docs/integrations/langchain_openai/index.md +++ b/reference/python/docs/integrations/langchain_openai/index.md @@ -31,7 +31,7 @@ title: OpenAI [:octicons-arrow-right-24: Reference](./AzureChatOpenAI.md) -- :material-message-text:{ .lg .middle } __`OpenAI`__ +- :fontawesome-solid-i-cursor:{ .lg .middle } __`OpenAI`__ --- @@ -39,7 +39,7 @@ title: OpenAI [:octicons-arrow-right-24: Reference](./OpenAI.md) -- :material-message-text:{ .lg .middle } __`AzureOpenAI`__ +- :fontawesome-solid-i-cursor:{ .lg .middle } __`AzureOpenAI`__ --- @@ -47,7 +47,7 @@ title: OpenAI [:octicons-arrow-right-24: Reference](./AzureChatOpenAI.md) -- :material-message-text:{ .lg .middle } __`OpenAIEmbeddings`__ +- :fontawesome-solid-layer-group:{ .lg .middle } __`OpenAIEmbeddings`__ --- @@ -55,7 +55,7 @@ title: OpenAI [:octicons-arrow-right-24: Reference](./OpenAIEmbeddings.md) -- :material-message-text:{ .lg .middle } __`OpenAIEmbeddings`__ +- :fontawesome-solid-layer-group:{ .lg .middle } __`AzureOpenAIEmbeddings`__ --- diff --git a/src/docs.json b/src/docs.json index a6da682225..6dc2f1bb15 100644 --- a/src/docs.json +++ b/src/docs.json @@ -298,7 +298,8 @@ "oss/python/integrations/providers/aws", "oss/python/integrations/providers/huggingface", "oss/python/integrations/providers/microsoft", - "oss/python/integrations/providers/ollama" + "oss/python/integrations/providers/ollama", + "oss/python/integrations/providers/ibm" ] }, { diff --git a/src/oss/python/integrations/chat/index.mdx b/src/oss/python/integrations/chat/index.mdx index fd2b69dd2d..7d3656b463 100644 --- a/src/oss/python/integrations/chat/index.mdx +++ b/src/oss/python/integrations/chat/index.mdx @@ -22,6 +22,7 @@ mode: wide | [`ChatBedrock`](/oss/integrations/chat/bedrock) | ✅ | ✅ | ❌ | ❌ | ❌ | [`langchain-aws`](https://reference.langchain.com/python/integrations/langchain_aws/) | | [`ChatHuggingFace`](/oss/integrations/chat/huggingface) | ✅ | ✅ | ❌ | ✅ | ❌ | [`langchain-huggingface`](https://reference.langchain.com/python/integrations/langchain_huggingface/) | | [`ChatOllama`](/oss/integrations/chat/ollama) | ✅ | ✅ | ✅ | ✅ | ❌ | [`langchain-ollama`](https://reference.langchain.com/python/integrations/langchain_ollama/) | +| [`ChatWatsonx`](/oss/integrations/chat/ibm_watsonx) | ✅ | ✅ | ✅ | ❌ | ✅ | [`langchain-ibm`](https://reference.langchain.com/python/integrations/langchain_ibm/) | | [`ChatXAI`](/oss/integrations/chat/xai) | ✅ | ✅ | ❌ | ❌ | ❌ | [`langchain-xai`](https://reference.langchain.com/python/integrations/langchain_xai/) | | [`ChatNVIDIA`](/oss/integrations/chat/nvidia_ai_endpoints) | ✅ | ✅ | ✅ | ✅ | ✅ | [`langchain-nvidia-ai-endpoints`](https://reference.langchain.com/python/integrations/langchain_nvidia_ai_endpoints/) | | [`ChatCohere`](/oss/integrations/chat/cohere) | ✅ | ✅ | ❌ | ❌ | ❌ | [`langchain-cohere`](https://reference.langchain.com/python/integrations/langchain_cohere/) | diff --git a/src/oss/python/integrations/providers/ibm.mdx b/src/oss/python/integrations/providers/ibm.mdx index 85798cb75c..c57405d4a4 100644 --- a/src/oss/python/integrations/providers/ibm.mdx +++ b/src/oss/python/integrations/providers/ibm.mdx @@ -32,77 +32,55 @@ uv add langchain-ibm ``` -Get an IBM watsonx.ai api key and set it as an environment variable (`WATSONX_APIKEY`) +Get an IBM watsonx.ai api key and set it as an environment variable (`WATSONX_API_KEY`) ```python import os -os.environ["WATSONX_APIKEY"] = "your IBM watsonx.ai api key" +os.environ["WATSONX_API_KEY"] = "your IBM watsonx.ai api key" ``` -### Chat Model +### Model interfaces -#### ChatWatsonx + + + IBM watsonx.ai chat models. + + + (Legacy) IBM watsonx.ai text completion models. + + + IBM watsonx.ai embedding models. + + -See a [usage example](/oss/integrations/chat/ibm_watsonx). +### Tools and toolkits -```python -from langchain_ibm import ChatWatsonx -``` - -### LLMs - -#### WatsonxLLM - -See a [usage example](/oss/integrations/llms/ibm_watsonx). - -```python -from langchain_ibm import WatsonxLLM -``` - -### Embedding Models - -#### WatsonxEmbeddings - -See a [usage example](/oss/integrations/text_embedding/ibm_watsonx). - -```python -from langchain_ibm import WatsonxEmbeddings -``` - -### Reranker - -#### WatsonxRerank - -See a [usage example](/oss/integrations/retrievers/ibm_watsonx_ranker). + + + IBM watsonx.ai toolkit. + + -```python -from langchain_ibm import WatsonxRerank -``` - -### Toolkit +### Retrievers -#### WatsonxToolkit - -See a [usage example](/oss/integrations/tools/ibm_watsonx). - -```python -from langchain_ibm.agent_toolkits.utility import WatsonxToolkit -``` + + + IBM watsonx.ai document retriever. + + ## DB2 -### Vector stores - -#### IBM DB2 Vector Store and Vector Search - The IBM DB2 relational database v12.1.2 and above offers the abilities of vector store and vector search. Installation of `langchain-db2` package will give LangChain users the support of DB2 vector store and vector search. -See detailed usage examples in the guide [here](/oss/integrations/vectorstores/db2). +### Installation and Setup + + +`langchain-db2` is a separate package for Vector Store feature only, and can be run without the `langchain-ibm` package. + -Installation: This is a separate package for vector store feature only and can be run -without the `langchain-ibm` package. ```bash pip pip install -U langchain-db2 @@ -112,8 +90,11 @@ pip install -U langchain-db2 uv add langchain-db2 ``` -Usage: -```python -from langchain_db2 import db2vs -from langchain_db2.db2vs import DB2VS -``` + +### Vector stores + + + + IBM DB2 Vector Store and Vector Search + + From edb0144f27536a1ddc0acceffad174d89f2c9e8d Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Tue, 4 Nov 2025 10:22:36 -0500 Subject: [PATCH 5/5] cr --- reference/python/docs/integrations/index.md | 8 --- reference/python/uv.lock | 60 ++++++++++--------- src/docs.json | 3 +- .../python/integrations/chat/ibm_watsonx.mdx | 4 +- .../python/integrations/llms/ibm_watsonx.mdx | 6 +- src/oss/python/integrations/providers/ibm.mdx | 33 +--------- .../retrievers/ibm_watsonx_ranker.mdx | 6 +- .../text_embedding/ibm_watsonx.mdx | 4 +- .../python/integrations/tools/ibm_watsonx.mdx | 6 +- 9 files changed, 47 insertions(+), 83 deletions(-) diff --git a/reference/python/docs/integrations/index.md b/reference/python/docs/integrations/index.md index 01c135859f..50100c3b33 100644 --- a/reference/python/docs/integrations/index.md +++ b/reference/python/docs/integrations/index.md @@ -79,14 +79,6 @@ To learn more about integrations in LangChain, visit the [Integrations overview] [:octicons-arrow-right-24: Reference](./langchain_ollama.md) -- :material-message:{ .lg .middle } __`langchain-ibm`__ - - --- - - Interface to IBM watsonx.ai. - - [:octicons-arrow-right-24: Reference](./langchain_ibm/index.md) - Other providers are listed in the section navigation (left sidebar). diff --git a/reference/python/uv.lock b/reference/python/uv.lock index 9fe0698515..0f8b3ac5eb 100644 --- a/reference/python/uv.lock +++ b/reference/python/uv.lock @@ -1339,6 +1339,8 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/ee/43/3cecdc0349359e1a527cbf2e3e28e5f8f06d3343aaf82ca13437a9aa290f/greenlet-3.2.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:23768528f2911bcd7e475210822ffb5254ed10d71f4028387e5a99b4c6699671", size = 610497, upload-time = "2025-08-07T13:18:31.636Z" }, { url = "https://files.pythonhosted.org/packages/b8/19/06b6cf5d604e2c382a6f31cafafd6f33d5dea706f4db7bdab184bad2b21d/greenlet-3.2.4-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:00fadb3fedccc447f517ee0d3fd8fe49eae949e1cd0f6a611818f4f6fb7dc83b", size = 1121662, upload-time = "2025-08-07T13:42:41.117Z" }, { url = "https://files.pythonhosted.org/packages/a2/15/0d5e4e1a66fab130d98168fe984c509249c833c1a3c16806b90f253ce7b9/greenlet-3.2.4-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:d25c5091190f2dc0eaa3f950252122edbbadbb682aa7b1ef2f8af0f8c0afefae", size = 1149210, upload-time = "2025-08-07T13:18:24.072Z" }, + { url = "https://files.pythonhosted.org/packages/1c/53/f9c440463b3057485b8594d7a638bed53ba531165ef0ca0e6c364b5cc807/greenlet-3.2.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:6e343822feb58ac4d0a1211bd9399de2b3a04963ddeec21530fc426cc121f19b", size = 1564759, upload-time = "2025-11-04T12:42:19.395Z" }, + { url = "https://files.pythonhosted.org/packages/47/e4/3bb4240abdd0a8d23f4f88adec746a3099f0d86bfedb623f063b2e3b4df0/greenlet-3.2.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ca7f6f1f2649b89ce02f6f229d7c19f680a6238af656f61e0115b24857917929", size = 1634288, upload-time = "2025-11-04T12:42:21.174Z" }, { url = "https://files.pythonhosted.org/packages/0b/55/2321e43595e6801e105fcfdee02b34c0f996eb71e6ddffca6b10b7e1d771/greenlet-3.2.4-cp313-cp313-win_amd64.whl", hash = "sha256:554b03b6e73aaabec3745364d6239e9e012d64c68ccd0b8430c64ccc14939a8b", size = 299685, upload-time = "2025-08-07T13:24:38.824Z" }, { url = "https://files.pythonhosted.org/packages/22/5c/85273fd7cc388285632b0498dbbab97596e04b154933dfe0f3e68156c68c/greenlet-3.2.4-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:49a30d5fda2507ae77be16479bdb62a660fa51b1eb4928b524975b3bde77b3c0", size = 273586, upload-time = "2025-08-07T13:16:08.004Z" }, { url = "https://files.pythonhosted.org/packages/d1/75/10aeeaa3da9332c2e761e4c50d4c3556c21113ee3f0afa2cf5769946f7a3/greenlet-3.2.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:299fd615cd8fc86267b47597123e3f43ad79c9d8a22bebdce535e53550763e2f", size = 686346, upload-time = "2025-08-07T13:42:59.944Z" }, @@ -1346,6 +1348,8 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/dc/8b/29aae55436521f1d6f8ff4e12fb676f3400de7fcf27fccd1d4d17fd8fecd/greenlet-3.2.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:b4a1870c51720687af7fa3e7cda6d08d801dae660f75a76f3845b642b4da6ee1", size = 694659, upload-time = "2025-08-07T13:53:17.759Z" }, { url = "https://files.pythonhosted.org/packages/92/2e/ea25914b1ebfde93b6fc4ff46d6864564fba59024e928bdc7de475affc25/greenlet-3.2.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:061dc4cf2c34852b052a8620d40f36324554bc192be474b9e9770e8c042fd735", size = 695355, upload-time = "2025-08-07T13:18:34.517Z" }, { url = "https://files.pythonhosted.org/packages/72/60/fc56c62046ec17f6b0d3060564562c64c862948c9d4bc8aa807cf5bd74f4/greenlet-3.2.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:44358b9bf66c8576a9f57a590d5f5d6e72fa4228b763d0e43fee6d3b06d3a337", size = 657512, upload-time = "2025-08-07T13:18:33.969Z" }, + { url = "https://files.pythonhosted.org/packages/23/6e/74407aed965a4ab6ddd93a7ded3180b730d281c77b765788419484cdfeef/greenlet-3.2.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:2917bdf657f5859fbf3386b12d68ede4cf1f04c90c3a6bc1f013dd68a22e2269", size = 1612508, upload-time = "2025-11-04T12:42:23.427Z" }, + { url = "https://files.pythonhosted.org/packages/0d/da/343cd760ab2f92bac1845ca07ee3faea9fe52bee65f7bcb19f16ad7de08b/greenlet-3.2.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:015d48959d4add5d6c9f6c5210ee3803a830dce46356e3bc326d6776bde54681", size = 1680760, upload-time = "2025-11-04T12:42:25.341Z" }, { url = "https://files.pythonhosted.org/packages/e3/a5/6ddab2b4c112be95601c13428db1d8b6608a8b6039816f2ba09c346c08fc/greenlet-3.2.4-cp314-cp314-win_amd64.whl", hash = "sha256:e37ab26028f12dbb0ff65f29a8d3d44a765c61e729647bf2ddfbbed621726f01", size = 303425, upload-time = "2025-08-07T13:32:27.59Z" }, ] @@ -1946,7 +1950,7 @@ wheels = [ [[package]] name = "langchain" version = "1.0.3" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Flangchain_v1#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Flangchain_v1#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "langchain-core" }, { name = "langgraph" }, @@ -1956,7 +1960,7 @@ dependencies = [ [[package]] name = "langchain-anthropic" version = "1.0.1" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fanthropic#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fanthropic#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "anthropic" }, { name = "langchain-core" }, @@ -1976,7 +1980,7 @@ dependencies = [ [[package]] name = "langchain-aws" version = "1.0.0" -source = { git = "https://github.com/langchain-ai/langchain-aws.git?subdirectory=libs%2Faws#38051e4a5512d745f7719724656d491b6a560fbb" } +source = { git = "https://github.com/langchain-ai/langchain-aws.git?subdirectory=libs%2Faws#b550f0d3da3a18293723478f733a853834ecfc9d" } dependencies = [ { name = "boto3" }, { name = "langchain-core" }, @@ -2016,7 +2020,7 @@ dependencies = [ [[package]] name = "langchain-chroma" version = "1.0.0" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fchroma#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fchroma#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "chromadb" }, { name = "langchain-core" }, @@ -2026,7 +2030,7 @@ dependencies = [ [[package]] name = "langchain-classic" version = "1.0.0" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Flangchain#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Flangchain#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "langchain-core" }, { name = "langchain-text-splitters" }, @@ -2059,7 +2063,7 @@ dependencies = [ [[package]] name = "langchain-core" version = "1.0.3" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fcore#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fcore#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "jsonpatch" }, { name = "langsmith" }, @@ -2083,7 +2087,7 @@ dependencies = [ [[package]] name = "langchain-deepseek" version = "1.0.0" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fdeepseek#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fdeepseek#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "langchain-core" }, { name = "langchain-openai" }, @@ -2092,7 +2096,7 @@ dependencies = [ [[package]] name = "langchain-exa" version = "1.0.0" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fexa#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fexa#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "exa-py" }, { name = "langchain-core" }, @@ -2101,7 +2105,7 @@ dependencies = [ [[package]] name = "langchain-fireworks" version = "1.0.0" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Ffireworks#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Ffireworks#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "aiohttp" }, { name = "fireworks-ai" }, @@ -2113,7 +2117,7 @@ dependencies = [ [[package]] name = "langchain-google-community" version = "3.0.0" -source = { git = "https://github.com/langchain-ai/langchain-google.git?subdirectory=libs%2Fcommunity#16c14b61f68dafafca5147a064a5088168ed9b2e" } +source = { git = "https://github.com/langchain-ai/langchain-google.git?subdirectory=libs%2Fcommunity#94343c78ccba416435cc83e30aac10c3f74e6aa9" } dependencies = [ { name = "google-api-core" }, { name = "google-api-python-client" }, @@ -2126,8 +2130,8 @@ dependencies = [ [[package]] name = "langchain-google-genai" -version = "3.0.0" -source = { git = "https://github.com/langchain-ai/langchain-google.git?subdirectory=libs%2Fgenai#16c14b61f68dafafca5147a064a5088168ed9b2e" } +version = "3.0.1" +source = { git = "https://github.com/langchain-ai/langchain-google.git?subdirectory=libs%2Fgenai#94343c78ccba416435cc83e30aac10c3f74e6aa9" } dependencies = [ { name = "filetype" }, { name = "google-ai-generativelanguage" }, @@ -2137,8 +2141,8 @@ dependencies = [ [[package]] name = "langchain-google-vertexai" -version = "3.0.1" -source = { git = "https://github.com/langchain-ai/langchain-google.git?subdirectory=libs%2Fvertexai#16c14b61f68dafafca5147a064a5088168ed9b2e" } +version = "3.0.2" +source = { git = "https://github.com/langchain-ai/langchain-google.git?subdirectory=libs%2Fvertexai#94343c78ccba416435cc83e30aac10c3f74e6aa9" } dependencies = [ { name = "bottleneck" }, { name = "google-cloud-aiplatform" }, @@ -2155,7 +2159,7 @@ dependencies = [ [[package]] name = "langchain-groq" version = "1.0.0" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fgroq#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fgroq#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "groq" }, { name = "langchain-core" }, @@ -2164,7 +2168,7 @@ dependencies = [ [[package]] name = "langchain-huggingface" version = "1.0.1" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fhuggingface#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fhuggingface#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "huggingface-hub" }, { name = "langchain-core" }, @@ -2202,7 +2206,7 @@ dependencies = [ [[package]] name = "langchain-mistralai" version = "1.0.1" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fmistralai#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fmistralai#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "httpx" }, { name = "httpx-sse" }, @@ -2225,7 +2229,7 @@ dependencies = [ [[package]] name = "langchain-nomic" version = "1.0.0" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fnomic#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fnomic#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "langchain-core" }, { name = "nomic" }, @@ -2235,7 +2239,7 @@ dependencies = [ [[package]] name = "langchain-ollama" version = "1.0.0" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Follama#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Follama#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "langchain-core" }, { name = "ollama" }, @@ -2244,7 +2248,7 @@ dependencies = [ [[package]] name = "langchain-openai" version = "1.0.2" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fopenai#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fopenai#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "langchain-core" }, { name = "openai" }, @@ -2254,7 +2258,7 @@ dependencies = [ [[package]] name = "langchain-perplexity" version = "1.0.0" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fperplexity#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fperplexity#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "langchain-core" }, { name = "openai" }, @@ -2263,7 +2267,7 @@ dependencies = [ [[package]] name = "langchain-prompty" version = "1.0.0" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fprompty#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fprompty#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "langchain-core" }, { name = "pyyaml" }, @@ -2272,7 +2276,7 @@ dependencies = [ [[package]] name = "langchain-qdrant" version = "1.1.0" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fqdrant#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fqdrant#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "langchain-core" }, { name = "pydantic" }, @@ -2411,7 +2415,7 @@ requires-dist = [ [[package]] name = "langchain-tavily" version = "0.2.12" -source = { git = "https://github.com/tavily-ai/langchain-tavily.git#e12637c1bd2ea6f935cd3a2bda7f96b6cd7a4fba" } +source = { git = "https://github.com/tavily-ai/langchain-tavily.git#c2508933a7a9c9d25924dfefb49eeff6e0dd64be" } dependencies = [ { name = "aiohttp" }, { name = "langchain" }, @@ -2422,7 +2426,7 @@ dependencies = [ [[package]] name = "langchain-tests" version = "1.0.1" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fstandard-tests#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fstandard-tests#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "httpx" }, { name = "langchain-core" }, @@ -2440,7 +2444,7 @@ dependencies = [ [[package]] name = "langchain-text-splitters" version = "1.0.0" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Ftext-splitters#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Ftext-splitters#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "langchain-core" }, ] @@ -2448,7 +2452,7 @@ dependencies = [ [[package]] name = "langchain-xai" version = "1.0.0" -source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fxai#dfb05a7fa053434a155a16df55c409f607343ff1" } +source = { git = "https://github.com/langchain-ai/langchain.git?subdirectory=libs%2Fpartners%2Fxai#c6547f58b78a813afd472bf67b740fa9c82cd880" } dependencies = [ { name = "aiohttp" }, { name = "langchain-core" }, @@ -2481,7 +2485,7 @@ dependencies = [ [[package]] name = "langgraph-checkpoint-aws" version = "1.0.0" -source = { git = "https://github.com/langchain-ai/langchain-aws.git?subdirectory=libs%2Flanggraph-checkpoint-aws#38051e4a5512d745f7719724656d491b6a560fbb" } +source = { git = "https://github.com/langchain-ai/langchain-aws.git?subdirectory=libs%2Flanggraph-checkpoint-aws#b550f0d3da3a18293723478f733a853834ecfc9d" } dependencies = [ { name = "boto3" }, { name = "langgraph" }, diff --git a/src/docs.json b/src/docs.json index 6dc2f1bb15..a6da682225 100644 --- a/src/docs.json +++ b/src/docs.json @@ -298,8 +298,7 @@ "oss/python/integrations/providers/aws", "oss/python/integrations/providers/huggingface", "oss/python/integrations/providers/microsoft", - "oss/python/integrations/providers/ollama", - "oss/python/integrations/providers/ibm" + "oss/python/integrations/providers/ollama" ] }, { diff --git a/src/oss/python/integrations/chat/ibm_watsonx.mdx b/src/oss/python/integrations/chat/ibm_watsonx.mdx index 371014759e..544084e7aa 100644 --- a/src/oss/python/integrations/chat/ibm_watsonx.mdx +++ b/src/oss/python/integrations/chat/ibm_watsonx.mdx @@ -12,7 +12,7 @@ The aim of these examples is to show how to communicate with `watsonx.ai` models | Class | Package | Local | Serializable | [JS support](https://js.langchain.com/docs/integrations/chat/ibm/) | Downloads | Version | | :--- | :--- | :---: | :---: | :---: | :---: | :---: | -| [ChatWatsonx](https://python.langchain.com/api_reference/ibm/chat_models/langchain_ibm.chat_models.ChatWatsonx.html) | [langchain-ibm](https://python.langchain.com/api_reference/ibm/index.html) | ❌ | ❌ | ✅ | ![PyPI - Downloads](https://img.shields.io/pypi/dm/langchain-ibm?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/langchain-ibm?style=flat-square&label=%20) | +| [`ChatWatsonx`](https://reference.langchain.com/python/integrations/langchain_ibm/ChatWatsonx/) | [`langchain-ibm`](https://reference.langchain.com/python/integrations/langchain_ibm/) | ❌ | ❌ | ✅ | ![PyPI - Downloads](https://img.shields.io/pypi/dm/langchain-ibm?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/langchain-ibm?style=flat-square&label=%20) | ### Model features @@ -307,4 +307,4 @@ ai_msg.tool_calls ## API reference -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). +For detailed documentation of all `ChatWatsonx` features and configurations head to the [API reference](https://reference.langchain.com/python/integrations/langchain_ibm/ChatWatsonx/). diff --git a/src/oss/python/integrations/llms/ibm_watsonx.mdx b/src/oss/python/integrations/llms/ibm_watsonx.mdx index b71d5c7193..02de1224b5 100644 --- a/src/oss/python/integrations/llms/ibm_watsonx.mdx +++ b/src/oss/python/integrations/llms/ibm_watsonx.mdx @@ -2,7 +2,7 @@ title: IBM watsonx.ai --- ->[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. +>[`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. This example shows how to communicate with `watsonx.ai` models using `LangChain`. @@ -12,7 +12,7 @@ This example shows how to communicate with `watsonx.ai` models using `LangChain` | Class | Package | Local | Serializable | [JS support](https://js.langchain.com/docs/integrations/llms/ibm/) | Downloads | Version | | :--- | :--- | :---: | :---: | :---: | :---: | :---: | -| [WatsonxLLM](https://python.langchain.com/api_reference/ibm/llms/langchain_ibm.llms.WatsonxLLM.html) | [langchain-ibm](https://python.langchain.com/api_reference/ibm/index.html) | ❌ | ❌ | ✅ | ![PyPI - Downloads](https://img.shields.io/pypi/dm/langchain-ibm?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/langchain-ibm?style=flat-square&label=%20) | +| [`WatsonxLLM`](https://reference.langchain.com/python/integrations/langchain_ibm/WatsonxLLM/) | [`langchain-ibm`](https://reference.langchain.com/python/integrations/langchain_ibm/) | ❌ | ❌ | ✅ | ![PyPI - Downloads](https://img.shields.io/pypi/dm/langchain-ibm?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/langchain-ibm?style=flat-square&label=%20) | ## Setup @@ -211,4 +211,4 @@ llm_chain.invoke(topic) ## API reference -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). +For detailed documentation of all `WatsonxLLM` features and configurations head to the [API reference](https://reference.langchain.com/python/integrations/langchain_ibm/WatsonxLLM/). diff --git a/src/oss/python/integrations/providers/ibm.mdx b/src/oss/python/integrations/providers/ibm.mdx index c57405d4a4..32c1172a16 100644 --- a/src/oss/python/integrations/providers/ibm.mdx +++ b/src/oss/python/integrations/providers/ibm.mdx @@ -6,6 +6,7 @@ LangChain integrations related to IBM technologies, including the [IBM watsonx.ai](https://www.ibm.com/products/watsonx-ai) platform and DB2 database. ## Watsonx AI + IBM® watsonx.ai™ AI studio is part of the IBM [watsonx](https://www.ibm.com/watsonx)™ AI and data platform, bringing together new generative AI capabilities powered by [foundation models](https://www.ibm.com/products/watsonx-ai/foundation-models) and traditional machine learning (ML) 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,28 +18,6 @@ Watsonx.ai offers: - **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. - **Hybrid, multi-cloud deployments:** IBM provides the flexibility to integrate and deploy your AI workloads into your hybrid-cloud stack of choice. - -### Installation and Setup - -Install the integration package with: - - -```bash pip -pip install -qU langchain-ibm -``` - -```bash uv -uv add langchain-ibm -``` - - -Get an IBM watsonx.ai api key and set it as an environment variable (`WATSONX_API_KEY`) -```python -import os - -os.environ["WATSONX_API_KEY"] = "your IBM watsonx.ai api key" -``` - ### Model interfaces @@ -75,21 +54,11 @@ The IBM DB2 relational database v12.1.2 and above offers the abilities of vector and vector search. Installation of `langchain-db2` package will give LangChain users the support of DB2 vector store and vector search. -### Installation and Setup `langchain-db2` is a separate package for Vector Store feature only, and can be run without the `langchain-ibm` package. - -```bash pip -pip install -U langchain-db2 -``` - -```bash uv -uv add langchain-db2 -``` - ### Vector stores diff --git a/src/oss/python/integrations/retrievers/ibm_watsonx_ranker.mdx b/src/oss/python/integrations/retrievers/ibm_watsonx_ranker.mdx index 244938ff3b..242734567d 100644 --- a/src/oss/python/integrations/retrievers/ibm_watsonx_ranker.mdx +++ b/src/oss/python/integrations/retrievers/ibm_watsonx_ranker.mdx @@ -2,7 +2,7 @@ title: IBM watsonx.ai --- ->WatsonxRerank is a wrapper for IBM [watsonx.ai](https://www.ibm.com/products/watsonx-ai) foundation models. +>`WatsonxRerank` is a wrapper for IBM [watsonx.ai](https://www.ibm.com/products/watsonx-ai) foundation models. This notebook shows how to use [watsonx's rerank endpoint](https://cloud.ibm.com/apidocs/watsonx-ai#text-rerank) in a retriever. @@ -12,7 +12,7 @@ This notebook shows how to use [watsonx's rerank endpoint](https://cloud.ibm.com | Class | Package | [JS support](https://js.langchain.com/docs/integrations/document_compressors/ibm/) | Downloads | Version | | :--- | :--- | :---: | :---: | :---: | -| [WatsonxRerank](https://python.langchain.com/api_reference/ibm/rerank/langchain_ibm.rerank.WatsonxRerank.html) | [langchain-ibm](https://python.langchain.com/api_reference/ibm/index.html) | ✅ | ![PyPI - Downloads](https://img.shields.io/pypi/dm/langchain-ibm?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/langchain-ibm?style=flat-square&label=%20) | +| [`WatsonxRerank`](https://reference.langchain.com/python/integrations/langchain_ibm/WatsonxRerank/) | [`langchain-ibm`](https://reference.langchain.com/python/integrations/langchain_ibm/) | ✅ | ![PyPI - Downloads](https://img.shields.io/pypi/dm/langchain-ibm?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/langchain-ibm?style=flat-square&label=%20) | ## Setup @@ -267,4 +267,4 @@ chain.invoke(query) ## API reference -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). +For detailed documentation of all `WatsonxRerank` features and configurations head to the [API reference](https://reference.langchain.com/python/integrations/langchain_ibm/WatsonxRerank/). diff --git a/src/oss/python/integrations/text_embedding/ibm_watsonx.mdx b/src/oss/python/integrations/text_embedding/ibm_watsonx.mdx index f0bc9bc99f..c3e70050ba 100644 --- a/src/oss/python/integrations/text_embedding/ibm_watsonx.mdx +++ b/src/oss/python/integrations/text_embedding/ibm_watsonx.mdx @@ -2,7 +2,7 @@ title: IBM watsonx.ai --- ->WatsonxEmbeddings is a wrapper for IBM [watsonx.ai](https://www.ibm.com/products/watsonx-ai) foundation models. +>`WatsonxEmbeddings` is a wrapper for IBM [watsonx.ai](https://www.ibm.com/products/watsonx-ai) foundation models. This example shows how to communicate with `watsonx.ai` models using `LangChain`. @@ -183,4 +183,4 @@ doc_result[0][:5] ## API reference -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). +For detailed documentation of all `WatsonxEmbeddings` features and configurations head to the [API reference](https://reference.langchain.com/python/integrations/langchain_ibm/WatsonxEmbeddings/). diff --git a/src/oss/python/integrations/tools/ibm_watsonx.mdx b/src/oss/python/integrations/tools/ibm_watsonx.mdx index 89715ddeea..3b209378cd 100644 --- a/src/oss/python/integrations/tools/ibm_watsonx.mdx +++ b/src/oss/python/integrations/tools/ibm_watsonx.mdx @@ -2,7 +2,7 @@ title: IBM watsonx.ai --- ->WatsonxToolkit is a wrapper for IBM [watsonx.ai](https://www.ibm.com/products/watsonx-ai) Toolkit. +>`WatsonxToolkit` is a wrapper for IBM [watsonx.ai](https://www.ibm.com/products/watsonx-ai) Toolkit. This example shows how to use `watsonx.ai` Toolkit using `LangChain`. @@ -12,7 +12,7 @@ This example shows how to use `watsonx.ai` Toolkit using `LangChain`. | Class | Package | Serializable | [JS support](https://js.langchain.com/docs/integrations/toolkits/ibm/) | Downloads | Version | | :--- | :--- | :---: | :---: | :---: | :---: | -| [WatsonxToolkit](https://python.langchain.com/api_reference/ibm/agent_toolkits/langchain_ibm.agent_toolkits.utility.toolkit.WatsonxToolkit.html) | [langchain-ibm](https://python.langchain.com/api_reference/ibm/index.html) | ❌ | ✅ | ![PyPI - Downloads](https://img.shields.io/pypi/dm/langchain-ibm?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/langchain-ibm?style=flat-square&label=%20) | +| [`WatsonxToolkit`](https://reference.langchain.com/python/integrations/langchain_ibm/WatsonxToolkit/) | [`langchain-ibm`](https://reference.langchain.com/python/integrations/langchain_ibm/) | ❌ | ✅ | ![PyPI - Downloads](https://img.shields.io/pypi/dm/langchain-ibm?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/langchain-ibm?style=flat-square&label=%20) | ## Setup @@ -302,4 +302,4 @@ The current weather in Boston is -1°C with 0mm of rain, a relative humidity of ## API reference -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). +For detailed documentation of all `WatsonxToolkit` features and configurations head to the [API reference](https://reference.langchain.com/python/integrations/langchain_ibm/WatsonxToolkit/).