Skip to main content

Swarmauri Redis Vector Store

Project description

Swarmauri 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.9.0.tar.gz (9.1 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.9.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swarmauri_vectorstore_redis-0.9.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_vectorstore_redis-0.9.0.tar.gz
Algorithm Hash digest
SHA256 d8a60d365dcf4f16af544ec75ca91c4c9a60645b8c9366f1adaf72df3b5f2866
MD5 a8257918e99c4cfa3f5c1f341fedc140
BLAKE2b-256 781131a691cb23e027db5a760bb7f8381ff3e46f3371ff708863353537f018ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swarmauri_vectorstore_redis-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_vectorstore_redis-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c277c8ba7bd99233d092e4c3d3e74de46d325b5c2ad8d2de13e4763ad102dd3d
MD5 be19c16b92d79730826039da9058f2ba
BLAKE2b-256 6583d0efa3eca1a704e940fbb7e62e17a95b8995842ac6b663a88a6a89ec4ab8

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