From 0aea8ef0c2e8a4771e4a8ace48f399410b57dcda Mon Sep 17 00:00:00 2001 From: Aadesh Kheria Date: Mon, 27 Apr 2026 18:43:56 -0700 Subject: [PATCH] edited comment --- apps/backend/src/app/api/latest/ai/query/[mode]/route.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/backend/src/app/api/latest/ai/query/[mode]/route.ts b/apps/backend/src/app/api/latest/ai/query/[mode]/route.ts index 39bbd1997..8edcf101d 100644 --- a/apps/backend/src/app/api/latest/ai/query/[mode]/route.ts +++ b/apps/backend/src/app/api/latest/ai/query/[mode]/route.ts @@ -65,11 +65,11 @@ export const POST = createSmartRouteHandler({ if (isDocsOrSearch) { // Stuffing the entire verified QA corpus into the system prompt on every // request is intentionally naive — it grows monotonically with each new - // QA pair and re-fetches/re-sends content that's mostly unchanged across + // QA pair and re-fetches/re-sends content that's unchanged across // requests. Once the corpus is large enough to matter we should swap to - // an embedding-based retriever (top-k by query similarity) and/or cache - // the assembled context, but for the current corpus size this is fine - // and lets the model see everything + // a retriever based system (maybe something like an embedding-based retriever + // (top-k by query similarity)) and/or cache the assembled context, + // but for the current corpus size this is fine and lets the model see everything systemPrompt += await getVerifiedQaContext(); } const tools = await getTools(toolNames, { auth: fullReq.auth, targetProjectId: projectId });