Repository: sadofriod/graphrag-ts · npm package: @ashes_born/graph-rag-ts
graphrag-ts exposes two query paths: local retrieval uses entities, communities, and source evidence to answer specific questions; global retrieval analyzes community-summary batches and synthesizes a corpus-level answer. They share the indexed data, but not the same recall strategy.
1. Local Retrieval: Graph Structure Finds Topics, Chunks Find Evidence
GraphRAGRetrievalService first sends the query to parseQuery to extract entities, keywords, and themes, then uses entityMatcher to match indexed entities. The matcher supports exact, alias, fuzzy, and semantic channels and fuses their rankings with Reciprocal Rank Fusion (RRF). The current retrieval service passes an empty alias list, so its active path uses exact, fuzzy, and semantic matching.…