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
description="Use VectorCode to index and query from neovim documentation and lua runtime.",
25
-
47
+
opts= {
48
+
pre_hook=function()
49
+
prepare(rtp)
50
+
end,
51
+
},
26
52
prompts= {
27
53
{
28
54
role=constants.SYSTEM_ROLE,
29
55
content=string.format(
30
56
[[You are an neovim expert.
31
57
You will be given tools to index and query from the neovim runtime library.
32
58
This will include lua APIs for the neovim runtime and documentation for the neovim build that the user is running.
33
-
Use the tools to explain the user's questions related to neovim.
34
59
The runtime files are stored in `%s`.
35
60
You can ONLY use the vectorcode tools to interact with these files or directory.
36
61
DO NOT attempt to read from or write into this directory.
62
+
When the user asked a question that is not part of a previous query tool call, make a new query using new keywords that are directly relevant to the new question.
63
+
If the tool returns an error that says the collection doesn't exist, it's because the files are still being indexed, and you should ask the user to wait for it to finish.
37
64
]],
38
65
rtp
39
66
),
@@ -42,13 +69,15 @@ DO NOT attempt to read from or write into this directory.
42
69
role=constants.USER_ROLE,
43
70
content=string.format(
44
71
[[
45
-
You are given the @{vectorcode_vectorise} and @{vectorcode_query} tools.
46
-
Vectorrise all lua files and `*.txt` files under this directory using the `vectorcode_vectorise` tool. Use wildcards to match all lua and `txt` files. Use absolute paths when supplying paths to the vectorcode_vectorise tool;
72
+
You are given the @{vectorcode_query} tool.
47
73
Use `%s` as the value of the `project_root` argument;
48
-
When you're done, I'll be asking you questions related to these documents.
74
+
I'll be asking you questions related to these documents.
49
75
Use the vectorcode_query tool to query from the project root and answer my question.
Copy file name to clipboardExpand all lines: lua/vectorcode/integrations/codecompanion/vectorise_tool.lua
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ The paths should be accurate (DO NOT ASSUME A PATH EXIST) and case case-sensitiv
52
52
paths= {
53
53
type="array",
54
54
items= { type="string" },
55
-
description="Paths to the files to be vectorised. DO NOT use directories for this parameter.",
55
+
description="Paths to the files to be vectorised. DO NOT use directories for this parameter. You may use wildcard here if the user instructed to do so.",
0 commit comments