Skip to main content

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


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.2.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_vdms-0.1.2-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file langchain_vdms-0.1.2.tar.gz.

File metadata

  • Download URL: langchain_vdms-0.1.2.tar.gz
  • Upload date:
  • Size: 18.3 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

Hashes for langchain_vdms-0.1.2.tar.gz
Algorithm Hash digest
SHA256 938d407944da38a406165be4871966e1a8775fabd61d2f8e6567bf498e3fe022
MD5 d699266d3cb6a53f45c316d5b6987e1c
BLAKE2b-256 ba0aa2c71cb6c6266f722be205b0038748a15414d160df3ce08cabd3cef6d694

See more details on using hashes here.

File details

Details for the file langchain_vdms-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: langchain_vdms-0.1.2-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

Hashes for langchain_vdms-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f7309d920f0607420b0cb60ccb67d5d82d109982f039ced140232a3ef5a6fa28
MD5 5dcc871136a2b6da2eedff11d54d2a14
BLAKE2b-256 c9b0cc8dab7fd913596f69f747fe714cb0fffcd7e32742668f9cd6dd6b560e31

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page