最新资讯
dev.to 用 Switch 构建 AI 投资委员会:多空研究员 Agent 协作 bloomberg.com 微软正结束向甲骨文租用 AI 云算力的协议 the-decoder.com Perplexity 推出常驻 AI Agent“Teammates” dev.to osFoundry的Loop和Graph是什么,何时该用哪个? dev.to 限制上下文而非限制评审:面向开源补丁的字节预算证据包 dev.to 约束自主智能体:用 GKE Agent Sandbox 实现亚秒级零信任执行 dev.to 实测:给 Claude Code 十个翻译工具,三次运行中有一次完全不用 unite.ai Ramp 数据:企业 AI token 用量增速超过支出增速 pub.towardsai.net AI 生成的 ICLR 评审对被拒论文更宽松:如何压力测试你的 rebuttal blogs.nvidia.com NVIDIA 开源工具如何助力研究者构建下一代 6G 网络 wired.com AI 公司正积极收购企业工作文件与邮件用于模型训练 wechat 网友用AI搓出来的“App”,可以直接在小红书玩起来了?
多元动态
登录 注册
智能体 dev.to · @Akanksha Sharma

我构建了一个先查证再回答的 AI Agent

原文 我的收藏

作者因 AI 回答看似合理但缺乏上下文,开发了 ContextGuide:该 Agent 在生成答案前先通过 Sanity Context 与 MCP 查询结构化知识库,而非依赖模型自身记忆。文章给出工作流程示意,但未提供准确率、延迟等量化评测结果。

AI推荐理由 作者构建 ContextGuide,让 AI Agent 在回答前先通过 Sanity Context 与 MCP 查询结构化知识库,以缓解模型凭记忆作答导致上下文不足的问题。思路属于 RAG/检索增强的常见方向,摘要给出流程示意但未提供准确率、延迟等评测数据。

66

正文

I’ve had this happen more times than I’d like to admit. I ask AI a technical question. It gives me a beautifully written answer. I think: “Wow. That makes sense.” Then I check the documentation. And suddenly: “Oh.” 😭 The answer wasn't completely useless. It just didn't have enough context. That little problem became the idea behind ContextGuide. What if an AI agent looked things up before answering? Instead of expecting an AI model to magically know everything, I wanted to give it something better: a reliable place to look. ContextGuide is an AI agent that queries a structured Knowledge Base through Sanity Context + MCP before generating an answer. The idea is simple: Don't just ask the AI what it knows. Give it somewhere useful to look. How ContextGuide Works 👤 USER │ │ asks a question ↓ ┌─────────────────┐ │ ContextGuide │ │ │ │ Understand the │ │ question │ └────────┬────────┘ ↓ ┌─────────────────┐ │ Sanity Context │ │ │ │ Find relevant │ │ knowledge │ └────────┬────────┘ ↓ ┌─────────────────┐ │ KNOWLEDGE BASE │ │ │ │ Docs • Guides │ │ References │ └────────┬────────┘ ↓ 📚 Relevant Context │ ↓ 🤖 Agent Reasoning │ ↓ 💬 Answer + Sources Enter fullscreen mode Exit fullscreen mode The important part is that the agent doesn't immediately jump from: Question → Answer There is a middle step: Question → Context → Answer And that middle step is the whole point. Why Sanity? Let's say I ask: “Which authentication method should I use here?” A basic search might find ten pages containing the word authentication. Great. Except... which one actually answers my question? 😅 That's where structured content becomes useful. With Sanity, information can be organized into meaningful content instead of being treated as one giant pile of text. ContextGuide can then retrieve the relevant information through Sanity Context and access it through MCP. So the agent isn't just matching words. It's trying to find the right context for the question. The Part That Interests Me Most What happens when the knowledge base contains conflicting information? Imagine: 📄 Guide A "Use Method X." + 📄 Guide B "Method X is outdated." ↓ Agent "These sources disagree." Enter fullscreen mode Exit fullscreen mode That's actually more interesting to me than an agent that confidently picks one answer. Because sometimes the honest answer isn't: “Here's the answer.” Sometimes it's: “Here's what the sources say and here's where they disagree.” That is information I can actually work with. Where Each Piece Fits Sanity ↓ Organizes the knowledge Sanity Context ↓ Makes that knowledge queryable MCP ↓ Connects the agent to it ContextGuide ↓ Uses the retrieved context User ↓ Gets an answer backed by the relevant content Enter fullscreen mode Exit fullscreen mode Each piece has a job. Sanity isn't there just because the challenge says to use Sanity. It's part of the reason the agent can work this way. What I Wanted to Build I wasn't trying to build an AI that knows everything. Honestly, that sounds exhausting. 😭 I wanted to build an AI that knows when it should look something up. Because maybe the future of useful AI isn't just: “I know the answer.” Maybe it's: “Let me check the right information first.” And that's the idea behind ContextGuide.

来源报道 · 1 篇 · 以下链接均前往原始媒体

Akanksha Sharma 我构建了一个先查证再回答的 AI Agent 09-19 · 原文发布
← 返回精选动态 原文

更多内容