This is an optional AI assistant for Storage Boxx - It can directly query the database to answer the user's questions.
Take note, this module is experimental and doesn't always produce expected results.
- Python - Yes, Python. Not PHP. Version 3.9~3.10 works fine at the time of writing.
- Microsoft C++ Build Tools
- CMake
- Nvidia CUDA Toolkit - If you have an Nvidia graphics card.
- An Nvidia graphics card with at least 8GB VRAM is highly recommended. You can TRY to run on CPU, but it is painfully slow and practically useless.
- Copy/unzip this module into your existing Storage Boxx folder.
- I have tried multiple AI models, codellama-7b-instruct.Q5_K_M.gguf is the only one that produced decent(ish) results - Download that into
chatbot/models
or choose a better/larger/smarter model on your own. - Edit
chatbot/a_settings.py
, change themodel_name
to your own. - BE WARNED, GIGABYTES WORTH OF DOWNLOAD! -
0-setup.bat
(Windows)0-setup.sh
(Linux).
- Run
1-bot.bat / 1-bot.sh
, this will deploy the bot athttp://your-site.com:8008
. - The Chatbot is accessible at
http://your-site.com/ai
(must be signed in).
Like this project? Just give it a star. That will indirectly help grow my blog a little bit. 😉
Copyright by Code Boxx
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.