You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,6 +148,9 @@ First query triggers background indexing. Subsequent queries are instant.
148
148
- **Without RagCode:** AI reads 5-10 files (~15,000 tokens) to find a function
149
149
- **With RagCode:** AI gets exact function + context (~200 tokens)
150
150
151
+
> [!TIP]
152
+
> **Token Management:** By default, search tools return the top **5 most relevant results**. This is optimized to provide high-quality context while keeping token usage low. You can customize this by passing a `limit` parameter to any search tool.
logger.Warn("Failed to parse workspace root URI %s: %v", r.URI, err)
1362
+
continue
1363
+
}
1364
+
1365
+
ifu.Scheme=="file" {
1366
+
path:=u.Path
1367
+
// On Windows, the path might be /C:/path, trim the leading slash
1368
+
iflen(path) >2&&path[0] =='/'&&path[2] ==':' {
1369
+
path=path[1:]
1370
+
}
1371
+
rootPaths=append(rootPaths, path)
1372
+
} else {
1373
+
logger.Warn("Workspace root URI scheme %q is not supported: %s. Only 'file://' roots are registered automatically for local indexing.", u.Scheme, r.URI)
result.Message=fmt.Sprintf("Missing models: %s (Ollama implicit :latest tag might cause mismatch if you have specific versions installed)", strings.Join(missing, ", "))
return"Request a performance and quality evaluation of RagCode MCP from the AI assistant's perspective. Use this to provide feedback on benefits, pain points, and suggest improvements. IMPORTANT: Always provide the 'file_path' of the file you are currently working on for better context detection."
27
+
return"Request a performance and quality evaluation of RagCode MCP from the AI assistant's perspective. Use this to provide feedback on benefits, pain points, and suggest improvements. RECOMMENDED: Providing the 'file_path' helps identifies the current project context for a more accurate evaluation, but it is not strictly mandatory."
builder.WriteString("- **Workspace**: Not detected (fallback mode)\n")
79
+
builder.WriteString("- **Workspace**: Not detected (fallback mode). This means RagCode is using global settings because it couldn't identify a specific project root. To enable workspace-specific context, please ensure you provide a 'file_path' of a file within the project in your tool requests.\n")
0 commit comments