Patterns
8 entries
- Agent memory graph
Pattern
Store an agent's observations, entities and facts as a time-aware knowledge graph so it can recall, update and reason over long-term memory.
- GraphRAG with community summaries (global/local search)
Pattern
Extract an entity graph from documents, cluster it hierarchically, pre-summarise communities, then answer global questions over summaries and local ones over entity neighbourhoods.
- HippoRAG (PPR-based retrieval)
Pattern
Index passages into an open knowledge graph, link query entities to it, and rank passages by Personalized PageRank for single-step multi-hop retrieval.
- Hybrid vector + graph retrieval
Pattern
Find entry points with vector or keyword search, then expand along graph relationships to collect connected context before generation.
- KAG (Knowledge Augmented Generation)
Pattern
Framework from Ant Group's OpenSPG that combines knowledge-graph reasoning with LLMs using logical-form-guided retrieval for professional-domain question answering.
- LazyGraphRAGpreview
Pattern
Microsoft Research variant that defers LLM summarisation to query time, cutting indexing cost while keeping global-question capability.
- LightRAG (dual-level retrieval)
Pattern
Retrieve over an extracted graph at two levels — specific entities and broader themes — and update the index incrementally as documents arrive.
- Text2Cypher / Text2SPARQL
Pattern
An LLM translates a natural-language question into a graph query (Cypher, SPARQL or GQL) using the schema, executes it, and verbalises the results.