Skip to content

IntelLabs/langchain-vdms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published