Skip to main content

llama-index-hypergraph

LlamaIndex retriever and chat memory backed by the Temporal Hypergraph Engine.

pip install llama-index-hypergraph
docker run -d -p 50051:50051 ghcr.io/divyansh151005/temporal-hypergraph-server

For development from a clone: pip install -e integrations/python-client -e integrations/llamaindex.

from llama_index_hypergraph import TemporalHypergraph

memory = TemporalHypergraph(api_key="your_key")  # a TemporalHypergraphChatMemory on session "default"
memory = TemporalHypergraph(api_key="your_key", session_id="user-42")

The server address comes from endpoint= or $HYPERGRAPH_ENDPOINT (default localhost:50051).

Retriever

from llama_index.core.query_engine import RetrieverQueryEngine
from llama_index_hypergraph import TemporalHypergraphRetriever

retriever = TemporalHypergraphRetriever(
    known_entities=["org:acme", "org:beta"],  # default linker: label match in the query
    k_hops=3,
    as_of=1700000000,                        # facts valid at this instant (default now)
)
engine = RetrieverQueryEngine.from_args(retriever, llm=llm)
  • Seeds come from entity_linker(query) (pass your own callable for NER or fuzzy matching), plus seed_entities and session:<session_id>.
  • embed_model (a LlamaIndex BaseEmbedding or LangChain-style embedder) re-ranks results by similarity; with no seeds the retriever falls back to global similarity search.
  • Each TextNode carries event_type, entities, valid_from, valid_to and hyperedge_id metadata.

Chat memory

TemporalHypergraphChatMemory is a BaseMemory. get(input=...) returns the recent history (history_limit=), preceded by a system message listing relevant facts reached within k_hops of the session. It uses the same storage scheme as langchain-hypergraph, so either framework can read a session written by the other.

Tests

cargo build --release -p grpc-server   # for the live tests; they skip otherwise
pytest integrations/llamaindex

Metadata

Release files for llama-index-hypergraph 2.0.1

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-hypergraph 2.0.1
File Size Uploaded Provenance Actions
llama_index_hypergraph-2.0.1.tar.gz 9.1 kB With provenance Details for llama_index_hypergraph-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-hypergraph 2.0.1
File Interpreter ABI Platform Actions
llama_index_hypergraph-2.0.1-py3-none-any.whl Python 3 none any Details for llama_index_hypergraph-2.0.1-py3-none-any.whl

Total release size: 16.8 kB

Release files / llama_index_hypergraph-2.0.1.tar.gz

Download URL llama_index_hypergraph-2.0.1.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
31c428723da49aaaa5a01326481d0f828244af637172a3e7edf8066f4bf46c57
BLAKE2b-256 checksum
How to use checksums
68e48507a87fa336575d2438f1f1e6ebc72bd05c9df38d758942a58b8ec20170
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / llama_index_hypergraph-2.0.1-py3-none-any.whl

Download URL llama_index_hypergraph-2.0.1-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf09e501de2b55b144a4aac04e7344d4328b7c065fca9d2d65b31c1598b0418b
BLAKE2b-256 checksum
How to use checksums
2889388d41f6c199f4d9ae5cdf01464430964e6bfe36fc0177640fca94006fa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for llama-index-hypergraph 2.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for llama_index_hypergraph-2.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files Full provenance

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