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.3.tar.gz (18.2 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.3-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for langchain_vdms-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3742f865bc43d82812ddb07858545a95a09d09a454ff8c0949338817e6009a5a
MD5 f718c12775dbf1cf2fc04db099089453
BLAKE2b-256 24f738dcb5c4c9fd4c06b1a8752dad926feaf502cf690f5c15b25533f58770de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: langchain_vdms-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e17fb6928cdb4333cbc8e8ac76040f01127fa53d4554504ced3e64ed38fa6ddf
MD5 f3dafb7e1308d90400a46be7f77a4724
BLAKE2b-256 23e9ba23de97939cf8ea47ddbd1cf6b6b0529faffe2837cda8d37186065e32ae

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