Documentation
¶
Index ¶
- type Fact
- type FactPromotionAssessment
- type Snapshot
- type Store
- func (s *Store) Add(subject, predicate, object, validFrom, source string) (Fact, error)
- func (s *Store) Invalidate(subject, predicate, object, ended string) error
- func (s *Store) Query(entity, asOf, direction string) ([]Fact, error)
- func (s *Store) Stats() (map[string]any, error)
- func (s *Store) Timeline(entity string) ([]Fact, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FactPromotionAssessment ¶
type FactPromotionAssessment struct {
StoreAsFact bool `json:"store_as_fact"`
KeepAsEntry bool `json:"keep_as_entry"`
Confidence string `json:"confidence"`
PredicateFamily string `json:"predicate_family,omitempty"`
Subject string `json:"subject,omitempty"`
Predicate string `json:"predicate,omitempty"`
Object string `json:"object,omitempty"`
Reasons []string `json:"reasons"`
}
func AssessFactPromotion ¶
func AssessFactPromotion(text string) FactPromotionAssessment
Click to show internal directories.
Click to hide internal directories.