summary system backend implementation
This commit is contained in:
@@ -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
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
const {getEnv} = require('./config/env');
|
||||
const {QDRANT, COLLECTIONS, EPISODIC, SERVICES, OLLAMA, PORTS, LLAMACPP, INFERENCE_DEFAULTS, SQLITE, ORCHESTRATION } = require('./config/constants');
|
||||
const {QDRANT, COLLECTIONS, EPISODIC, SERVICES, OLLAMA, PORTS, LLAMACPP, INFERENCE_DEFAULTS, SQLITE, ORCHESTRATION, SUMMARIES } = require('./config/constants');
|
||||
const {parseRow, formatEpisodeText} = require('./utils')
|
||||
|
||||
module.exports = {
|
||||
@@ -16,4 +16,5 @@ module.exports = {
|
||||
ORCHESTRATION,
|
||||
parseRow,
|
||||
formatEpisodeText,
|
||||
SUMMARIES,
|
||||
};
|
||||
Reference in New Issue
Block a user