diff options
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. |
