Kagzy commited on
Commit
52cf75e
路
verified 路
1 Parent(s): 2422591

quieter label for general-knowledge answers

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -204,11 +204,7 @@ def _render_explanation(result: dict[str, Any]) -> str:
204
  lines.append(" 路 ".join(meta) + "\n")
205
 
206
  if result.get("source") == "general_knowledge":
207
- lines.append(
208
- "> **Answered from general knowledge, not from papers.** Nothing in the index or "
209
- "a live search covered this, so the answer below is the model's own knowledge and "
210
- "has no citations. Check anything that matters against a primary source.\n"
211
- )
212
  explanation = (result.get("explanation") or "").strip()
213
  lines.append(explanation or "_No explanation was produced._")
214
 
@@ -216,7 +212,7 @@ def _render_explanation(result: dict[str, Any]) -> str:
216
  if passages:
217
  grounded = result.get("source") != "general_knowledge"
218
  lines.append("\n---\n**" + ("Grounded in these passages" if grounded
219
- else "Related papers (further reading, not sources)")
220
  + "**\n")
221
  for p in passages[:6]:
222
  title = (p.get("title") or "").strip()
 
204
  lines.append(" 路 ".join(meta) + "\n")
205
 
206
  if result.get("source") == "general_knowledge":
207
+ lines.append("<sub>general knowledge &middot; no citations</sub>\n")
 
 
 
 
208
  explanation = (result.get("explanation") or "").strip()
209
  lines.append(explanation or "_No explanation was produced._")
210
 
 
212
  if passages:
213
  grounded = result.get("source") != "general_knowledge"
214
  lines.append("\n---\n**" + ("Grounded in these passages" if grounded
215
+ else "Related papers")
216
  + "**\n")
217
  for p in passages[:6]:
218
  title = (p.get("title") or "").strip()