Skip to content

Commit 375f53a

Browse files
authored
IBM DB2 vector store documentation addition (#31008)
1 parent 9f17fab commit 375f53a

File tree

3 files changed

+432
-12
lines changed

3 files changed

+432
-12
lines changed
Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# IBM
22

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.
45

6+
## Watsonx AI
57
IBM® watsonx.ai™ AI studio is part of the IBM [watsonx](https://www.ibm.com/watsonx)™ AI and data platform, bringing together new generative
68
AI capabilities powered by [foundation models](https://www.ibm.com/products/watsonx-ai/foundation-models) and traditional machine learning (ML)
79
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:
1416
- **Hybrid, multi-cloud deployments:** IBM provides the flexibility to integrate and deploy your AI workloads into your hybrid-cloud stack of choice.
1517

1618

17-
## Installation and Setup
19+
### Installation and Setup
1820

1921
Install the integration package with
2022
```bash
@@ -28,52 +30,75 @@ import os
2830
os.environ["WATSONX_APIKEY"] = "your IBM watsonx.ai api key"
2931
```
3032

31-
## Chat Model
33+
### Chat Model
3234

33-
### ChatWatsonx
35+
#### ChatWatsonx
3436

3537
See a [usage example](/docs/integrations/chat/ibm_watsonx).
3638

3739
```python
3840
from langchain_ibm import ChatWatsonx
3941
```
4042

41-
## LLMs
43+
### LLMs
4244

43-
### WatsonxLLM
45+
#### WatsonxLLM
4446

4547
See a [usage example](/docs/integrations/llms/ibm_watsonx).
4648

4749
```python
4850
from langchain_ibm import WatsonxLLM
4951
```
5052

51-
## Embedding Models
53+
### Embedding Models
5254

53-
### WatsonxEmbeddings
55+
#### WatsonxEmbeddings
5456

5557
See a [usage example](/docs/integrations/text_embedding/ibm_watsonx).
5658

5759
```python
5860
from langchain_ibm import WatsonxEmbeddings
5961
```
6062

61-
## Reranker
63+
### Reranker
6264

63-
### WatsonxRerank
65+
#### WatsonxRerank
6466

6567
See a [usage example](/docs/integrations/retrievers/ibm_watsonx_ranker).
6668

6769
```python
6870
from langchain_ibm import WatsonxRerank
6971
```
7072

71-
## Toolkit
73+
### Toolkit
7274

73-
### WatsonxToolkit
75+
#### WatsonxToolkit
7476

7577
See a [usage example](/docs/integrations/tools/ibm_watsonx).
7678

7779
```python
7880
from langchain_ibm import WatsonxToolkit
7981
```
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

Comments
 (0)