Skip to main content

Module streaming

Module streaming 

Source
Expand description

Streaming subgraph extraction using SPARQL-like patterns.

§Overview

StreamingSubgraphExtractor maintains an in-memory adjacency graph built from (subject, predicate, object) triples added or removed at runtime. It emits SubgraphEvents whenever the graph changes, and provides pattern- based subgraph extraction.

StreamingGraphRag wraps the extractor and adds a query-result cache with a configurable TTL, tracking hit-rate statistics.

Structs§

StreamingGraphRag
A live-updating GraphRAG engine that processes streaming triple events and serves subgraph queries from a cache backed by the live graph.
StreamingStats
Runtime statistics for StreamingGraphRag.
StreamingSubgraphExtractor
In-memory streaming subgraph manager.
SubgraphEvent
A single event emitted by StreamingSubgraphExtractor.
SubgraphPattern
Describes which subgraph to extract from the live graph.

Enums§

SubgraphEventType
Describes what changed in the streaming subgraph.
SubgraphFilter
Predicate filter for neighbourhood expansion.