Skip to main content

Module predictive_cache

Module predictive_cache 

Source
Expand description

Predictive Cache — pre-fetches blocks based on ThoughtGraph patterns.

After each recall, the cache predicts what the next query will be based on recognized thought patterns. It pre-loads the expected result blocks. If the prediction hits, the pattern gets a positive reward; misses decay the prediction confidence.

This is a feedback loop: good patterns → accurate predictions → rewards → stronger patterns.

Binary format: predictive_cache.bin (PRC1)

Structs§

CacheStats
Prediction
A single prediction: “if next query hash is X, these blocks are likely results.”
PredictiveCache