Back to Home
RadarAI··Papers & Tech

字节面试官:“为什么 Claude Code 不用 RAG 检索代码,而是用 grep?”我:"因为...省钱?" 他沉默了三秒

中文摘要

本文探讨 Claude Code 弃用 RAG 而改用 grep 的原因,揭示了 Anthropic 信任 LLM 决策能力的工程设计哲学。

English Summary

The article explains why Claude Code uses grep instead of RAG, revealing Anthropic's philosophy of trusting LLM decision-making for code retrieval.

Original Excerpt

📌 一句话摘要 本文从源码视角深入分析 Claude Code 为何弃用 RAG 而选择 Grep/Glob/Read 三件套加子 Agent 探索的检索方案,揭示了 Anthropic 信任 LLM 决策能力的设计哲学。 📝 详细摘要 文章以字节面试题「为什么 Claude Code 不用 RAG 检索代码,而是用 grep?」为引子,系统性地对比了 RAG 和 Claude Code 在代码检索场景下的设计差异。作...