⚛️ QDB (Quantum-Inspired Deductive Database)
QDB is a lightweight, zero-API, quantum-inspired deductive database and thermodynamic reasoning engine that beats Vector RAG at multi-hop reasoning, contradiction suppression, and deterministic math.
⚡ Key Highlights
- 15-Hop Unbroken Causal Deduction: Traverses deep reasoning chains in $< 200\text{ms}$ with zero vector drift using Lie-Group continuous state evolution.
- Anti-Ferromagnetic Contradiction Invalidation: Injects $+50.0\text{J}$ mathematical repulsion barriers to suppress stale/contradictory facts.
- Contextual Semantic Opposition: Resolves subtle figurative colloquialisms ("showed him the door") without dictionary dependencies.
- Deterministic AST Arithmetic: $0.0%$ arithmetic hallucination on financial, numeric, and scientific documents.
- Bi-Temporal Lineage: Native point-in-time time travel (
as_of_time=2021.0) with non-destructive graph mutation. - Zero-API, 100% Air-Gapped Privacy: Runs locally on CPU/GPU ($< 150\text{MB}$ RAM) with zero cloud token bills.
📦 Installation
pip install qdb-ai
🚀 Quickstart (Python)
from qdb import Vault
# 1. Initialize local zero-copy vault
vault = Vault("production_vault")
# 2. Ingest structured facts or raw documents
vault.ingest("Dr. Aris Thorne was appointed Chief Cryptographer in 2021.", timestamp=2021.0)
vault.ingest("Dr. Thorne's security clearance was revoked after an audit in 2024.", timestamp=2024.0)
# 3. Quantum-inspired multi-hop reasoning
response = vault.ask("Does Dr. Thorne have active security clearance?")
print(response)
# Output: Deduces clearance is REVOKED (+50J anti-ferromagnetic suppression)
🌐 Standalone REST & OpenAI-Compatible Streaming Server
Start the server from the command line:
qdb server --port 8000
Connect using standard OpenAI SDK or TypeScript:
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="not-needed")
response = client.chat.completions.create(
model="qdb-quantum-reasoner",
messages=[{"role": "user", "content": "What happened to Dr. Thorne?"}],
stream=True
)
for chunk in response:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")
📜 License
Released under the MIT License.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qdb_ai-1.7.1-py3-none-any.whl.
File metadata
- Download URL: qdb_ai-1.7.1-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4190d753ff7ecb24035c3c7c1f2380b08b9205e56c9cadc8f672ac42a668666
|
|
| MD5 |
d8e7636dba4b27ce9b3bde020fc9ab79
|
|
| BLAKE2b-256 |
ed751db670750f5512365c500fa0e594d1df624cf4b133df460bceda2fe79781
|