Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultEntityTypes = []string{"organization", "person", "policy", "bill", "geo", "event", "role", "electorate"}
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type EntityExtractor ¶
type EntityExtractor struct { ExtractionPrompt string EntityTypes []string MaxGleanings int // contains filtered or unexported fields }
func NewEntityExtractor ¶
func NewEntityExtractor(llm llm.LLM, opts ...Option) *EntityExtractor
type Relationship ¶
type Relationship struct { Entity1 string Relation string Entity2 string Keyword string Weight int // contains filtered or unexported fields }
func (*Relationship) NodeID ¶
func (e *Relationship) NodeID() string
func (*Relationship) String ¶
func (r *Relationship) String() string
func (*Relationship) Type ¶
func (r *Relationship) Type() string
Click to show internal directories.
Click to hide internal directories.