Skip to main content

Swarmauri Redis Vector Store

Project description

Swamauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_vectorstore_redis


Swarmauri Vectorstore Redis

A Redis-based vector store implementation for the Swarmauri SDK that enables efficient storage and retrieval of document embeddings.

Installation

pip install swarmauri_vectorstore_redis

Usage

Basic example of using RedisVectorStore:

from swarmauri.vector_stores.RedisVectorStore import RedisVectorStore
from swarmauri.documents.Document import Document

# Initialize the vector store
vector_store = RedisVectorStore(
    redis_host="localhost",
    redis_port=6379,
    redis_password="your_password",
    embedding_dimension=8000
)

# Add documents
document = Document(
    id="doc1",
    content="Sample document content",
    metadata={"category": "sample"}
)
vector_store.add_document(document)

# Retrieve similar documents
similar_docs = vector_store.retrieve("sample content", top_k=5)

Want to help?

If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swarmauri_vectorstore_redis-0.7.4.dev20.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file swarmauri_vectorstore_redis-0.7.4.dev20.tar.gz.

File metadata

File hashes

Hashes for swarmauri_vectorstore_redis-0.7.4.dev20.tar.gz
Algorithm Hash digest
SHA256 f0b3c8de343af5875d35b51aac4e8d055a9f7c18fa12fdc164d2fd7db7773fb9
MD5 cf46cb9ff6b33666c6bcb346507260cc
BLAKE2b-256 1a797694dbf22137fa5a54a31bb604cc7d1c82d182b0a76f67f816cade75dabf

See more details on using hashes here.

File details

Details for the file swarmauri_vectorstore_redis-0.7.4.dev20-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_vectorstore_redis-0.7.4.dev20-py3-none-any.whl
Algorithm Hash digest
SHA256 2e96f22b373a85cb16d681e1b851640f2e659defce7fd40d28e8054b0041339e
MD5 e6e8b78ddf825867589b89b5227bf2b6
BLAKE2b-256 6df237e9006d4bd8f5ddb9715c89d06222775096a1318ee84287f29e9b91025e

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