org.llm4s.knowledgegraph.graphrag

Members list

Type members

Classlikes

final case class GraphCommunity(id: String, level: Int, nodeIds: Set[String], edgeCount: Int, parentCommunityId: Option[String], summary: Option[String])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class GraphCommunityHierarchy(levels: Vector[Vector[GraphCommunity]])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class GraphGlobalSearchResult(query: String, answer: String, rankedCommunities: Seq[(GraphCommunity, Double)], partialAnswers: Seq[(String, String)])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class GraphHybridHit(node: Node, score: Double, vectorScore: Double, graphScore: Double)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class GraphHybridSearchResult(query: String, answer: String, seedNodeIds: Seq[String], hits: Seq[GraphHybridHit])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class GraphLocalSearchResult(query: String, answer: String, seedNodeIds: Seq[String], visitedNodeIds: Seq[String], supportingCommunities: Seq[GraphCommunity])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
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.

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

Attributes

Supertypes
class Object
trait Matchable
class Any
final case class GraphRAGAnswer(query: String, mode: GraphRAGMode, answer: String, communityIds: Seq[String], nodeIds: Seq[String])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class GraphRAGConfig(maxCommunityLevels: Int, communityIterations: Int, minCommunitySize: Int, globalTopCommunities: Int, localTraversalDepth: Int, hybridVectorWeight: Double, hybridGraphWeight: Double)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed trait GraphRAGMode

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Global
object Hybrid
object Local
object GraphRAGMode

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type