GraphRAG

org.llm4s.knowledgegraph.graphrag.GraphRAG
final class GraphRAG(graphStore: GraphStore, llmClient: LLMClient, config: GraphRAGConfig)

GraphRAG pipeline: hierarchical community detection, LLM summaries, global and local graph retrieval, and hybrid vector+graph retrieval.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def answer(query: String, vectorResults: Seq[HybridSearchResult]): Result[GraphRAGAnswer]
def detectCommunities(forceRefresh: Boolean): Result[GraphCommunityHierarchy]
def globalSearch(query: String, topK: Int): Result[GraphGlobalSearchResult]
def hybridSearch(query: String, vectorResults: Seq[HybridSearchResult], maxDepth: Int): Result[GraphHybridSearchResult]
def localSearch(query: String, maxDepth: Int): Result[GraphLocalSearchResult]
def route(query: String): Result[GraphRAGMode]
def summarizeCommunities(forceRefresh: Boolean): Result[GraphCommunityHierarchy]