Sourcegraph Cody
- Sourcegraph Docs
- Blog
- Sourcegraph Cody
- Copilot vs. Cody: Why context matters for code AI
- The lifecycle of a code AI completion
- How we’re thinking about the levels of code AI
- Top 5 tips for using Cody with React

Repositories
代码 AI 补全

AI 聊天

代码补全的四个步骤
每一次 Cody 的代码补全都经历了四个步骤:

- 规划(Planning):分析代码上下文以确定生成补全的最佳方法,例如:使用单行还是多行补全。
- 检索(Retrieval):从代码库中找到相关的代码示例,为 LLM 提供最佳可能的上下文。
- 生成(Generation):使用 LLM 基于提供的提示和上下文生成代码补全。
- 后处理(Post-processing):精炼和过滤原始的 AI 生成的补全,以提供最相关的建议。
Cody 的目标是提供高质量的补全,无缝集成到开发者的工作流程中。