https://github.com/intellabs/langchain-vdms
https://github.com/intellabs/langchain-vdms
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/intellabs/langchain-vdms
- Owner: IntelLabs
- License: mit
- Created: 2025-02-04T22:09:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-17T23:07:40.000Z (over 1 year ago)
- Last Synced: 2025-03-17T23:34:51.453Z (over 1 year ago)
- Language: Python
- Size: 180 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# langchain-vdms
This package contains the LangChain integration with [VDMS](https://github.com/IntelLabs/vdms).
## Installation
```bash
pip install -U langchain-vdms
```
## VDMS vector database
The ``VDMS`` class exposes the VDMS vector store.
```python
from langchain_vdms import VDMS
```
The ``VDMS_Client`` function connects to VDMS server using VDMS client.
```python
from langchain_vdms.vectorstores import VDMS_Client
```
The ``VDMS_Utils`` class exposes a utility with helpful functions related to VDMS.
```python
from langchain_vdms.vectorstores import VDMS_Utils
```
## Example Usage
This example initiates the VDMS vector store and uses the VDMS Client to connect to a VDMS server on `localhost` using port `55555`.
```python
from langchain_vdms.vectorstores import VDMS, VDMS_Client
embeddings = ... # use a LangChain Embeddings class
vectorstore_client = VDMS_Client("localhost", 55555)
vectorstore = VDMS(
client=vectorstore_client,
collection_name="foo",
embedding=embeddings,
engine="FaissFlat",
distance_strategy="L2",
)
```
See additional usage [here](https://python.langchain.com/docs/integrations/vectorstores/vdms/).