Skip to content

Commit

Permalink
rename llm-tool to search_keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
Jax-Tsai-zero committed Feb 23, 2025
1 parent e93f242 commit 16a5e92
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lua/avante/llm_tools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ function M.run_command(opts, on_log)
if not Path:new(abs_path):exists() then return false, "Path not found: " .. abs_path end
if on_log then on_log("command: " .. opts.command) end
if
not M.confirm("Are you sure you want to run the command: `" .. opts.command .. "` in the directory: " .. abs_path)
not M.confirm("Are you sure you want to run the command: `" .. opts.command .. "` in the directory: " .. abs_path)
then
return false, "User canceled"
end
Expand Down Expand Up @@ -581,7 +581,8 @@ M._tools = {
{
name = "rag_search",
enabled = function() return Config.rag_service.enabled and RagService.is_ready() end,
description = "Use Retrieval-Augmented Generation (RAG) to search for relevant information from an external knowledge base or documents. This tool retrieves relevant context from a large dataset and integrates it into the response generation process, improving accuracy and relevance. Use it when answering questions that require factual knowledge beyond what the model has been trained on.",
description =
"Use Retrieval-Augmented Generation (RAG) to search for relevant information from an external knowledge base or documents. This tool retrieves relevant context from a large dataset and integrates it into the response generation process, improving accuracy and relevance. Use it when answering questions that require factual knowledge beyond what the model has been trained on.",
param = {
type = "table",
fields = {
Expand Down Expand Up @@ -763,7 +764,7 @@ M._tools = {
},
},
{
name = "search",
name = "search_keyword",
description = "Search for a keyword in a directory",
param = {
type = "table",
Expand Down

0 comments on commit 16a5e92

Please sign in to comment.