An integration package connecting VDMS and LangChain
Project description
langchain-vdms
This package contains the LangChain integration with VDMS.
Installation
pip install -U langchain-vdms
VDMS vector database
The VDMS
class exposes the VDMS vector store.
from langchain_vdms import VDMS
The VDMS_Client
function connects to VDMS server using VDMS client.
from langchain_vdms.vectorstores import VDMS_Client
The VDMS_Utils
class exposes a utility with helpful functions related to VDMS.
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
.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
langchain_vdms-0.1.4.tar.gz
(18.2 kB
view details)
Built Distribution
File details
Details for the file langchain_vdms-0.1.4.tar.gz
.
File metadata
- Download URL: langchain_vdms-0.1.4.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.11.10 Linux/5.4.0-205-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e7b69ea601814e5513a03c2786419a406b5d8264fbe8260515bd562dff846a0a
|
|
MD5 |
5270d7a3354273f92856e3c8b38d8c0c
|
|
BLAKE2b-256 |
cd3e91c83cc7168b5007d78a8a8780de604b41bfefcf1501b0512e167c4c04da
|
File details
Details for the file langchain_vdms-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: langchain_vdms-0.1.4-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.11.10 Linux/5.4.0-205-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8b35957116d99c2d7989c012580c5d1a9d9123c2f8ea0f691c6e036b3498ef1e
|
|
MD5 |
be6434d7d32dcba74e660f80b302b89e
|
|
BLAKE2b-256 |
2e8c6398c5cdbf90037ad59098171aa3423a65ac952a50d87ff3d0c42afd82d3
|