Skip to main content

LlamaIndex Hyperspace Integration: Spatial AI Memory Infrastructure

PyPI Version License

Building the Episodic Memory for the AGI Era.

This is the official LlamaIndex integration for HyperspaceDB — the world's first Spatial AI Engine. It models information exactly how the physical world and human cognition are structured: as hierarchical, spatial, and dynamic graphs.

🧠 Why Spatial AI for LlamaIndex? (Beyond RAG)

Traditional vector databases were built to search static PDF files for chatbots. HyperspaceDB provides the primitives for autonomous agents and robotics:

  • Fractal Knowledge Graphs: Euclidean vectors fail at hierarchies. Our Poincaré & Lorentz models compress massive trees (like codebases or medical taxonomies) into low-dimensional spaces, reducing RAM usage by 50x without losing semantic context.
  • Continuous Reconsolidation: AI agents need to "sleep" and organize memories. With our Fast Upsert Path and Riemannian Math SDK (Fréchet mean, parallel transport), your indexers can continuously shift and prune vectors dynamically.
  • Heterogeneous Tribunal Framework: Natively support the confrontational model of LLM routing (Architect vs. Tribunal) directly on the vector graph. Calculate a Geometric Trust Score to verify logical path lengths and detect hallucinations.
  • Edge-to-Cloud Delta Sync: Drones and humanoid robots can't wait for cloud latency. HyperspaceDB runs directly on Edge hardware, using Merkle Tree Delta Sync to asynchronously handshake and sync memory chunks with the Cloud.

📦 Installation

pip install llama-index-vector-stores-hyperspace hyperspacedb

🛠 Usage

Hyperbolic Memory Initialization

from llama_index.vector_stores.hyperspace import HyperspaceVectorStore
from llama_index.core import StorageContext, VectorStoreIndex
from hyperspace import HyperspaceClient

client = HyperspaceClient("localhost:50051", "API_KEY")

vector_store = HyperspaceVectorStore(
    client=client,
    collection_name="agent_memory",
    metric="lorentz",  # Use hyperbolic geometry for complex hierarchies
    dimension=64
)

Hallucination Detection (Tribunal Framework)

Evaluate the structural trust of an LLM claim by verifying the logical path length between concepts in latent hyperbolic space:

from hyperspace.agents import TribunalContext

# 1.0 = Truth (Identical), 0.0 = Hallucination (Disconnected)
score = client.evaluate_claim(concept_a_id=12, concept_b_id=45)
print(f"Geometric Trust Score: {score}")

Multi-Geometry Spatial Filters

Prune search results by geometric regions:

from llama_index.core.vector_stores import MetadataFilters

filters = MetadataFilters(
    filters=[
        # Spatial Sphere (Ball) Pruning
        {"key": "location", "value": {
            "$in_ball": {"center": [0,0,0, ...], "radius": 0.5}
        }}
    ]
)

⚡ Performance: Reflex-Level Speed

Built on Nightly Rust. Our ArcSwap Lock-Free architecture and SIMD f32 intrinsics deliver up to 12,000 Search QPS and 60,000 Ingest QPS for real-time robotic memory.

📖 Documentation

📄 License

Apache-2.0. Copyright © 2026 YARlabs.

Metadata

Release files for llama-index-vector-stores-hyperspace 4.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-vector-stores-hyperspace 4.0.0
File Size Uploaded
llama_index_vector_stores_hyperspace-4.0.0.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-vector-stores-hyperspace 4.0.0
File Interpreter ABI Platform
llama_index_vector_stores_hyperspace-4.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / llama_index_vector_stores_hyperspace-4.0.0.tar.gz

Download URL llama_index_vector_stores_hyperspace-4.0.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
68ea374c6ddcb97880cdaeeb56cb14fba7a50d42a77935f378ca603e8ae07e9b
BLAKE2b-256 checksum
How to use checksums
06ca84afd5dd5b2f4b0cb8cb09e54fcd90aa91bed62a8404b0fad51aa56df5ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / llama_index_vector_stores_hyperspace-4.0.0-py3-none-any.whl

Download URL llama_index_vector_stores_hyperspace-4.0.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19766a59a45e14df6c69ad9a85f02b1a8fe7c2ad07c50980c283a92153ac3197
BLAKE2b-256 checksum
How to use checksums
364c4032224844812e1de9e7bf2794381756d9f81ecb83083cee903910198ecb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

4.1.0

2 release files

This release

4.0.0 This release

2 release files

3.1.7

2 release files

3.1.6

2 release files

3.1.5

2 release files

3.1.4

2 release files

3.1.3

2 release files

3.1.2

2 release files

3.0.5

2 release files

3.0.4

2 release files

3.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page