Module: Legion::Extensions::Agentic::Memory::Semantic::Helpers::Constants
- Included in:
- KnowledgeStore
- Defined in:
- lib/legion/extensions/agentic/memory/semantic/helpers/constants.rb
Constant Summary collapse
- MAX_CONCEPTS =
500- MAX_RELATIONS_PER_CONCEPT =
50- MAX_HISTORY =
200- RELATION_TYPES =
Relation types between concepts
%i[ is_a has_a part_of property_of used_for causes prevents similar_to opposite_of instance_of category_of ].freeze
- DEFAULT_CONFIDENCE =
Confidence thresholds
0.5- CONFIDENCE_FLOOR =
0.05- CONFIDENCE_DECAY =
0.005- CONFIDENCE_ALPHA =
0.12- ACCESS_BOOST =
Access frequency tracking
0.05- ACCESS_DECAY =
0.01- SPREAD_FACTOR =
Retrieval spreading activation
0.6- MAX_SPREAD_HOPS =
3- SPREAD_THRESHOLD =
0.1- CONFIDENCE_LABELS =
{ (0.8..) => :established, (0.6...0.8) => :reliable, (0.4...0.6) => :provisional, (0.2...0.4) => :tentative, (..0.2) => :uncertain }.freeze