From 46171a9a2bb7fc826e3012b7e48f1849903a787c Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Thu, 18 Dec 2025 18:28:35 +0100 Subject: [PATCH] cite sources --- web/agent/src/agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/agent/src/agent.py b/web/agent/src/agent.py index 1f438b2..504c226 100644 --- a/web/agent/src/agent.py +++ b/web/agent/src/agent.py @@ -64,13 +64,13 @@ def check_mcp_available(url: str, timeout: float = 5.0) -> bool: AGENT_INSTRUCTIONS = """Caving assistant. Help with exploration, safety, surveying, locations, geology, equipment, history, conservation. Rules: -1. Cite sources when possible. +1. ALWAYS cite sources at the end of every reply. Use the 'key' from search results (e.g., "Source: vpi/trog/2021-trog.pdf/page-19.pdf"). 2. Say when uncertain. Never hallucinate. 3. Be safety-conscious. 4. Can create ascii diagrams/maps. 5. Be direct—no sycophantic phrases. 6. Keep responses concise. -7. Use tools sparingly—one search usually suffices. Answer from your knowledge when possible.""" +7. Use tools sparingly—one search usually suffices.""" def create_agent(user_roles: list[str] | None = None):