Module: Legion::Extensions::Agentic::Attention::RelevanceTheory::Helpers::Constants
- Included in:
- CognitiveInput, RelevanceEngine
- Defined in:
- lib/legion/extensions/agentic/attention/relevance_theory/helpers/constants.rb
Constant Summary collapse
- INPUT_TYPES =
Relevance = cognitive_effect / processing_effort Higher effect + lower effort = more relevant
%i[assertion question command observation inference].freeze
- RELEVANCE_LABELS =
{ (0.8..) => :maximally_relevant, (0.6...0.8) => :highly_relevant, (0.4...0.6) => :moderately_relevant, (0.2...0.4) => :marginally_relevant, (..0.2) => :irrelevant }.freeze
- EFFECT_TYPES =
%i[ strengthening contradiction new_implication contextual_implication elimination ].freeze
- MAX_INPUTS =
300- MAX_HISTORY =
500- MAX_CONTEXTS =
50- DEFAULT_EFFECT =
0.5- DEFAULT_EFFORT =
0.5- EFFECT_FLOOR =
0.0- EFFECT_CEILING =
1.0- EFFORT_FLOOR =
0.01- EFFORT_CEILING =
1.0- EFFECT_DECAY =
Decay rates
0.02- EFFORT_INFLATION =
0.01- ATTENTION_THRESHOLD =
Attention allocation: inputs above this threshold get processed
0.3