ARTFEED — Contemporary Art Intelligence

ContextRAG: LLM-Free Graph Construction for RAG Systems

ai-technology · 2026-05-20

ContextRAG is a retrieval-augmented generation (RAG) system that utilizes a graph-based structure without depending on large language models (LLMs) for extracting entities or relationships. It employs residual-quantization k-means and Formal Concept Analysis using Lukasiewicz residuated logic to create a fuzzy concept graph from chunk embeddings. Context nodes, derived from bridge-like and meet operations, are generated through soft fuzzy joins. In a 130-task UltraDomain subset, ContextRAG only needed 30 LLM calls and 22,073 tokens to build its index, in contrast to a local HiRAG variant that required 870 calls and 3.54 million tokens for a 20-task subset. This method greatly lowers both token and time costs, enhancing scalability for extensive corpora.

Key facts

  • ContextRAG constructs graph topology without LLM-based entity or relation extraction.
  • Uses residual-quantization k-means and Formal Concept Analysis with Lukasiewicz residuated logic.
  • Derives a fuzzy concept graph over chunk embeddings.
  • Bridge-like and meet-derived context nodes are induced by soft fuzzy join and meet operations.
  • Tested on a 130-task UltraDomain subset.
  • Index built with 30 LLM calls and 22,073 tokens.
  • Local HiRAG required 870 indexing calls and 3.54M tokens on a 20-task subset.
  • Reduces token and wall-clock costs for graph RAG systems.

Entities

Sources