diff options
| author | A.J. Shulman <Shulman.aj@gmail.com> | 2025-05-21 13:11:52 -0400 |
|---|---|---|
| committer | A.J. Shulman <Shulman.aj@gmail.com> | 2025-05-21 13:11:52 -0400 |
| commit | c3dba47bcda10bbcd72010c177afa8fd301e87e1 (patch) | |
| tree | e8fe23915a09d4a9a95afbf971bce8e852fc5619 /src/client/views/nodes/chatbot/vectorstore | |
| parent | 0e98320d3b237f1927b9f1367494dccd7f66eda9 (diff) | |
feat: add codebase exploration tools for agent assistance
Add three new agent tools to improve navigation and understanding of the codebase:
FileContentTool: retrieves complete content of specified files (max 3)
FileNamesTool: lists all available files in the codebase
CodebaseSummarySearchTool: performs semantic search across file summaries
Diffstat (limited to 'src/client/views/nodes/chatbot/vectorstore')
| -rw-r--r-- | src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts b/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts index 5c2d0e5ea..72060973b 100644 --- a/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts +++ b/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts @@ -85,6 +85,12 @@ export class Vectorstore { } } + async getFileNames() { + const response = await Networking.FetchFromServer('/getFileNames'); + const filepaths = JSON.parse(response); + return filepaths; + } + /** * Initializes the Pinecone index by checking if it exists and creating it if necessary. * Sets the index to use cosine similarity for vector similarity calculations. |
