Closed leszekhanusz closed 1 year ago
The error disappears once I configure khoj to parse some pdf files.
@leszekhanusz Hmm, that's quite strange. Could you walk me through how you did the setup? Did you first configure your file paths in the Org settings in the web UI, and then go to the chat endpoint? Did you click the Configure
button in between?
We do need to do better null checking here for the data index before we execute search/chat. Thanks for flagging this.
How to reproduce:
mv ./.khoj ./khoj.bak
Settings
on the web pageEnable
in the Offline Chat
boxConfigure
Chat
tabI also got this error.
The above NoneType error occurs when I start the server without adding any files such as pdf or md. After adding a md file, the error was resolved.
Maybe chat mode assumes that documentation has been added.
@Ellen7ions , @leszekhanusz this should be fixed with 996832dc72df2550fef546fef4608ce37201245e.
If you run pip install --pre khoj-assistant
and run khoj
again, it should work. I was making an assumption in the code that some files were indexed when chat
occurs.
The other workaround if you don't want to upgrade the installation is to add @general
to the start of all your messages in the chat window.
I'm closing this as other users with the issue have reported it's resolved! Let me know if you see it come up again.
Using khoj-assistant version 0.10.0 After trying to enable the Llama2 model, then trying to ask a question in the chat, I have the following error: