1
1
# IBM
2
2
3
- The ` LangChain ` integrations related to [ IBM watsonx.ai] ( https://www.ibm.com/products/watsonx-ai ) platform.
3
+ LangChain integrations related to IBM technologies, including the
4
+ [ IBM watsonx.ai] ( https://www.ibm.com/products/watsonx-ai ) platform and DB2 database.
4
5
6
+ ## Watsonx AI
5
7
IBM® watsonx.ai™ AI studio is part of the IBM [ watsonx] ( https://www.ibm.com/watsonx ) ™ AI and data platform, bringing together new generative
6
8
AI capabilities powered by [ foundation models] ( https://www.ibm.com/products/watsonx-ai/foundation-models ) and traditional machine learning (ML)
7
9
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
@@ -14,7 +16,7 @@ Watsonx.ai offers:
14
16
- ** Hybrid, multi-cloud deployments:** IBM provides the flexibility to integrate and deploy your AI workloads into your hybrid-cloud stack of choice.
15
17
16
18
17
- ## Installation and Setup
19
+ ### Installation and Setup
18
20
19
21
Install the integration package with
20
22
``` bash
@@ -28,52 +30,75 @@ import os
28
30
os.environ[" WATSONX_APIKEY" ] = " your IBM watsonx.ai api key"
29
31
```
30
32
31
- ## Chat Model
33
+ ### Chat Model
32
34
33
- ### ChatWatsonx
35
+ #### ChatWatsonx
34
36
35
37
See a [ usage example] ( /docs/integrations/chat/ibm_watsonx ) .
36
38
37
39
``` python
38
40
from langchain_ibm import ChatWatsonx
39
41
```
40
42
41
- ## LLMs
43
+ ### LLMs
42
44
43
- ### WatsonxLLM
45
+ #### WatsonxLLM
44
46
45
47
See a [ usage example] ( /docs/integrations/llms/ibm_watsonx ) .
46
48
47
49
``` python
48
50
from langchain_ibm import WatsonxLLM
49
51
```
50
52
51
- ## Embedding Models
53
+ ### Embedding Models
52
54
53
- ### WatsonxEmbeddings
55
+ #### WatsonxEmbeddings
54
56
55
57
See a [ usage example] ( /docs/integrations/text_embedding/ibm_watsonx ) .
56
58
57
59
``` python
58
60
from langchain_ibm import WatsonxEmbeddings
59
61
```
60
62
61
- ## Reranker
63
+ ### Reranker
62
64
63
- ### WatsonxRerank
65
+ #### WatsonxRerank
64
66
65
67
See a [ usage example] ( /docs/integrations/retrievers/ibm_watsonx_ranker ) .
66
68
67
69
``` python
68
70
from langchain_ibm import WatsonxRerank
69
71
```
70
72
71
- ## Toolkit
73
+ ### Toolkit
72
74
73
- ### WatsonxToolkit
75
+ #### WatsonxToolkit
74
76
75
77
See a [ usage example] ( /docs/integrations/tools/ibm_watsonx ) .
76
78
77
79
``` python
78
80
from langchain_ibm import WatsonxToolkit
79
81
```
82
+
83
+ ## DB2
84
+
85
+ ### Vector stores
86
+
87
+ #### IBM DB2 Vector Store and Vector Search
88
+
89
+ The IBM DB2 relational database v12.1.2 and above offers the abilities of vector store
90
+ and vector search. Installation of ` langchain-db2 ` package will give Langchain users
91
+ the support of DB2 vector store and vector search.
92
+
93
+ See detailed usage examples in the guide [ here] ( /docs/integrations/vectorstores/db2 ) .
94
+
95
+ Installation: This is a seperate package for vector store feature only and can be run
96
+ without the ` langchain-ibm ` package.
97
+ ``` bash
98
+ pip install -U langchain-db2
99
+ ```
100
+ Usage:
101
+ ``` python
102
+ from langchain_db2 import db2vs
103
+ from langchain_db2.db2vs import DB2VS
104
+ ```
0 commit comments