summary system backend implementation

This commit is contained in:
Storme-bit
2026-04-19 07:19:27 -07:00
parent 57e8c4c486
commit 4cc87d96b6
5 changed files with 178 additions and 4 deletions

View File

@@ -69,6 +69,11 @@ const SQLITE = {
DEFAULT_PATH: './data/nexusai.db'
}
const SUMMARIES = {
THRESHOLD_TOKENS: 5000, //trigger summary when session hits this many tokens
MAX_SUMMARY_TOKENS: 800, //if existing summary exceeds this, create new instead of update
MIN_EPISODES_SINCE: 5, // don't resummarize until N new episodes since last summary
}
module.exports = {
QDRANT,
COLLECTIONS,
@@ -79,5 +84,6 @@ module.exports = {
LLAMACPP,
INFERENCE_DEFAULTS,
SQLITE,
ORCHESTRATION
ORCHESTRATION,
SUMMARIES
};