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.5.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.

swarmauri_vectorstore_redis-0.7.5-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_vectorstore_redis-0.7.5.tar.gz.

File metadata

File hashes

Hashes for swarmauri_vectorstore_redis-0.7.5.tar.gz
Algorithm Hash digest
SHA256 0f9dfc2695f8746718a182a1c62ced745a247ba30b7f44e45a9738d013b7f10d
MD5 253a4fe5b616828ce7b624ab8c202689
BLAKE2b-256 e4a154d3ddb3a8e1ebee40896095375958486f0c15b6fb1c6127566b0c84cb81

See more details on using hashes here.

File details

Details for the file swarmauri_vectorstore_redis-0.7.5-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_vectorstore_redis-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4abae9f662ddb2d9bacf0f31523c0cdf60a727f549f24fe984024a458c09de01
MD5 65de61ec326cea9468ad1ed9e82d76d2
BLAKE2b-256 03a8851f541afd652b4f917e606dc765fe35746a84651ca218e4ec576885ca2c

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