ExtractionConfig

org.llm4s.knowledgegraph.extraction.ExtractionConfig
case class ExtractionConfig(schema: Option[ExtractionSchema], enableCoreference: Boolean, enableEntityLinking: Boolean, llmDisambiguation: Boolean)

Configuration for multi-document graph extraction.

Value parameters

enableCoreference

Whether to run coreference resolution on each document before extraction

enableEntityLinking

Whether to run entity linking (deduplication) after merging documents

llmDisambiguation

Whether to use LLM-assisted disambiguation during entity linking

schema

Optional schema to constrain extraction. When absent, free-form extraction is used.

Attributes

Example
val config = ExtractionConfig(
 schema = Some(ExtractionSchema.simple(Seq("Person", "Org"), Seq("WORKS_FOR"))),
 enableCoreference = true,
 enableEntityLinking = true
)
Source
MultiDocumentGraphBuilder.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product