Skip to main content

Ultra-light and blazingly-fast database management system

Project description

ZeusDB

Meta       Documentation Status  ZeusDB 

✨ What is ZeusDB?

ZeusDB is a next-generation, high-performance data platform designed for modern analytics, machine learning, and real-time insights. Born out of the need for scalable, intelligent data infrastructure, ZeusDB fuses the power of traditional databases with the flexibility and performance of modern data architectures. It is built for data teams, engineers, and analysts who need low-latency access to complex analytical workflows, without sacrificing ease of use or developer control.

ZeusDB serves as the backbone for demanding applications, offering advanced features such as:

  • Vector and structured data support to power hybrid search, recommendation engines, and LLM integrations.

  • Real-time analytics with low-latency querying, ideal for dashboards and ML model serving.

  • Extensibility and safety through modern languages like Rust and Python, enabling custom logic and high-performance pipelines.

  • DevOps-ready deployment across cloud or on-prem, with version-controlled configuration, observability hooks, and minimal operational overhead.

Whether you are building a GenAI backend, managing large-scale time-series data, or architecting a unified analytics layer, ZeusDB gives you the foundation to move fast, at scale, with the flexibility of modular architecture.


🛠️ Installation

You can install ZeusDB with 'uv' or alternatively using 'pip'.

Recommended (with uv):

uv pip install zeusdb

Alternatively (using pip):

pip install zeusdb

📦 ZeusDB Vector Database

ZeusDB Vector Database is a high-performance, Rust-powered vector database built for fast and scalable similarity search across high-dimensional embeddings. Designed for modern machine learning and AI workloads, it provides efficient approximate nearest neighbor (ANN) search, supports real-time querying at scale, and seamlessly transitions from in-memory performance to durable disk persistence.

Whether you're powering document search, enabling natural language interfaces, or building custom vector-based tools, ZeusDB offers a lightweight, extensible foundation for high-performance vector retrieval. It’s also well-suited for Retrieval-Augmented Generation (RAG) pipelines, where fast and semantically rich context retrieval is critical to enhancing large language model (LLM) responses.


⭐ Features

"Start fast. Tune deep. Build for any scale."

🐍 User-friendly Python API for adding vectors and running similarity searches

🔥 High-performance Rust backend optimized for speed and concurrency

🔍 Approximate Nearest Neighbor (ANN) search using HNSW for lightning fast results

📦 Product Quantization (PQ) for compact storage, faster distance computations, and scalability for Big Data

📥 Flexible input formats, including native Python types and NumPy arrays

🗂️ Metadata filtering for precise and contextual querying

💾 Save and reload full indexes, metadata, and quantized vectors across systems

📝 Enterprise-grade logging with flexible formats and output targets


🔥 Quick Start Example

# Import the vector database module
from zeusdb import VectorDatabase

# Instantiate the VectorDatabase class
vdb = VectorDatabase()

# Initialize and set up the database resources
index = vdb.create(index_type="hnsw", dim=8)

# Vector embeddings with accompanying ID's and Metadata
records = [
    {"id": "doc_001", "values": [0.1, 0.2, 0.3, 0.1, 0.4, 0.2, 0.6, 0.7], "metadata": {"author": "Alice"}},
    {"id": "doc_002", "values": [0.9, 0.1, 0.4, 0.2, 0.8, 0.5, 0.3, 0.9], "metadata": {"author": "Bob"}},
    {"id": "doc_003", "values": [0.11, 0.21, 0.31, 0.15, 0.41, 0.22, 0.61, 0.72], "metadata": {"author": "Alice"}},
    {"id": "doc_004", "values": [0.85, 0.15, 0.42, 0.27, 0.83, 0.52, 0.33, 0.95], "metadata": {"author": "Bob"}},
    {"id": "doc_005", "values": [0.12, 0.22, 0.33, 0.13, 0.45, 0.23, 0.65, 0.71], "metadata": {"author": "Alice"}},
]

# Upload records using the `add()` method
add_result = index.add(records)
print("\n--- Add Results Summary ---")
print(add_result.summary())

# Perform a similarity search and print the top 2 results
# Query Vector
query_vector = [0.1, 0.2, 0.3, 0.1, 0.4, 0.2, 0.6, 0.7]

# Query with no filter (all documents)
results = index.search(vector=query_vector, filter=None, top_k=2)
print("\n--- Query Results Output - Raw ---")
print(results)

print("\n--- Query Results Output - Formatted ---")
for i, res in enumerate(results, 1):
    print(f"{i}. ID: {res['id']}, Score: {res['score']:.4f}, Metadata: {res['metadata']}")

Output

--- Add Results Summary ---
✅ 5 inserted, ❌ 0 errors

--- Raw Results Format ---
[{'id': 'doc_001', 'score': 0.0, 'metadata': {'author': 'Alice'}}, {'id': 'doc_003', 'score': 0.0009883458260446787, 'metadata': {'author': 'Alice'}}]

--- Formatted Results ---
1. ID: doc_001, Score: 0.0000, Metadata: {'author': 'Alice'}
2. ID: doc_003, Score: 0.0010, Metadata: {'author': 'Alice'}

📄 License

This project is licensed under the Apache License 2.0.

Project details


Download files

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

Source Distribution

zeusdb-0.0.7.tar.gz (124.2 kB view details)

Uploaded Source

Built Distribution

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

zeusdb-0.0.7-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file zeusdb-0.0.7.tar.gz.

File metadata

  • Download URL: zeusdb-0.0.7.tar.gz
  • Upload date:
  • Size: 124.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for zeusdb-0.0.7.tar.gz
Algorithm Hash digest
SHA256 cf2b0d8132f671df3b564f74f79c636c1f3b56bf3312cd717eac66e59fb9f3b8
MD5 24a9f1403edf70d00e584cdb15238c53
BLAKE2b-256 2311cf7ca00626703f298f312e736d0a9766e710976538a5bfc0e1de675ed1e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for zeusdb-0.0.7.tar.gz:

Publisher: publish-pypi.yml on ZeusDB/zeusdb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zeusdb-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: zeusdb-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for zeusdb-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 719564c90977fb3f1886a5f46a190ea294e343b649ed974c237f9951f367a3c9
MD5 5f0270cf6cc4059e8fa013f9a1cd2c77
BLAKE2b-256 62152d1516f0895520258d4e53d84fabd6fc797988888373b2d46624397f2174

See more details on using hashes here.

Provenance

The following attestation bundles were made for zeusdb-0.0.7-py3-none-any.whl:

Publisher: publish-pypi.yml on ZeusDB/zeusdb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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