exoascension / vault-chat

A ChatGPT bot trained on your vault notes. Ask your AI questions about your own thoughts and ideas!
GNU General Public License v3.0
113 stars 7 forks source link

`database2.json`, no such file or directory #21

Closed SimplGy closed 1 year ago

SimplGy commented 1 year ago

Probably I'm just holding it wrong, but I was trying to run this and can't quite get it there.

Did:

# copied zip of this repo to my plugins dir
npm i
npm run build
# enable plugin, add api key

Receive:

VectorStore.ts:52 Uncaught (in promise) Error: ENOENT: no such file or directory, open '/Users/tk/Dropbox/_vault/.obsidian/plugins/vault-chat/database2.json'

I see the try/catch that tries to create this file, but seems to not be working in some cases.

SimplGy commented 1 year ago

Ah, in my case it's because the zip file and resulting folder gets called vault-chat-main, but the code is looking to generate something in folder vault-main. Renaming the folder resolves it.