The lock-free temporal graph for LLMs.

Zero-copy CUDA memory offloading. 117k edges/sec ingest. Built in Rust.

v2.0.1 · Python and TypeScript SDKs · SSPL-1.0

person:gatesperson:ballmerperson:nadellaperson:thompsonorg:linkedinorg:githuborg:openaiproduct:azureorg:microsoft
  • CEO_OF
  • CHAIR_OF
  • ACQUIRED
  • PARTNERED
  • out of window
2010-07-01
traverse(["org:microsoft"], k_hops=3, as_of=2010-07-01)
  • CEO_OFballmer2000 → 2014-02

1 valid · 6 out of window, never expanded

Drag as_of to time-travel. Illustrative dataset of public Microsoft history; each colored line is one hyperedge, valid only inside its window.

Measured results

stale facts in multi-hop retrieval
0%
vs 45.1% for Graph RAG and 52.5% for Vector RAG
more facts recalled than Vector RAG
7.2×
62.2% vs 8.6% at a matched token budget
faster than a temporal property graph
7.8×
0.53 ms vs 4.13 ms p50, identical accuracy
p99 snapshot acquire under a heavy writer
375 ns
vs 48.9 ms for an RwLock at 64 readers

Apple M3, seeded and offline, no LLM calls during measurement. How these were measured

Retrieval, 1994 → now

Every retrieval system decides which facts reach a model's context. Follow one question through each approach, from keyword ranking to validity windows checked on every hop.

  1. Keyword search: Documents are ranked by the query words they contain, each weighted by how rare it is across the collection (BM25).
    1990s · 01/09

    Keyword search

    Documents are ranked by the query words they contain, each weighted by how rare it is across the collection (BM25).

    Who ran Microsoft in 2010?

    Pages containing “Microsoft” and “CEO” rank highest, whichever year they describe. It matches words, not meaning.

  2. Vector RAG: Text is split into chunks and embedded as vectors; the top-k chunks nearest the question are pasted into the prompt.
    2020 · 02/09

    Vector RAG

    Text is split into chunks and embedded as vectors; the top-k chunks nearest the question are pasted into the prompt.

    Who ran Microsoft in 2010?

    Chunks about Ballmer and chunks about Nadella both sit close to the question, so both come back.

    52.5%stale facts, exact FAISS at a matched token budget (our benchmark)

  3. Advanced RAG: Queries are rewritten, keyword and vector results are fused, and a reranker reorders the candidates before they reach the model.
    2022–2024 · 03/09

    Advanced RAG

    Queries are rewritten, keyword and vector results are fused, and a reranker reorders the candidates before they reach the model.

    Who ran Microsoft in 2010?

    The chunks that best match Microsoft’s leadership rise to the top of the list.

  4. Modular and agentic RAG: Retrieval becomes a tool. The system decides when to retrieve, critiques what came back, and retrieves again.
    2023–2025 · 04/09

    Modular and agentic RAG

    Retrieval becomes a tool. The system decides when to retrieve, critiques what came back, and retrieves again.

    Who ran Microsoft in 2010?

    An agent searches, reads and searches again; the year is handled in its reasoning, one model call at a time.

  5. GraphRAG: A model extracts an entity graph from the corpus and summarises its communities, so answers can follow relationships across the whole collection.
    2024 · 05/09

    GraphRAG

    A model extracts an entity graph from the corpus and summarises its communities, so answers can follow relationships across the whole collection.

    Who ran Microsoft in 2010?

    A walk out from Microsoft follows CEO_OF to Ballmer and to Nadella alike.

    45.1%stale facts, naive graph traversal (our benchmark)

  6. Vectorless RAG: No embeddings and no chunks. Each document becomes a table-of-contents tree, and a model reasons its way down to the right section.
    2025 · 06/09

    Vectorless RAG

    No embeddings and no chunks. Each document becomes a table-of-contents tree, and a model reasons its way down to the right section.

    Who ran Microsoft in 2010?

    It reads its way to the section on Microsoft’s leadership and cites the page it found.

  7. Temporal knowledge graphs: Each edge records the interval in which it held, so a superseded fact is invalidated rather than deleted. Facts are triplets: two entities and a relation.
    2025 · 07/09

    Temporal knowledge graphs

    Each edge records the interval in which it held, so a superseded fact is invalidated rather than deleted. Facts are triplets: two entities and a relation.

    Who ran Microsoft in 2010?

    Ballmer’s CEO_OF edge holds in 2010; Nadella’s does not yet.

  8. Hypergraph RAG: A hyperedge joins any number of entities, so a fact with three or more participants is stored whole instead of split into pairs.
    2025 · 08/09

    Hypergraph RAG

    A hyperedge joins any number of entities, so a fact with three or more participants is stored whole instead of split into pairs.

    Who ran Microsoft in 2010?

    Microsoft, OpenAI and Azure’s partnership stays a single fact.

  9. Temporal Hypergraph: N-ary hyperedges, each with a validity window that is checked on every hop. Readers take lock-free snapshots while writers keep inserting.
    Now · 09/09

    Temporal Hypergraph

    N-ary hyperedges, each with a validity window that is checked on every hop. Readers take lock-free snapshots while writers keep inserting.

    Who ran Microsoft in 2010?

    traverse(["org:microsoft"], as_of=2010) returns Ballmer. Nadella is never touched.

    0%stale facts at 0.53 ms p50, with 7.2× the fact recall of token-matched vector RAG (our benchmark)

Vector stores return superseded chunks, and property graphs walk through expired edges or block reads while a writer holds the lock. The engine filters every hop by validity window, on snapshots that readers load without a lock.

Rust core

Writes land in a bipartite arena allocator behind a write-ahead log, then publish a new immutable snapshot with one atomic pointer swap (ArcSwap). Readers never take a lock: 375 ns p99 snapshot acquire and 14.8× the read throughput of an RwLock at 8 readers (Apple M3, 1M hyperedges, unthrottled writer).

Zero-copy CUDA

KV-cache blocks move from vLLM tensors to content-addressed, deduplicated segments without CPU serialization. 1,600 blocks restored bit-exact on a Tesla T4.

Called from your serving code today; vLLM KV connector registration is the next milestone.

SSPL-1.0 protected

Free for the teams that build with it, protected from cloud wrappers that would resell it.

Personal, academic and internal enterprise use
Free. Run, modify, embed and deploy inside your own products.
Offering it to third parties as a managed service
Only if your entire service stack is released under the SSPL.
Distributing modified versions
Source must be made available under the SSPL.

1,000 multi-hop questions about past dates over 60,000 facts, 25,572 of them superseded or closed. Same embedder, tokenizer, seed entities and query plan for every contender. Apple M3.

N-ary facts reified as event nodes with valid_from / valid_to properties, the standard Neo4j modelling, traversed without a validity filter.

  • Stale-fact rate

    share of returned facts that were no longer true

    Temporal Hypergraph0.0%
    Property graph, naive BFS45.1%

    −45.1 pts

  • Fact recall

    gold facts present in the context

    Temporal Hypergraph62.2%
    Property graph, naive BFS49.0%

    1.3×

  • Full-chain recall

    every hop of the answer chain retrieved

    Temporal Hypergraph36.2%
    Property graph, naive BFS11.8%

    3.1×

  • Latency, p50

    in-process retrieval call only

    Temporal Hypergraph0.530 ms
    Property graph, naive BFS5.08 ms

    9.6×

A third baseline, the same property graph with the engine's validity filter applied, returns the same facts (mean Jaccard 0.983), so accuracy is identical by construction. It isolates engine speed: 0.530 ms against 4.126 ms p50, 7.8× faster.

Synthetic, template-generated data. Baselines are in-process NetworkX and exact FAISS, not Neo4j or a hosted vector database, where network hops would add latency.

MethodologyRaw tables on GitHub

Query journey

Follow one traversal through the engine in ten stages: across the language boundary, onto a snapshot, into the arena, down the as_of rail one year at a time, through SIMD scoring, and out as context your model can trust.

traverse(["org:microsoft"], k_hops=3, as_of=2010)

A traverse call crosses the PyO3 and gRPC boundary, freezes a snapshot, finds its seed slot in the arena, rides the as_of rail to 2010, expands three filtered hops, scores facts eight lanes at a time, ranks them and packs them into the model's context.
  1. 1/10 · Call

    One call names where to start, how many hops to walk and the instant to read the graph at.

  2. 2/10 · Boundary

    The call crosses into the Rust engine, in-process through PyO3 or over gRPC on port 50051 or a Unix socket.

  3. 3/10 · Snapshot

    The reader loads the current snapshot with one atomic pointer load. Writers keep publishing new versions; this query reads one frozen version.

  4. 4/10 · Seed lookup

    org:microsoft is hashed and resolved through the node index to a slot in the bipartite arena: paged arrays of nodes and hyperedges addressed by index, not heap pointers.

  5. 5/10 · Validity windows

    Facts are never overwritten. When a new fact supersedes an old one, conflict resolution closes the old window, here Ballmer’s at 2014-02-01, and keeps the history.

  6. 6/10 · Filtered hops

    Three hops out from the seed. Each hop keeps only hyperedges whose window contains 2010-07-01, so superseded facts are neither returned nor expanded. Nadella’s edge is never touched.

  7. 7/10 · SIMD decay

    Each surviving fact gets an exponential time-decay weight, computed eight lanes at a time with f32x8 vectors and a polynomial exp. The default half-life is 30 days.

  8. 8/10 · Ranking

    Score is confidence times decay, times cosine similarity when you pass an embedding. Facts are ranked and the top k kept; the benchmark keeps 16.

  9. 9/10 · Context

    The kept facts are rendered into one context block, and only facts valid at the asked instant get in.

  10. 10/10 · Handoff

    The context reaches your model. Lookup, filtered hops, scoring and ranking take about half a millisecond at the median.

4 vCPU Xeon at 2.0 GHz, 32 GB RAM, Tesla T4 16 GB. Ingest and retrieval run on the CPU; the soak runs Qwen2.5-1.5B on vLLM on the T4. No LLM or network calls during measurement.

Extreme-scale benchmark results
RunResult
Ingest85.6 s10,000,000 hyperedges over 2M nodes
Latency2.95 msp50, 1,000 three-hop questions over 500K facts
Soak+0 BVRAM growth over 500 vLLM generations

Latency: 100K entities, 500K facts, synthetic template-generated data. Same embedder, tokenizer, seed entities and query plan for every contender; baselines are in-process NetworkX, not a hosted graph database where network hops would add latency. Methodology and reproduction commands

A fact is one hyperedge with any number of participants and a validity window. Traversals take an as_of instant and never walk through a superseded edge.

Start the server first:
docker run -d -p 50051:50051 ghcr.io/divyansh151005/temporal-hypergraph-server:2.0.1
pip install hypergraph-client
from hypergraph_client import HypergraphClient, Hyperedge

Y2000, Y2010, Y2014 = 946684800, 1262304000, 1391212800  # Unix seconds

with HypergraphClient("localhost:50051") as client:
    client.insert(Hyperedge("CEO_OF", ["person:ballmer", "org:microsoft"], Y2000, Y2014,
                            summary="Steve Ballmer was CEO of Microsoft"))
    client.insert(Hyperedge("CEO_OF", ["person:nadella", "org:microsoft"], Y2014,
                            summary="Satya Nadella is CEO of Microsoft"))

    # Who ran Microsoft in 2010? Only facts valid at as_of are returned or expanded.
    for edge in client.traverse(["org:microsoft"], k_hops=3, as_of=Y2010, decay_lambda=1e-6):
        print(edge.summary)  # -> Steve Ballmer was CEO of Microsoft

Run it in-process with pip install hypergraph-engine-native or as a gRPC server next to your models.

Start the quickstart