An integration package connecting VDMS and LangChain
Project description
Langchain VDMS
This package contains the VDMS integration package for LangChain:
- langchain-vdms - An integration between LangChain and VDMS which enables retrievers and vector search for AI applications.
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.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_vdms-0.2.0.tar.gz.
File metadata
- Download URL: langchain_vdms-0.2.0.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.13 Linux/5.4.0-216-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eb4b5a48d719e55068379077c7f5ef4c13613b4d4f7bd679a1d08e4ede8baa0
|
|
| MD5 |
58209076a945f80457e27ea13743df13
|
|
| BLAKE2b-256 |
56d11b5edca6b7486f4f5b6ab55316634597f488ecd832d4704e0d94f3468dd2
|
File details
Details for the file langchain_vdms-0.2.0-py3-none-any.whl.
File metadata
- Download URL: langchain_vdms-0.2.0-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.13 Linux/5.4.0-216-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3792c3e3ac9e92ac6dbc34b0dbf8484f8adf84bc3b1ee0c35a1f6d78e7274ec4
|
|
| MD5 |
19bbdc3eecd83f74114ce20b311a7dcf
|
|
| BLAKE2b-256 |
a2c6e6f36bd55129790570aa22682ce301a26c1ba76c29a52fd63dc5e9630931
|