@Codebase
本文档内容均由官方文档翻译,仅供个人学习,如有错误请以官网文档为准!
官网网址:www.cursor.com
官网网址:www.cursor.com
Learn how Chat processes codebase queries using gathering, reranking, reasoning, and generation steps
Through @Codebase, Chat goes through these steps until it finds the most important pieces of code to use.
- Gathering: scanning through your codebase for important files / code chunks
- Reranking: reordering the context items based on relevancy to the query
- Reasoning: thinking through a plan of using the context
- Generating: coming up with a response
Another way of submitting an advanced codebase query is to click on the dropdown next to the Ctrl/⌘ + Enter button and select reranker for the search behavior.
This is only available when @Codebase isn’t used, otherwise @Codebase takes precedence.