@Codebase
@Codebase
@Codebase @Codebase Modified September 7, 2024 @Codebase @Codebase Through @Codebase, Cursor Chat goes through these steps until it finds the most important pieces of code to use. 通过 @Codebase,Cursor Chat 会完成这些步骤,直到找到要使用的最重要的代码段。 • Gathering: scanning through your codebase for important files / code chunks 收集:扫描您的代码库以查找重要文件/代码块 • Reranking: reordering the context items based on relevancy to the query Reranking:根据与查询的相关性对上下文项重新排序 • 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. 提交高级代码库查询的另一种方法是单击 Ctrl/⌘ + Enter 按钮旁边的下拉列表,然后选择 reranker 作为搜索行为。仅当不使用 @Codebase 时,此选项才可用,否则 @Codebase 优先。 @Codebase @Codebase Through @Codebase, Cursor Chat goes through these steps until it finds the most important pieces of code to use. 通过 @Codebase,Cursor Chat 会完成这些步骤,直到找到要使用的最重要的代码段。 • Gathering: scanning through your codebase for important files / code chunks 收集:扫描您的代码库以查找重要文件/代码块 • Reranking: reordering the context items based on relevancy to the query Reranking:根据与查询的相关性对上下文项重新排序 • 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. 提交高级代码库查询的另一种方法是单击 Ctrl/⌘ + Enter 按钮旁边的下拉列表,然后选择 reranker 作为搜索行为。仅当不使用 @Codebase 时,此选项才可用,否则 @Codebase 优先。