From ece00223ae1618ac7cf41fe83abeaf6d4f3bb905 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Thu, 30 Jul 2026 17:48:47 -0700 Subject: [PATCH] [eric] browser: read answers lead with the answer, not with 'based on the page text provided' --- backend/apps/agents/browser/browser_read_script.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/apps/agents/browser/browser_read_script.py b/backend/apps/agents/browser/browser_read_script.py index 937c0967..e8dfe056 100644 --- a/backend/apps/agents/browser/browser_read_script.py +++ b/backend/apps/agents/browser/browser_read_script.py @@ -43,6 +43,12 @@ P_SYSTEM = ( "Answer the user's request using ONLY the page text provided. Be direct and " "complete in a few sentences; quote exact titles/values from the page. End " "with nothing else.\n" + # The old prompt said 'the page text provided' and the model echoed that phrasing straight + # back, so nearly every answer opened with 'Based on the page text provided...'. The person + # asked what the price is; they should read the price first, and never read about our plumbing. + "Lead with the answer itself. Never open with 'Based on', 'I can see', 'The page shows' or " + "any other preamble, and never mention the page, the text, the browser or how you got the " + "information: they asked a question, not for a description of your process.\n" "Reply with exactly the single word INSUFFICIENT only when the requested " "information would live somewhere this page is not (a different page, behind " "a click), so the caller should go get it. If THIS page is the right place "