You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(openclaw-plugin): add topic-judge pre-filter to skip auto-recall on topic continuation
Add a lightweight LLM-based pre-filter before auto-recall search to avoid
unnecessary embedding + vector search + LLM filter calls when the user is
continuing the current conversation.
- Extract topicJudgePreFilter() as a standalone function returning 'skip'|'proceed'
- Configurable via recall.topicJudgeRounds (default: 4, set 0 to disable)
- Uses existing Summarizer.judgeNewTopic() (already implemented in all providers)
- Graceful fallback: too-few-lines → skip; LLM error → proceed with recall
- Only 1 small LLM call (max_tokens=10) vs full search pipeline saved on SAME
/** Cap vector search to this many most recent chunks. 0 = no cap (search all; may get slower with 200k+ chunks). If you set a cap for performance, use a large value (e.g. 200000–300000) so older memories are still in the window; FTS always searches all. */
314
314
vectorSearchMaxChunks?: number;
315
+
/** Number of conversation rounds (user+assistant pairs) used by topic-judge to determine if recall should run. 0 = disabled (always recall). Default: 4. */
0 commit comments