GraphQAConfig

org.llm4s.knowledgegraph.query.GraphQAConfig
case class GraphQAConfig(maxHops: Int, maxContextNodes: Int, maxContextEdges: Int, useRanking: Boolean, rankingAlgorithm: RankingAlgorithm, includeCitations: Boolean, temperature: Double)

Configuration for the graph-guided question answering pipeline.

Value parameters

includeCitations

Whether to track and return source citations

maxContextEdges

Maximum number of edges to include in LLM context

maxContextNodes

Maximum number of nodes to include in LLM context

maxHops

Maximum number of hops for graph traversal during context gathering

rankingAlgorithm

Which ranking algorithm to use (when useRanking is true)

temperature

LLM temperature for answer generation (lower = more deterministic)

useRanking

Whether to use graph ranking algorithms to prioritize entities

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product