Add hybrid memory retrieval and escalation history

This commit is contained in:
dahyeon committed 2026-05-18 23:04:34 -07:00
1 parent 1a86bded0b
commit 211de18476
38 files changed
+1602 -37

No files matched your search

@@ -1,5 +1,9 @@
import { z } from "zod";
import { getRagEnabled } from "../../config.js";
import {
getRagEnabled,
getRagHybridEnabled,
getRagRerankerEnabled,
} from "../../config.js";
import { getRequestLogger } from "../../observability/context.js";
import {
DEADLINE_NEAR_THRESHOLD_MIN,
@@ -93,6 +97,8 @@ export const lookupCommunityRuleTool: Tool<
try {
const docs = await ctx.memoryService.longTerm.search(args.topic, {
category: "onboarding-step",
hybrid: getRagHybridEnabled(),
rerank: getRagRerankerEnabled(),
skill: "onboarding",
topK: args.topK ?? 3,
});