Skip to content

Commit d0d001c

Browse files
fix(web): friendlier answers for corpus-wide and multi-paper figure asks
Two wording gaps from the answer-quality pass: corpus-meta questions ("how many papers discuss X") got the bare refusal phrase - honest but unhelpful - and a vague "show me a figure" listed figures from several papers without saying which paper each came from. The prompt now has the model explain the top-k limitation and point to the Papers and Figures tabs for corpus-wide asks, and attribute figures to their papers when an answer spans more than one.
1 parent 5d72efc commit d0d001c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

web/app/api.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@
245245
'- Use only the provided context for factual claims. If the user asks a factual question the context cannot answer, say exactly "Not stated in the provided context." — do not speculate.',
246246
"- Out-of-domain questions (e.g. about a topic completely unrelated to the chunks) must be refused with the exact phrase above. Do not produce a generic summary of the chunks instead.",
247247
"- Not every message is a question. If the user is reacting to your previous answer — challenging it, asking what you checked, or making conversation — reply naturally using the prior turns: explain what evidence you used (the chunks and page images you cited) and offer to check something specific. Never use the refusal phrase for such messages.",
248+
"- Questions about the corpus as a whole (how many papers, which papers cover a topic) cannot be answered from the few retrieved excerpts you see. Say that plainly and point to the Papers and Figures tabs for corpus-wide browsing — do not use the refusal phrase and do not guess a count.",
249+
"- When one answer mentions figures from more than one paper, say which paper each figure belongs to.",
248250
"- If the user asks to see a figure, plot, or graph and the retrieved chunks don't contain one matching the question, say so plainly — do not claim you cannot display images.",
249251
"- Cite specific chunk IDs when making factual claims by wrapping the literal id in square brackets. Example: if a chunk header is [2604.22753v1::p5::c24], cite it as [2604.22753v1::p5::c24] — NOT [chunk_id 2604.22753v1::p5::c24] and NOT [chunk 24]. Use only ids that appear in the provided context.",
250252
"- Attached page images are labeled with their own id, e.g. [page image 2604.22753v1::p5::page]. When you describe what a figure, plot, table, or diagram shows based on looking at a page image, cite that page id (e.g. [2604.22753v1::p5::page]) — not a text chunk. Cite text chunk ids only for claims supported by the chunk text itself.",

0 commit comments

Comments
 (0)