claude-memory-layer 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +1110 -72
- package/dist/cli/index.js.map +4 -4
- package/dist/core/index.js +414 -25
- package/dist/core/index.js.map +2 -2
- package/dist/hooks/post-tool-use.js +416 -27
- package/dist/hooks/post-tool-use.js.map +2 -2
- package/dist/hooks/semantic-daemon.js +416 -27
- package/dist/hooks/semantic-daemon.js.map +2 -2
- package/dist/hooks/session-end.js +416 -27
- package/dist/hooks/session-end.js.map +2 -2
- package/dist/hooks/session-start.js +416 -27
- package/dist/hooks/session-start.js.map +2 -2
- package/dist/hooks/stop.js +416 -27
- package/dist/hooks/stop.js.map +2 -2
- package/dist/hooks/user-prompt-submit.js +504 -34
- package/dist/hooks/user-prompt-submit.js.map +2 -2
- package/dist/index.js +416 -27
- package/dist/index.js.map +2 -2
- package/dist/mcp/index.js +407 -32
- package/dist/mcp/index.js.map +2 -2
- package/dist/server/api/index.js +850 -44
- package/dist/server/api/index.js.map +3 -3
- package/dist/server/index.js +1073 -64
- package/dist/server/index.js.map +3 -3
- package/dist/services/memory-service.js +416 -27
- package/dist/services/memory-service.js.map +2 -2
- package/dist/ui/assets/js/bootstrap.js +2 -0
- package/dist/ui/assets/js/overview.js +166 -3
- package/dist/ui/assets/js/state.js +3 -0
- package/dist/ui/index.html +20 -0
- package/dist/ui/style.css +193 -0
- package/package.json +5 -1
package/dist/hooks/stop.js
CHANGED
|
@@ -2241,10 +2241,15 @@ function sqliteClose(db) {
|
|
|
2241
2241
|
function toDateFromSQLite(value) {
|
|
2242
2242
|
if (value instanceof Date)
|
|
2243
2243
|
return value;
|
|
2244
|
-
if (typeof value === "string")
|
|
2245
|
-
return new Date(value);
|
|
2246
2244
|
if (typeof value === "number")
|
|
2247
2245
|
return new Date(value);
|
|
2246
|
+
if (typeof value === "string") {
|
|
2247
|
+
const trimmed = value.trim();
|
|
2248
|
+
if (/^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}(?:\.\d+)?$/.test(trimmed)) {
|
|
2249
|
+
return /* @__PURE__ */ new Date(trimmed.replace(" ", "T") + "Z");
|
|
2250
|
+
}
|
|
2251
|
+
return new Date(trimmed);
|
|
2252
|
+
}
|
|
2248
2253
|
return new Date(String(value));
|
|
2249
2254
|
}
|
|
2250
2255
|
function toSQLiteTimestamp(date) {
|
|
@@ -2310,6 +2315,13 @@ var MarkdownMirror2 = class {
|
|
|
2310
2315
|
};
|
|
2311
2316
|
|
|
2312
2317
|
// src/core/sqlite-event-store.ts
|
|
2318
|
+
function normalizeQueryRewriteKind(value) {
|
|
2319
|
+
const normalized = (value || "").trim().toLowerCase();
|
|
2320
|
+
if (normalized === "follow-up-context" || normalized === "intent-rewrite")
|
|
2321
|
+
return normalized;
|
|
2322
|
+
return "none";
|
|
2323
|
+
}
|
|
2324
|
+
var REWRITTEN_QUERY_REWRITE_KIND_SQL = `LOWER(TRIM(COALESCE(query_rewrite_kind, 'none'))) IN ('follow-up-context', 'intent-rewrite')`;
|
|
2313
2325
|
var SQLiteEventStore = class {
|
|
2314
2326
|
db;
|
|
2315
2327
|
initialized = false;
|
|
@@ -2570,6 +2582,8 @@ var SQLiteEventStore = class {
|
|
|
2570
2582
|
session_id TEXT,
|
|
2571
2583
|
project_hash TEXT,
|
|
2572
2584
|
query_text TEXT NOT NULL,
|
|
2585
|
+
raw_query_text TEXT,
|
|
2586
|
+
query_rewrite_kind TEXT,
|
|
2573
2587
|
strategy TEXT,
|
|
2574
2588
|
candidate_event_ids TEXT,
|
|
2575
2589
|
selected_event_ids TEXT,
|
|
@@ -2611,6 +2625,8 @@ var SQLiteEventStore = class {
|
|
|
2611
2625
|
CREATE INDEX IF NOT EXISTS idx_helpfulness_event ON memory_helpfulness(event_id);
|
|
2612
2626
|
CREATE INDEX IF NOT EXISTS idx_helpfulness_session ON memory_helpfulness(session_id);
|
|
2613
2627
|
CREATE INDEX IF NOT EXISTS idx_helpfulness_score ON memory_helpfulness(helpfulness_score DESC);
|
|
2628
|
+
CREATE INDEX IF NOT EXISTS idx_helpfulness_created_at ON memory_helpfulness(created_at);
|
|
2629
|
+
CREATE INDEX IF NOT EXISTS idx_helpfulness_measured_at ON memory_helpfulness(measured_at);
|
|
2614
2630
|
CREATE INDEX IF NOT EXISTS idx_retrieval_traces_created_at ON retrieval_traces(created_at DESC);
|
|
2615
2631
|
CREATE INDEX IF NOT EXISTS idx_retrieval_traces_project_hash ON retrieval_traces(project_hash);
|
|
2616
2632
|
CREATE INDEX IF NOT EXISTS idx_retrieval_traces_session_id ON retrieval_traces(session_id);
|
|
@@ -2644,6 +2660,18 @@ var SQLiteEventStore = class {
|
|
|
2644
2660
|
sqliteExec(this.db, `ALTER TABLE retrieval_traces ADD COLUMN candidate_details_json TEXT;`);
|
|
2645
2661
|
} catch {
|
|
2646
2662
|
}
|
|
2663
|
+
try {
|
|
2664
|
+
sqliteExec(this.db, `ALTER TABLE retrieval_traces ADD COLUMN raw_query_text TEXT;`);
|
|
2665
|
+
} catch {
|
|
2666
|
+
}
|
|
2667
|
+
try {
|
|
2668
|
+
sqliteExec(this.db, `ALTER TABLE retrieval_traces ADD COLUMN query_rewrite_kind TEXT;`);
|
|
2669
|
+
} catch {
|
|
2670
|
+
}
|
|
2671
|
+
try {
|
|
2672
|
+
sqliteExec(this.db, `CREATE INDEX IF NOT EXISTS idx_retrieval_traces_query_rewrite_kind ON retrieval_traces(query_rewrite_kind);`);
|
|
2673
|
+
} catch {
|
|
2674
|
+
}
|
|
2647
2675
|
const tableInfo = sqliteAll(this.db, "PRAGMA table_info(events)", []);
|
|
2648
2676
|
const columnNames = tableInfo.map((col) => col.name);
|
|
2649
2677
|
if (!columnNames.includes("access_count")) {
|
|
@@ -3429,8 +3457,11 @@ var SQLiteEventStore = class {
|
|
|
3429
3457
|
/**
|
|
3430
3458
|
* Get helpfulness statistics for dashboard
|
|
3431
3459
|
*/
|
|
3432
|
-
async getHelpfulnessStats() {
|
|
3460
|
+
async getHelpfulnessStats(since) {
|
|
3433
3461
|
await this.initialize();
|
|
3462
|
+
const sinceIso = since?.toISOString();
|
|
3463
|
+
const evaluatedWhere = sinceIso ? `WHERE measured_at IS NOT NULL AND datetime(created_at) >= datetime(?)` : `WHERE measured_at IS NOT NULL`;
|
|
3464
|
+
const totalWhere = sinceIso ? `WHERE datetime(created_at) >= datetime(?)` : ``;
|
|
3434
3465
|
const stats = sqliteGet(
|
|
3435
3466
|
this.db,
|
|
3436
3467
|
`SELECT
|
|
@@ -3440,11 +3471,13 @@ var SQLiteEventStore = class {
|
|
|
3440
3471
|
SUM(CASE WHEN helpfulness_score >= 0.4 AND helpfulness_score < 0.7 THEN 1 ELSE 0 END) as neutral,
|
|
3441
3472
|
SUM(CASE WHEN helpfulness_score < 0.4 THEN 1 ELSE 0 END) as unhelpful
|
|
3442
3473
|
FROM memory_helpfulness
|
|
3443
|
-
|
|
3474
|
+
${evaluatedWhere}`,
|
|
3475
|
+
sinceIso ? [sinceIso] : []
|
|
3444
3476
|
);
|
|
3445
3477
|
const totalRow = sqliteGet(
|
|
3446
3478
|
this.db,
|
|
3447
|
-
`SELECT COUNT(*) as total FROM memory_helpfulness
|
|
3479
|
+
`SELECT COUNT(*) as total FROM memory_helpfulness ${totalWhere}`,
|
|
3480
|
+
sinceIso ? [sinceIso] : []
|
|
3448
3481
|
);
|
|
3449
3482
|
return {
|
|
3450
3483
|
avgScore: Math.round((stats?.avg_score || 0) * 100) / 100,
|
|
@@ -3543,18 +3576,21 @@ var SQLiteEventStore = class {
|
|
|
3543
3576
|
async recordRetrievalTrace(input) {
|
|
3544
3577
|
await this.initialize();
|
|
3545
3578
|
const traceId = randomUUID5();
|
|
3579
|
+
const queryRewriteKind = normalizeQueryRewriteKind(input.queryRewriteKind);
|
|
3546
3580
|
sqliteRun(
|
|
3547
3581
|
this.db,
|
|
3548
3582
|
`INSERT INTO retrieval_traces (
|
|
3549
|
-
trace_id, session_id, project_hash, query_text, strategy,
|
|
3583
|
+
trace_id, session_id, project_hash, query_text, raw_query_text, query_rewrite_kind, strategy,
|
|
3550
3584
|
candidate_event_ids, selected_event_ids, candidate_details_json, selected_details_json,
|
|
3551
3585
|
candidate_count, selected_count, confidence, fallback_trace
|
|
3552
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
3586
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
|
3553
3587
|
[
|
|
3554
3588
|
traceId,
|
|
3555
3589
|
input.sessionId || null,
|
|
3556
3590
|
input.projectHash || null,
|
|
3557
3591
|
input.queryText,
|
|
3592
|
+
input.rawQueryText || null,
|
|
3593
|
+
queryRewriteKind,
|
|
3558
3594
|
input.strategy || null,
|
|
3559
3595
|
JSON.stringify(input.candidateEventIds || []),
|
|
3560
3596
|
JSON.stringify(input.selectedEventIds || []),
|
|
@@ -3580,6 +3616,8 @@ var SQLiteEventStore = class {
|
|
|
3580
3616
|
sessionId: row.session_id || void 0,
|
|
3581
3617
|
projectHash: row.project_hash || void 0,
|
|
3582
3618
|
queryText: row.query_text,
|
|
3619
|
+
rawQueryText: row.raw_query_text || void 0,
|
|
3620
|
+
queryRewriteKind: normalizeQueryRewriteKind(row.query_rewrite_kind),
|
|
3583
3621
|
strategy: row.strategy || void 0,
|
|
3584
3622
|
candidateEventIds: row.candidate_event_ids ? JSON.parse(row.candidate_event_ids) : [],
|
|
3585
3623
|
selectedEventIds: row.selected_event_ids ? JSON.parse(row.selected_event_ids) : [],
|
|
@@ -3606,6 +3644,11 @@ var SQLiteEventStore = class {
|
|
|
3606
3644
|
COUNT(*) as total_queries,
|
|
3607
3645
|
AVG(candidate_count) as avg_candidate_count,
|
|
3608
3646
|
AVG(selected_count) as avg_selected_count,
|
|
3647
|
+
SUM(CASE WHEN ${REWRITTEN_QUERY_REWRITE_KIND_SQL} THEN 1 ELSE 0 END) as rewritten_queries,
|
|
3648
|
+
SUM(CASE WHEN ${REWRITTEN_QUERY_REWRITE_KIND_SQL} AND selected_count > 0 THEN 1 ELSE 0 END) as rewritten_queries_with_selection,
|
|
3649
|
+
SUM(CASE WHEN NOT (${REWRITTEN_QUERY_REWRITE_KIND_SQL}) AND selected_count > 0 THEN 1 ELSE 0 END) as raw_queries_with_selection,
|
|
3650
|
+
AVG(CASE WHEN ${REWRITTEN_QUERY_REWRITE_KIND_SQL} THEN selected_count END) as avg_selected_count_for_rewritten_queries,
|
|
3651
|
+
AVG(CASE WHEN NOT (${REWRITTEN_QUERY_REWRITE_KIND_SQL}) THEN selected_count END) as avg_selected_count_for_raw_queries,
|
|
3609
3652
|
CASE
|
|
3610
3653
|
WHEN SUM(candidate_count) > 0 THEN (SUM(selected_count) * 1.0 / SUM(candidate_count))
|
|
3611
3654
|
ELSE 0
|
|
@@ -3613,15 +3656,41 @@ var SQLiteEventStore = class {
|
|
|
3613
3656
|
FROM retrieval_traces`,
|
|
3614
3657
|
[]
|
|
3615
3658
|
);
|
|
3659
|
+
const totalQueries = Number(row?.total_queries || 0);
|
|
3660
|
+
const rewrittenQueries = Number(row?.rewritten_queries || 0);
|
|
3661
|
+
const rawQueries = Math.max(0, totalQueries - rewrittenQueries);
|
|
3662
|
+
const rewrittenQueriesWithSelection = Number(row?.rewritten_queries_with_selection || 0);
|
|
3663
|
+
const rawQueriesWithSelection = Number(row?.raw_queries_with_selection || 0);
|
|
3616
3664
|
return {
|
|
3617
|
-
totalQueries
|
|
3665
|
+
totalQueries,
|
|
3618
3666
|
avgCandidateCount: Number(row?.avg_candidate_count || 0),
|
|
3619
3667
|
avgSelectedCount: Number(row?.avg_selected_count || 0),
|
|
3620
|
-
selectionRate: Number(row?.selection_rate || 0)
|
|
3668
|
+
selectionRate: Number(row?.selection_rate || 0),
|
|
3669
|
+
rewrittenQueries,
|
|
3670
|
+
rewriteRate: totalQueries > 0 ? rewrittenQueries / totalQueries : 0,
|
|
3671
|
+
rewrittenQueriesWithSelection,
|
|
3672
|
+
rawQueriesWithSelection,
|
|
3673
|
+
rewrittenSelectionRate: rewrittenQueries > 0 ? rewrittenQueriesWithSelection / rewrittenQueries : 0,
|
|
3674
|
+
rawSelectionRate: rawQueries > 0 ? rawQueriesWithSelection / rawQueries : 0,
|
|
3675
|
+
avgSelectedCountForRewrittenQueries: Number(row?.avg_selected_count_for_rewritten_queries || 0),
|
|
3676
|
+
avgSelectedCountForRawQueries: Number(row?.avg_selected_count_for_raw_queries || 0)
|
|
3621
3677
|
};
|
|
3622
3678
|
} catch (err) {
|
|
3623
3679
|
if (err?.message?.includes("no such table")) {
|
|
3624
|
-
return {
|
|
3680
|
+
return {
|
|
3681
|
+
totalQueries: 0,
|
|
3682
|
+
avgCandidateCount: 0,
|
|
3683
|
+
avgSelectedCount: 0,
|
|
3684
|
+
selectionRate: 0,
|
|
3685
|
+
rewrittenQueries: 0,
|
|
3686
|
+
rewriteRate: 0,
|
|
3687
|
+
rewrittenQueriesWithSelection: 0,
|
|
3688
|
+
rawQueriesWithSelection: 0,
|
|
3689
|
+
rewrittenSelectionRate: 0,
|
|
3690
|
+
rawSelectionRate: 0,
|
|
3691
|
+
avgSelectedCountForRewrittenQueries: 0,
|
|
3692
|
+
avgSelectedCountForRawQueries: 0
|
|
3693
|
+
};
|
|
3625
3694
|
}
|
|
3626
3695
|
throw err;
|
|
3627
3696
|
}
|
|
@@ -4433,6 +4502,57 @@ var COMMAND_ARTIFACT_PATTERNS = [
|
|
|
4433
4502
|
/<local-command-stdout>[\s\S]*?<\/local-command-stdout>/i,
|
|
4434
4503
|
/<local-command-stderr>[\s\S]*?<\/local-command-stderr>/i
|
|
4435
4504
|
];
|
|
4505
|
+
var CONTINUATION_QUERY_PATTERNS = [
|
|
4506
|
+
/^\s*(?:continue|resume|next|what(?:'s| is)? next|next\s+(?:step|task|action)|recommended\s+(?:next\s+)?(?:step|task|action)|what should (?:we|i) do next)\??\s*$/i,
|
|
4507
|
+
/^\s*(?:응\s*)?(?:이어서(?:\s*진행(?:해줘)?)?|계속(?:\s*해줘)?|다음\s*(?:단계|작업|추천\s*작업|추천|할\s*일)?(?:은|는)?(?:\s*(?:뭐야|진행(?:해줘)?))?\??|남은\s*(?:추가(?:로)?\s*)?(?:(?:할\s*만한\s*)?(?:작업|일)|할\s*일)?(?:은|는)?\s*(?:있어|있나|있나요|뭐야)\??|추천\s*작업(?:은|는)?(?:\s*뭐야)?\??|진행해줘)\s*$/i
|
|
4508
|
+
];
|
|
4509
|
+
var SHORT_REPAIR_FOLLOW_UP_PATTERNS = [
|
|
4510
|
+
/^\s*(?:fix\s+(?:it|that)|repair\s+(?:it|that)|resolve\s+(?:it|that)|that\s+bug|same\s+issue)\s*$/i,
|
|
4511
|
+
/^\s*(?:그거|그것|이거|이것)?\s*(?:고쳐줘|수정해줘|해결해줘|처리해줘)\s*$/i
|
|
4512
|
+
];
|
|
4513
|
+
var CURRENT_STATE_QUERY_PATTERNS = [
|
|
4514
|
+
/\bcurrent\b.*\b(?:state|status|deployment|blocker|pr|pull request)\b/i,
|
|
4515
|
+
/\b(?:still|as current|current)\b.*\b(?:unresolved|open|pending|not completed)\b/i,
|
|
4516
|
+
/\b(?:old|obsolete|stale|resolved|already resolved)\b.*\b(?:current|still|unresolved|open|state|status)\b/i,
|
|
4517
|
+
/(?:현재|아직|이전|오래된|해결된).*(?:상태|미해결|열린|블로커|PR|풀리퀘스트)/i
|
|
4518
|
+
];
|
|
4519
|
+
var STALE_CONTENT_PATTERNS = [
|
|
4520
|
+
/\b(?:obsolete|superseded|outdated)\b/i,
|
|
4521
|
+
/\bstale\s+(?:operational\s+)?state\b/i,
|
|
4522
|
+
/\bstale\s+after\b/i,
|
|
4523
|
+
/\bno\s+longer\s+(?:valid|current|applies?)\b/i,
|
|
4524
|
+
/\bearlier\s+(?:pull request|pr)\b[\s\S]{0,160}\b(?:open|not completed|had not completed)\b/i,
|
|
4525
|
+
/\bshould\s+not\s+be\s+injected\s+as\s+current\s+context\b/i,
|
|
4526
|
+
/(?:오래된|더 이상 유효하지|현재 상태가 아님)/i
|
|
4527
|
+
];
|
|
4528
|
+
var CONTINUATION_EXPANSION = "current next step plan roadmap status validation replay rerank memory usefulness continuation";
|
|
4529
|
+
var REPAIR_FOLLOW_UP_EXPANSION = "review blocker fix pattern dashboard error state metrics bucket validation sanitize rerun unresolved";
|
|
4530
|
+
var RETRIEVAL_PRIVACY_DECISION_EXPANSION = "retrieval telemetry privacy public api dashboard dashboards rawQueryText queryText raw query text expose safe trace metadata trace id reason strategy rewrite kind aggregate count counts candidate selected public panel";
|
|
4531
|
+
var DECISION_RECALL_TERMS = /* @__PURE__ */ new Set([
|
|
4532
|
+
"decide",
|
|
4533
|
+
"decided",
|
|
4534
|
+
"decision",
|
|
4535
|
+
"agreed",
|
|
4536
|
+
"policy",
|
|
4537
|
+
"constraint"
|
|
4538
|
+
]);
|
|
4539
|
+
var RETRIEVAL_PRIVACY_SURFACE_TERMS = /* @__PURE__ */ new Set([
|
|
4540
|
+
"retrieval",
|
|
4541
|
+
"dashboard",
|
|
4542
|
+
"telemetry",
|
|
4543
|
+
"trace"
|
|
4544
|
+
]);
|
|
4545
|
+
var DECISION_TOPIC_WEAK_TERMS = /* @__PURE__ */ new Set([
|
|
4546
|
+
"api",
|
|
4547
|
+
"dashboard",
|
|
4548
|
+
"retrieval",
|
|
4549
|
+
"trace",
|
|
4550
|
+
"telemetry",
|
|
4551
|
+
"query",
|
|
4552
|
+
"raw",
|
|
4553
|
+
"count",
|
|
4554
|
+
"counts"
|
|
4555
|
+
]);
|
|
4436
4556
|
var GENERIC_TECHNICAL_TERMS = /* @__PURE__ */ new Set([
|
|
4437
4557
|
"api",
|
|
4438
4558
|
"cli",
|
|
@@ -4450,6 +4570,87 @@ var GENERIC_TECHNICAL_TERMS = /* @__PURE__ */ new Set([
|
|
|
4450
4570
|
"db",
|
|
4451
4571
|
"sql"
|
|
4452
4572
|
]);
|
|
4573
|
+
var LOW_INFORMATION_QUERY_TERMS = /* @__PURE__ */ new Set([
|
|
4574
|
+
"the",
|
|
4575
|
+
"and",
|
|
4576
|
+
"or",
|
|
4577
|
+
"for",
|
|
4578
|
+
"from",
|
|
4579
|
+
"with",
|
|
4580
|
+
"without",
|
|
4581
|
+
"about",
|
|
4582
|
+
"what",
|
|
4583
|
+
"when",
|
|
4584
|
+
"where",
|
|
4585
|
+
"which",
|
|
4586
|
+
"who",
|
|
4587
|
+
"why",
|
|
4588
|
+
"how",
|
|
4589
|
+
"did",
|
|
4590
|
+
"does",
|
|
4591
|
+
"do",
|
|
4592
|
+
"we",
|
|
4593
|
+
"i",
|
|
4594
|
+
"in",
|
|
4595
|
+
"to",
|
|
4596
|
+
"of",
|
|
4597
|
+
"on",
|
|
4598
|
+
"as",
|
|
4599
|
+
"be",
|
|
4600
|
+
"was",
|
|
4601
|
+
"were",
|
|
4602
|
+
"decide",
|
|
4603
|
+
"decided",
|
|
4604
|
+
"decision",
|
|
4605
|
+
"agreed",
|
|
4606
|
+
"policy",
|
|
4607
|
+
"constraint",
|
|
4608
|
+
"showing",
|
|
4609
|
+
"can",
|
|
4610
|
+
"you",
|
|
4611
|
+
"me",
|
|
4612
|
+
"show",
|
|
4613
|
+
"tell",
|
|
4614
|
+
"please",
|
|
4615
|
+
"should",
|
|
4616
|
+
"would",
|
|
4617
|
+
"could",
|
|
4618
|
+
"this",
|
|
4619
|
+
"that",
|
|
4620
|
+
"these",
|
|
4621
|
+
"those",
|
|
4622
|
+
"use",
|
|
4623
|
+
"using",
|
|
4624
|
+
"treat",
|
|
4625
|
+
"continue",
|
|
4626
|
+
"resume",
|
|
4627
|
+
"next",
|
|
4628
|
+
"step",
|
|
4629
|
+
"task",
|
|
4630
|
+
"action",
|
|
4631
|
+
"current",
|
|
4632
|
+
"state",
|
|
4633
|
+
"status",
|
|
4634
|
+
"old",
|
|
4635
|
+
"already",
|
|
4636
|
+
"still",
|
|
4637
|
+
"near",
|
|
4638
|
+
"today",
|
|
4639
|
+
"\uC751",
|
|
4640
|
+
"\uADF8\uAC70",
|
|
4641
|
+
"\uADF8\uAC83",
|
|
4642
|
+
"\uC774\uAC70",
|
|
4643
|
+
"\uC774\uAC83",
|
|
4644
|
+
"\uB2E4\uC74C",
|
|
4645
|
+
"\uB2E8\uACC4",
|
|
4646
|
+
"\uC9C4\uD589",
|
|
4647
|
+
"\uC9C4\uD589\uD574\uC918",
|
|
4648
|
+
"\uACC4\uC18D",
|
|
4649
|
+
"\uC774\uC5B4\uC11C",
|
|
4650
|
+
"\uACE0\uCCD0\uC918",
|
|
4651
|
+
"\uC218\uC815\uD574\uC918",
|
|
4652
|
+
"\uD574\uACB0\uD574\uC918"
|
|
4653
|
+
]);
|
|
4453
4654
|
function isCommandArtifactQuery(query) {
|
|
4454
4655
|
const trimmed = query.trim();
|
|
4455
4656
|
if (!trimmed)
|
|
@@ -4461,6 +4662,73 @@ function isCommandArtifactQuery(query) {
|
|
|
4461
4662
|
return true;
|
|
4462
4663
|
return COMMAND_ARTIFACT_PATTERNS.some((pattern) => pattern.test(trimmed));
|
|
4463
4664
|
}
|
|
4665
|
+
function isGenericContinuationQuery(query) {
|
|
4666
|
+
const trimmed = query.trim();
|
|
4667
|
+
if (!trimmed)
|
|
4668
|
+
return false;
|
|
4669
|
+
if (!CONTINUATION_QUERY_PATTERNS.some((pattern) => pattern.test(trimmed)))
|
|
4670
|
+
return false;
|
|
4671
|
+
if (extractTechnicalQueryTerms(trimmed).length > 0)
|
|
4672
|
+
return false;
|
|
4673
|
+
const tokens = trimmed.match(/[A-Za-z0-9가-힣#._/-]+/g) ?? [];
|
|
4674
|
+
if (tokens.length > 10)
|
|
4675
|
+
return false;
|
|
4676
|
+
return !/[A-Za-z0-9_-]+\.[A-Za-z0-9]+/.test(trimmed) && !/(?:^|\s)(?:feat|fix|chore|refactor|docs)\/[A-Za-z0-9._-]+/.test(trimmed) && !/[A-Za-z]:?[\\/]|\/Users\/|\.\/|\.\.\//.test(trimmed);
|
|
4677
|
+
}
|
|
4678
|
+
function isShortRepairFollowUpQuery(query) {
|
|
4679
|
+
const trimmed = query.trim();
|
|
4680
|
+
if (!trimmed)
|
|
4681
|
+
return false;
|
|
4682
|
+
if (extractTechnicalQueryTerms(trimmed).length > 0)
|
|
4683
|
+
return false;
|
|
4684
|
+
const tokens = trimmed.match(/[A-Za-z0-9가-힣#._/-]+/g) ?? [];
|
|
4685
|
+
if (tokens.length > 8)
|
|
4686
|
+
return false;
|
|
4687
|
+
return SHORT_REPAIR_FOLLOW_UP_PATTERNS.some((pattern) => pattern.test(trimmed));
|
|
4688
|
+
}
|
|
4689
|
+
function isCurrentStateQuery(query) {
|
|
4690
|
+
const trimmed = query.trim();
|
|
4691
|
+
if (!trimmed)
|
|
4692
|
+
return false;
|
|
4693
|
+
return CURRENT_STATE_QUERY_PATTERNS.some((pattern) => pattern.test(trimmed));
|
|
4694
|
+
}
|
|
4695
|
+
function isStaleOrSupersededContent(content) {
|
|
4696
|
+
const trimmed = content.trim();
|
|
4697
|
+
if (!trimmed)
|
|
4698
|
+
return false;
|
|
4699
|
+
return STALE_CONTENT_PATTERNS.some((pattern) => pattern.test(trimmed));
|
|
4700
|
+
}
|
|
4701
|
+
function buildRetrievalQualityQuery(query) {
|
|
4702
|
+
const trimmed = query.trim();
|
|
4703
|
+
if (!trimmed)
|
|
4704
|
+
return query;
|
|
4705
|
+
if (isRetrievalPrivacyDecisionQuery(trimmed)) {
|
|
4706
|
+
return `${trimmed} ${RETRIEVAL_PRIVACY_DECISION_EXPANSION}`;
|
|
4707
|
+
}
|
|
4708
|
+
if (isGenericContinuationQuery(trimmed)) {
|
|
4709
|
+
return `${trimmed} ${CONTINUATION_EXPANSION}`;
|
|
4710
|
+
}
|
|
4711
|
+
if (isShortRepairFollowUpQuery(trimmed)) {
|
|
4712
|
+
return `${trimmed} ${REPAIR_FOLLOW_UP_EXPANSION}`;
|
|
4713
|
+
}
|
|
4714
|
+
return query;
|
|
4715
|
+
}
|
|
4716
|
+
function isRetrievalPrivacyDecisionQuery(query) {
|
|
4717
|
+
const trimmed = query.trim();
|
|
4718
|
+
if (!trimmed)
|
|
4719
|
+
return false;
|
|
4720
|
+
const terms = new Set(tokenizeQualityText(trimmed));
|
|
4721
|
+
const hasDecisionSignal = hasAnyTerm(terms, DECISION_RECALL_TERMS) || /(?:결정|정책|원칙)/i.test(trimmed);
|
|
4722
|
+
if (!hasDecisionSignal)
|
|
4723
|
+
return false;
|
|
4724
|
+
const hasRawQuerySignal = terms.has("raw") && terms.has("query");
|
|
4725
|
+
const hasPrivacySignal = terms.has("privacy") || terms.has("expose") || terms.has("redacted");
|
|
4726
|
+
const hasRetrievalSurface = hasAnyTerm(terms, RETRIEVAL_PRIVACY_SURFACE_TERMS) || terms.has("api") && terms.has("query");
|
|
4727
|
+
const hasQuerySurface = terms.has("query") && (terms.has("dashboard") || terms.has("trace") || terms.has("telemetry") || terms.has("api"));
|
|
4728
|
+
const hasKoreanRetrievalSurface = /(?:검색|리트리벌|retrieval|대시보드|트레이스|텔레메트리|telemetry)/i.test(trimmed);
|
|
4729
|
+
const hasKoreanPrivacySurface = /(?:원문|쿼리|프라이버시|개인정보|노출|트레이스|메타데이터)/i.test(trimmed);
|
|
4730
|
+
return (hasRetrievalSurface || hasKoreanRetrievalSurface && hasKoreanPrivacySurface) && (hasRawQuerySignal || hasPrivacySignal || hasQuerySurface || hasKoreanPrivacySurface);
|
|
4731
|
+
}
|
|
4464
4732
|
function extractTechnicalQueryTerms(query) {
|
|
4465
4733
|
const matches = query.match(/[A-Za-z][A-Za-z0-9_.:-]{2,}/g) ?? [];
|
|
4466
4734
|
const terms = matches.filter((term) => {
|
|
@@ -4478,9 +4746,87 @@ function hasTechnicalTermOverlap(query, content) {
|
|
|
4478
4746
|
const normalizedContent = content.toLowerCase();
|
|
4479
4747
|
return terms.some((term) => normalizedContent.includes(term));
|
|
4480
4748
|
}
|
|
4749
|
+
function hasDiscriminativeTermOverlap(query, content) {
|
|
4750
|
+
const queryTerms = extractDiscriminativeQueryTerms(query);
|
|
4751
|
+
const contentTerms = new Set(tokenizeQualityText(content));
|
|
4752
|
+
if (isRetrievalPrivacyDecisionQuery(query) && hasRetrievalPrivacyDecisionContent(contentTerms)) {
|
|
4753
|
+
return true;
|
|
4754
|
+
}
|
|
4755
|
+
if (shouldRequireDecisionTopicOverlap(query)) {
|
|
4756
|
+
const topicTerms = queryTerms.filter((term) => !DECISION_TOPIC_WEAK_TERMS.has(term));
|
|
4757
|
+
if (topicTerms.length > 0) {
|
|
4758
|
+
return topicTerms.some((term) => contentTerms.has(term));
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
if (queryTerms.length < 3)
|
|
4762
|
+
return true;
|
|
4763
|
+
const requiredHits = queryTerms.length >= 3 ? 2 : 1;
|
|
4764
|
+
let hits = 0;
|
|
4765
|
+
for (const term of queryTerms) {
|
|
4766
|
+
if (contentTerms.has(term))
|
|
4767
|
+
hits += 1;
|
|
4768
|
+
if (hits >= requiredHits)
|
|
4769
|
+
return true;
|
|
4770
|
+
}
|
|
4771
|
+
return false;
|
|
4772
|
+
}
|
|
4481
4773
|
function shouldApplyTechnicalGuard(query) {
|
|
4482
4774
|
return extractTechnicalQueryTerms(query).length > 0;
|
|
4483
4775
|
}
|
|
4776
|
+
function hasAnyTerm(terms, expectedTerms) {
|
|
4777
|
+
let found = false;
|
|
4778
|
+
expectedTerms.forEach((term) => {
|
|
4779
|
+
if (terms.has(term))
|
|
4780
|
+
found = true;
|
|
4781
|
+
});
|
|
4782
|
+
return found;
|
|
4783
|
+
}
|
|
4784
|
+
function shouldRequireDecisionTopicOverlap(query) {
|
|
4785
|
+
if (isRetrievalPrivacyDecisionQuery(query))
|
|
4786
|
+
return false;
|
|
4787
|
+
const trimmed = query.trim();
|
|
4788
|
+
if (!trimmed)
|
|
4789
|
+
return false;
|
|
4790
|
+
const terms = new Set(tokenizeQualityText(trimmed));
|
|
4791
|
+
return hasAnyTerm(terms, DECISION_RECALL_TERMS) || /(?:결정|정책|원칙)/i.test(trimmed);
|
|
4792
|
+
}
|
|
4793
|
+
function extractDiscriminativeQueryTerms(query) {
|
|
4794
|
+
const seen = /* @__PURE__ */ new Set();
|
|
4795
|
+
const terms = [];
|
|
4796
|
+
for (const token of tokenizeQualityText(query)) {
|
|
4797
|
+
if (LOW_INFORMATION_QUERY_TERMS.has(token))
|
|
4798
|
+
continue;
|
|
4799
|
+
if (GENERIC_TECHNICAL_TERMS.has(token))
|
|
4800
|
+
continue;
|
|
4801
|
+
if (seen.has(token))
|
|
4802
|
+
continue;
|
|
4803
|
+
seen.add(token);
|
|
4804
|
+
terms.push(token);
|
|
4805
|
+
}
|
|
4806
|
+
return terms;
|
|
4807
|
+
}
|
|
4808
|
+
function hasRetrievalPrivacyDecisionContent(contentTerms) {
|
|
4809
|
+
const hasDashboardTraceMetadata = contentTerms.has("dashboard") && (contentTerms.has("trace") || contentTerms.has("metadata")) && (contentTerms.has("safe") || contentTerms.has("strategy") || contentTerms.has("rewrite") || contentTerms.has("candidate") || contentTerms.has("selected") || contentTerms.has("count") || contentTerms.has("reason"));
|
|
4810
|
+
const hasRawQueryPrivacyPolicy = contentTerms.has("retrieval") && (contentTerms.has("privacy") || contentTerms.has("expose") || contentTerms.has("raw") && contentTerms.has("query") && (contentTerms.has("dashboard") || contentTerms.has("telemetry") || contentTerms.has("api") || contentTerms.has("public")));
|
|
4811
|
+
return hasDashboardTraceMetadata || hasRawQueryPrivacyPolicy;
|
|
4812
|
+
}
|
|
4813
|
+
function tokenizeQualityText(text) {
|
|
4814
|
+
return text.replace(/([a-z])([A-Z])/g, "$1 $2").toLowerCase().replace(/[^A-Za-z0-9가-힣\s_.:-]/g, " ").split(/\s+/).flatMap((token) => token.split(/(?=[._:-])|(?<=[._:-])/g)).map((token) => normalizeQualityToken(token.replace(/^[._:-]+|[._:-]+$/g, ""))).filter((token) => token.length >= 2);
|
|
4815
|
+
}
|
|
4816
|
+
function normalizeQualityToken(token) {
|
|
4817
|
+
if (token === "apis")
|
|
4818
|
+
return "api";
|
|
4819
|
+
if (token === "ids")
|
|
4820
|
+
return "id";
|
|
4821
|
+
if (LOW_INFORMATION_QUERY_TERMS.has(token) || GENERIC_TECHNICAL_TERMS.has(token))
|
|
4822
|
+
return token;
|
|
4823
|
+
if (token.length > 4 && token.endsWith("ies"))
|
|
4824
|
+
return `${token.slice(0, -3)}y`;
|
|
4825
|
+
if (token.length > 3 && token.endsWith("s") && !token.endsWith("ss") && !token.endsWith("us") && !token.endsWith("is")) {
|
|
4826
|
+
return token.slice(0, -1);
|
|
4827
|
+
}
|
|
4828
|
+
return token;
|
|
4829
|
+
}
|
|
4484
4830
|
|
|
4485
4831
|
// src/core/retriever.ts
|
|
4486
4832
|
var DEFAULT_OPTIONS = {
|
|
@@ -4533,6 +4879,7 @@ var Retriever = class {
|
|
|
4533
4879
|
const opts = { ...DEFAULT_OPTIONS, ...options };
|
|
4534
4880
|
const sessionFilter = opts.scope?.sessionId ?? opts.sessionId;
|
|
4535
4881
|
const fallbackTrace = [];
|
|
4882
|
+
const qualityQuery = buildRetrievalQualityQuery(query);
|
|
4536
4883
|
if (isCommandArtifactQuery(query)) {
|
|
4537
4884
|
fallbackTrace.push("guard:command-artifact-query");
|
|
4538
4885
|
const emptyMatch = this.matcher.matchSearchResults([], () => 0);
|
|
@@ -4549,6 +4896,7 @@ var Retriever = class {
|
|
|
4549
4896
|
const fallbackEnabled = (opts.strategy ?? "auto") === "auto";
|
|
4550
4897
|
const primaryStrategy = opts.strategy === "auto" ? "fast" : opts.strategy || "fast";
|
|
4551
4898
|
let current = await this.runStage(query, {
|
|
4899
|
+
qualityQuery,
|
|
4552
4900
|
strategy: primaryStrategy,
|
|
4553
4901
|
topK: opts.topK,
|
|
4554
4902
|
minScore: opts.minScore,
|
|
@@ -4566,6 +4914,7 @@ var Retriever = class {
|
|
|
4566
4914
|
fallbackTrace.push(`stage:primary:${primaryStrategy}`);
|
|
4567
4915
|
if (fallbackEnabled && this.shouldFallback(current.matchResult, current.results) && primaryStrategy !== "deep") {
|
|
4568
4916
|
current = await this.runStage(query, {
|
|
4917
|
+
qualityQuery,
|
|
4569
4918
|
strategy: "deep",
|
|
4570
4919
|
topK: opts.topK,
|
|
4571
4920
|
minScore: opts.minScore,
|
|
@@ -4583,6 +4932,7 @@ var Retriever = class {
|
|
|
4583
4932
|
}
|
|
4584
4933
|
if (fallbackEnabled && this.shouldFallback(current.matchResult, current.results)) {
|
|
4585
4934
|
current = await this.runStage(query, {
|
|
4935
|
+
qualityQuery,
|
|
4586
4936
|
strategy: "deep",
|
|
4587
4937
|
topK: opts.topK,
|
|
4588
4938
|
minScore: Math.max(0.5, opts.minScore - 0.15),
|
|
@@ -4599,11 +4949,21 @@ var Retriever = class {
|
|
|
4599
4949
|
fallbackTrace.push("fallback:scope-expanded");
|
|
4600
4950
|
}
|
|
4601
4951
|
if (fallbackEnabled && this.shouldFallback(current.matchResult, current.results)) {
|
|
4602
|
-
const summary = await this.buildSummaryFallback(
|
|
4952
|
+
const summary = await this.buildSummaryFallback(qualityQuery, opts.topK);
|
|
4953
|
+
const scopedSummary = await this.applyScopeFilters(summary, {
|
|
4954
|
+
scope: opts.scope,
|
|
4955
|
+
projectScopeMode: opts.projectScopeMode,
|
|
4956
|
+
projectHash: opts.projectHash,
|
|
4957
|
+
allowedProjectHashes: opts.allowedProjectHashes
|
|
4958
|
+
});
|
|
4959
|
+
const filteredSummary = this.applyQualityFilters(scopedSummary, {
|
|
4960
|
+
query,
|
|
4961
|
+
minScore: opts.minScore
|
|
4962
|
+
});
|
|
4603
4963
|
current = {
|
|
4604
|
-
results:
|
|
4605
|
-
candidateResults:
|
|
4606
|
-
matchResult: this.matcher.matchSearchResults(
|
|
4964
|
+
results: filteredSummary,
|
|
4965
|
+
candidateResults: filteredSummary,
|
|
4966
|
+
matchResult: this.matcher.matchSearchResults(filteredSummary, () => 0)
|
|
4607
4967
|
};
|
|
4608
4968
|
fallbackTrace.push("fallback:summary");
|
|
4609
4969
|
}
|
|
@@ -4628,7 +4988,10 @@ var Retriever = class {
|
|
|
4628
4988
|
semanticScore: r.semanticScore,
|
|
4629
4989
|
lexicalScore: r.lexicalScore,
|
|
4630
4990
|
recencyScore: r.recencyScore
|
|
4631
|
-
}))
|
|
4991
|
+
})),
|
|
4992
|
+
rawQueryText: current.queryRewriteKind ? query : void 0,
|
|
4993
|
+
effectiveQueryText: current.effectiveQueryText,
|
|
4994
|
+
queryRewriteKind: current.queryRewriteKind
|
|
4632
4995
|
};
|
|
4633
4996
|
}
|
|
4634
4997
|
async retrieveUnified(query, options = {}) {
|
|
@@ -4666,8 +5029,11 @@ var Retriever = class {
|
|
|
4666
5029
|
}
|
|
4667
5030
|
}
|
|
4668
5031
|
async runStage(query, input) {
|
|
4669
|
-
|
|
4670
|
-
let
|
|
5032
|
+
const searchQuery = input.qualityQuery ?? query;
|
|
5033
|
+
let rerankQuery = searchQuery;
|
|
5034
|
+
let effectiveQueryText;
|
|
5035
|
+
let queryRewriteKind;
|
|
5036
|
+
let initialResults = await this.searchByStrategy(searchQuery, {
|
|
4671
5037
|
strategy: input.strategy,
|
|
4672
5038
|
topK: input.topK,
|
|
4673
5039
|
minScore: input.minScore,
|
|
@@ -4675,9 +5041,12 @@ var Retriever = class {
|
|
|
4675
5041
|
});
|
|
4676
5042
|
if (input.intentRewrite && input.strategy === "deep" && this.queryRewriter) {
|
|
4677
5043
|
const rewritten = (await this.queryRewriter(query))?.trim();
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
5044
|
+
const normalizedQuery = query.trim();
|
|
5045
|
+
if (rewritten && rewritten !== normalizedQuery) {
|
|
5046
|
+
effectiveQueryText = `${normalizedQuery} ${rewritten}`.trim();
|
|
5047
|
+
queryRewriteKind = "intent-rewrite";
|
|
5048
|
+
rerankQuery = buildRetrievalQualityQuery(effectiveQueryText);
|
|
5049
|
+
const rewrittenResults = await this.searchByStrategy(buildRetrievalQualityQuery(rewritten), {
|
|
4681
5050
|
strategy: "deep",
|
|
4682
5051
|
topK: input.topK,
|
|
4683
5052
|
minScore: Math.max(0.5, input.minScore - 0.1),
|
|
@@ -4704,10 +5073,14 @@ var Retriever = class {
|
|
|
4704
5073
|
});
|
|
4705
5074
|
const top = qualityFiltered.slice(0, input.topK);
|
|
4706
5075
|
const matchResult = this.matcher.matchSearchResults(top, () => 0);
|
|
4707
|
-
return { results: top, candidateResults: qualityFiltered, matchResult };
|
|
5076
|
+
return { results: top, candidateResults: qualityFiltered, matchResult, effectiveQueryText, queryRewriteKind };
|
|
4708
5077
|
}
|
|
4709
5078
|
applyQualityFilters(results, options) {
|
|
4710
5079
|
let filtered = [...results];
|
|
5080
|
+
if (isCurrentStateQuery(options.query)) {
|
|
5081
|
+
filtered = filtered.filter((result) => !isStaleOrSupersededContent(result.content));
|
|
5082
|
+
}
|
|
5083
|
+
filtered = filtered.filter((result) => hasDiscriminativeTermOverlap(options.query, result.content));
|
|
4711
5084
|
if (shouldApplyTechnicalGuard(options.query)) {
|
|
4712
5085
|
filtered = filtered.filter((result) => hasTechnicalTermOverlap(options.query, result.content));
|
|
4713
5086
|
}
|
|
@@ -5015,7 +5388,21 @@ _Context:_ ${sessionContext}`;
|
|
|
5015
5388
|
});
|
|
5016
5389
|
}
|
|
5017
5390
|
tokenize(text) {
|
|
5018
|
-
return text.toLowerCase().replace(/[^\p{L}\p{N}\s]/gu, " ").split(/\s+/).filter((t) => t.length >= 2).slice(0, 64);
|
|
5391
|
+
return text.replace(/([a-z])([A-Z])/g, "$1 $2").toLowerCase().replace(/[^\p{L}\p{N}\s]/gu, " ").split(/\s+/).map((token) => this.normalizeToken(token)).filter((t) => t.length >= 2).slice(0, 64);
|
|
5392
|
+
}
|
|
5393
|
+
normalizeToken(token) {
|
|
5394
|
+
if (token === "apis")
|
|
5395
|
+
return "api";
|
|
5396
|
+
if (token === "ids")
|
|
5397
|
+
return "id";
|
|
5398
|
+
if (token === "does")
|
|
5399
|
+
return token;
|
|
5400
|
+
if (token.length > 4 && token.endsWith("ies"))
|
|
5401
|
+
return `${token.slice(0, -3)}y`;
|
|
5402
|
+
if (token.length > 3 && token.endsWith("s") && !token.endsWith("ss") && !token.endsWith("us") && !token.endsWith("is") && !token.endsWith("ps")) {
|
|
5403
|
+
return token.slice(0, -1);
|
|
5404
|
+
}
|
|
5405
|
+
return token;
|
|
5019
5406
|
}
|
|
5020
5407
|
keywordOverlap(a, b) {
|
|
5021
5408
|
if (a.length === 0 || b.length === 0)
|
|
@@ -5078,9 +5465,9 @@ var RetrievalAnalyticsService = class {
|
|
|
5078
5465
|
await this.deps.initialize();
|
|
5079
5466
|
return this.deps.retrievalStore.getHelpfulMemories(limit);
|
|
5080
5467
|
}
|
|
5081
|
-
async getHelpfulnessStats() {
|
|
5468
|
+
async getHelpfulnessStats(since) {
|
|
5082
5469
|
await this.deps.initialize();
|
|
5083
|
-
return this.deps.retrievalStore.getHelpfulnessStats();
|
|
5470
|
+
return this.deps.retrievalStore.getHelpfulnessStats(since);
|
|
5084
5471
|
}
|
|
5085
5472
|
/**
|
|
5086
5473
|
* Extract topic keywords from event content (markdown headings and key terms).
|
|
@@ -5505,7 +5892,9 @@ var RetrievalOrchestrator = class {
|
|
|
5505
5892
|
await this.deps.traceStore.recordRetrievalTrace({
|
|
5506
5893
|
sessionId: options?.sessionId,
|
|
5507
5894
|
projectHash: projectHash || void 0,
|
|
5508
|
-
queryText: query,
|
|
5895
|
+
queryText: result.effectiveQueryText || query,
|
|
5896
|
+
rawQueryText: result.rawQueryText || (result.queryRewriteKind ? query : void 0),
|
|
5897
|
+
queryRewriteKind: result.queryRewriteKind || "none",
|
|
5509
5898
|
strategy: options?.strategy || "auto",
|
|
5510
5899
|
candidateEventIds,
|
|
5511
5900
|
selectedEventIds,
|
|
@@ -7495,8 +7884,8 @@ var MemoryService = class {
|
|
|
7495
7884
|
/**
|
|
7496
7885
|
* Get helpfulness statistics for dashboard
|
|
7497
7886
|
*/
|
|
7498
|
-
async getHelpfulnessStats() {
|
|
7499
|
-
return this.retrievalAnalyticsService.getHelpfulnessStats();
|
|
7887
|
+
async getHelpfulnessStats(since) {
|
|
7888
|
+
return this.retrievalAnalyticsService.getHelpfulnessStats(since);
|
|
7500
7889
|
}
|
|
7501
7890
|
/**
|
|
7502
7891
|
* Mark a consolidated memory as accessed
|