Skip to main content

Module utility

Module utility 

Source
Expand description

Outcome feedback loop for adaptive entity learning.

Tracks which graph entities contributed to session outcomes (success/partial/failure) and adjusts their utility_score via exponential moving average.

Phase 1 of Adaptive Entity Learning v2.

Structs§

ContributionStats
Get aggregate contribution stats for an entity.
EntityUtility
One entity’s utility score after an outcome was applied to it.
FeedbackReport
Report from a feedback recording operation.
SessionEntities
The entities one session is known to have touched.

Enums§

OutcomeKind
The result of a task or session outcome.

Constants§

DEFAULT_UTILITY
Default utility score for new entities.

Functions§

get_utility_score
Get the current utility score for an entity.
record_outcome_feedback
Record outcome feedback: link retrieved entities to an outcome and update utility scores.
record_session_use
Record that a session touched these entities, without judging the outcome.
session_entities
The entities a session touched, as its contributed_to records tell it.