From 0eff6b21d9f676ecb23ab6c904350f81d7fa8925 Mon Sep 17 00:00:00 2001 From: Aadesh Kheria Date: Mon, 20 Apr 2026 16:25:05 -0700 Subject: [PATCH] bug fix --- apps/backend/src/lib/ai/verified-qa.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/backend/src/lib/ai/verified-qa.ts b/apps/backend/src/lib/ai/verified-qa.ts index d177b8f3e..2f3f701db 100644 --- a/apps/backend/src/lib/ai/verified-qa.ts +++ b/apps/backend/src/lib/ai/verified-qa.ts @@ -3,10 +3,8 @@ import { Result } from "@stackframe/stack-shared/dist/utils/results"; import { callSql } from "./mcp-logger"; type VerifiedRow = { - human_corrected_question: string | null, - human_corrected_answer: string | null, question: string, - response: string, + answer: string, }; export async function getVerifiedQaContext(): Promise { @@ -20,13 +18,13 @@ export async function getVerifiedQaContext(): Promise { async function getVerifiedQaContextInner(): Promise { const rows = await callSql( - "SELECT human_corrected_question, human_corrected_answer, question, response FROM published_qa" + "SELECT question, answer FROM published_qa" ); if (rows.length === 0) return ""; const pairs = rows.map(row => ({ - question: row.human_corrected_question ?? row.question, - answer: row.human_corrected_answer ?? row.response, + question: row.question, + answer: row.answer, })); const formatted = pairs.map((p, i) =>