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) =>