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.
Metadata
Release files for swarmauri_vectorstore_redis 0.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swarmauri_vectorstore_redis-0.9.2.tar.gz | 9.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swarmauri_vectorstore_redis-0.9.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.9 kB
Release files / swarmauri_vectorstore_redis-0.9.2.tar.gz
| Download URL | swarmauri_vectorstore_redis-0.9.2.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b5e7bbb0e82a86c988ab5c2b450fdcc692c13aa4d8c44c19c281706be4b0b7d
|
|
BLAKE2b-256 checksum How to use checksums |
f82f03169b07f6328d6c04088ee4e22dcb80a62fec4b6d1822392a93ac436f8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","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}
|
Release files / swarmauri_vectorstore_redis-0.9.2-py3-none-any.whl
| Download URL | swarmauri_vectorstore_redis-0.9.2-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd590f5b3d56899a180840d6829f614c47128f60127531032651eb9a3b650eeb
|
|
BLAKE2b-256 checksum How to use checksums |
0b797049b94cd42c70dfff622557551109014db3d9ef038c09e5f29b3634312f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","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}
|