From 98851d9905c7e180b22f7f8ed99d7b2c45ae9be2 Mon Sep 17 00:00:00 2001 From: YIWEI-HE Date: Thu, 24 Apr 2025 18:26:18 -0700 Subject: [PATCH] Create a seperate providers/db2.mdx for the check. --- docs/docs/integrations/providers/db2.mdx | 18 ++++++++++++++++++ docs/docs/integrations/providers/ibm.mdx | 17 ----------------- docs/docs/integrations/vectorstores/db2.ipynb | 3 ++- 3 files changed, 20 insertions(+), 18 deletions(-) create mode 100644 docs/docs/integrations/providers/db2.mdx diff --git a/docs/docs/integrations/providers/db2.mdx b/docs/docs/integrations/providers/db2.mdx new file mode 100644 index 00000000000..df9fdca66a5 --- /dev/null +++ b/docs/docs/integrations/providers/db2.mdx @@ -0,0 +1,18 @@ +# IBM 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 example in Jupyter Notebook [/docs/integrations/vectorstores/db2.ipynb](/docs/integrations/vectorstores/db2.ipynb). + +Installation: This is a seperate package for vector store feature only and can be run without the `langchain-ibm` package. +```python +pip install langchain-db2 +``` +Usage: +``` +from langchain_db2 import db2vs +from langchain_db2.db2vs import DB2VS +``` \ No newline at end of file diff --git a/docs/docs/integrations/providers/ibm.mdx b/docs/docs/integrations/providers/ibm.mdx index f1dadce3f1b..da59bc82edd 100644 --- a/docs/docs/integrations/providers/ibm.mdx +++ b/docs/docs/integrations/providers/ibm.mdx @@ -77,20 +77,3 @@ See a [usage example](/docs/integrations/tools/ibm_watsonx). ```python from langchain_ibm import WatsonxToolkit ``` - -## Vector stores - -### IBM DB2 Vector Store and Vector Search - -The IBM DB2 relational database v12.1.2+ offer the -See detailed usage example in Jupyter Notebook [/docs/integrations/vectorstores/db2.ipynb](/docs/integrations/vectorstores/db2.ipynb). - -Installation: This is a seperate package for vector store feature only and can be run without the `langchain-ibm` package. -```python -pip install langchain-db2 -``` -Usage: -``` -from langchain_db2 import db2vs -from langchain_db2.db2vs import DB2VS -``` \ No newline at end of file diff --git a/docs/docs/integrations/vectorstores/db2.ipynb b/docs/docs/integrations/vectorstores/db2.ipynb index e9489819de1..d7472c3ca07 100644 --- a/docs/docs/integrations/vectorstores/db2.ipynb +++ b/docs/docs/integrations/vectorstores/db2.ipynb @@ -14,7 +14,8 @@ "id": "452c4bd6", "metadata": {}, "source": [ - "LangChain's DB2 integration (langchain-db2) provides vector store and vector search capabilities for working with IBM relational database DB2 version v12.1.2 and above, distributed under the MIT license. Users can use the provided implementations as-is or customize them for specific needs.\n", + "LangChain's DB2 integration (langchain-db2) provides vector store and vector search capabilities from IBM relational database DB2 version v12.1.2 and above. It is distributed under the MIT license, users can use the provided implementations as-is or customize them for specific needs.\n", + " \n", " Key features include:\n", "\n", " * Vector storage with metadata\n",