mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 22:30:38 +08:00
feat: add maintenance concurrency modes
This commit is contained in:
4
index.js
4
index.js
@@ -256,6 +256,7 @@ import {
|
||||
getPersistedSettingsSnapshot,
|
||||
mergePersistedSettings,
|
||||
} from "./runtime/settings-defaults.js";
|
||||
import { resolveConcurrencyConfig } from "./runtime/concurrency.js";
|
||||
import {
|
||||
createDefaultAuthorityCapabilityState,
|
||||
normalizeAuthoritySettings,
|
||||
@@ -21255,6 +21256,7 @@ function applyRecallInjection(settings, recallInput, recentMessages, result) {
|
||||
}
|
||||
|
||||
function buildRecallRetrieveOptions(settings, context) {
|
||||
const concurrency = resolveConcurrencyConfig(settings);
|
||||
return {
|
||||
topK: settings.recallTopK,
|
||||
maxRecallNodes: settings.recallMaxNodes,
|
||||
@@ -21298,6 +21300,8 @@ function buildRecallRetrieveOptions(settings, context) {
|
||||
residualNmfNoveltyThreshold: settings.recallNmfNoveltyThreshold ?? 0.4,
|
||||
residualThreshold: settings.recallResidualThreshold ?? 0.3,
|
||||
residualTopK: settings.recallResidualTopK ?? 5,
|
||||
vectorQueryConcurrency: concurrency.vectorQueryConcurrency,
|
||||
authorityCandidateQueryConcurrency: concurrency.vectorQueryConcurrency,
|
||||
enableScopedMemory: settings.enableScopedMemory ?? true,
|
||||
enablePovMemory: settings.enablePovMemory ?? true,
|
||||
enableRegionScopedObjective:
|
||||
|
||||
Reference in New Issue
Block a user