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.
pip install -U langchain-vdmsThe VDMS class exposes the VDMS vector store.
from langchain_vdms import VDMSThe VDMS_Client function connects to VDMS server using VDMS client.
from langchain_vdms.vectorstores import VDMS_ClientThe VDMS_Utils class exposes a utility with helpful functions related to VDMS.
from langchain_vdms.vectorstores import VDMS_UtilsThis 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.
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.