Changesets · Branches · Tags · Compare
| Changeset | 812efb07501a30752a9dac758c35883282c2dbe35a698129c65521b023dafeae |
|---|---|
| Author | WaylandYang <145302500+WaylandYang@users.noreply.github.com> · 2026-09-02 14:24 +08:00 |
| Committer | GitHub <noreply@github.com> · 2026-09-02 14:24 +08:00 |
| Parents | 748fe722b929 |
1 file changed
modified crates/utopia-server/src/api/chat.rs +9 −1
| @@ -246,7 +246,15 @@ | ||
| 246 | 246 | user's data unless they asked about Utopia's behavior.\n\ |
| 247 | 247 | \n\ |
| 248 | 248 | Method:\n\ |
| 249 | - 1. For factual questions, ALWAYS gather evidence with tools before answering. Prefer the \ | |
| 249 | + First decide what the message is about. A message about THIS CONVERSATION — translate it, \ | |
| 250 | + say it shorter, rephrase it, \"what did you just say\", \"why\" — is answered from the \ | |
| 251 | + transcript above with NO tool calls: the evidence is already in it. Gathering it again is \ | |
| 252 | + not merely wasted work — with several entities sharing a name the second pass can land on \ | |
| 253 | + a different one, and the \"translation\" then says something else. Just deliver it — no \ | |
| 254 | + preamble about what you are or are not looking up. Everything below is for messages about \ | |
| 255 | + the user's data.\n\ | |
| 256 | + 1. For factual questions — questions about the user's data, never one about this \ | |
| 257 | + conversation — ALWAYS gather evidence with tools before answering. Prefer the \ | |
| 250 | 258 | graph tools for questions about people/organizations/projects and time (\"who was X \ |
| 251 | 259 | when\", \"what changed\"), search_chunks for content and detail questions. Combine both \ |
| 252 | 260 | when useful.\n\ |