Using LangChain VDMS Client for Vector Storage
Posted: Feb 22, 2025.
Intel's Visual Data Management System (VDMS) is a powerful storage solution for efficiently accessing and searching visual data. In this guide, we'll explore how to use LangChain's VDMS client to connect to a VDMS server.
What is VDMS_Client?
The VDMS_Client class in LangChain provides a simple interface to connect to a VDMS server instance. VDMS is particularly useful for storing and querying vector embeddings for text, images, and video data. The client handles the connection details and allows you to interact with the VDMS server.
Reference
Parameter | Type | Description |
---|---|---|
host | str | IP address or hostname of the VDMS server (default: 'localhost') |
port | int | Port number to connect to the VDMS server (default: 55555) |
How to Use VDMS_Client
Basic Connection
The most basic usage is creating a connection to a VDMS server:
Using with Vector Store
The VDMS client is typically used in conjunction with LangChain's VDMS vector store implementation. Here's an example:
Advanced Configuration
The client can be used with different VDMS indexing engines and distance metrics:
Working with Multiple Collections
You can create multiple vector stores with different collections using the same client:
The VDMS_Client provides the connection layer to interact with your VDMS server instance. While it's a relatively simple class, it's an essential component for using VDMS as a vector store in your LangChain applications.
Keep in mind that the VDMS server needs to be running and accessible at the specified host and port for the client to work properly. You can run VDMS using Docker or install it directly on your machine following the official installation instructions.
An alternative to LangSmith
Open-source LangChain monitoring, prompt management, and magic. Get started in 2 minutes.
LangChain DocsJoin 10,000+ subscribers
Every 2 weeks, latest model releases and industry news.
An alternative to LangSmith
Open-source LangChain monitoring, prompt management, and magic. Get started in 2 minutes.