Skip to main content

Module pie

Module pie 

Source
Expand description

Persistent Intelligence Engine (PIE) — PRD §31.

Orchestrates 4 learning layers that persist across sessions:

  • PKG: Personal Knowledge Graph
  • STM: Source Trust Memory (Bayesian Beta distribution)
  • FPM: Failure Pattern Memory
  • QPM: Query Prediction Model

Data stored in ~/.fetchium/intelligence/.

Modules§

fpm
Failure Pattern Memory (FPM) — tracks extraction success/failure per domain+layer.
pkg
Personal Knowledge Graph (PKG) — stores entities and relationships across sessions.
qpm
Query Prediction Model (QPM) — predicts follow-up queries from historical patterns.
stm
Source Trust Memory (STM) — Bayesian Beta-distribution trust tracking per domain.

Structs§

PersistentIntelligenceEngine
The 4-layer Persistent Intelligence Engine.
PieStats
Aggregate statistics across all 4 PIE layers.

Functions§

extract_topic
Extract a coarse topic from a query string (lowercased first non-trivial word cluster).