Skip to content

Basic vector database plugin that works wth KoboldAI. Adds documents, images, and audio files.

Notifications You must be signed in to change notification settings

BBC-Esq/VectorDB-Plugin-for-KoboldAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🚀 KoboldCPP Vector Database

  • 🔥 Due to time constrains and ability to test, only supported on Windows systems with an Nvidia GPU.

REQUIREMENTS

  1. 🐍Python 3.11 (Pytorch is not compatible with Python 3.12 yet)

  2. 📁Git

  3. 📁Git Large File Storage.

  4. 🌐Pandoc.

  5. CUDA is technically "required" but the installation script installs it automatically. You do not need to have it installed systemwide.

  6. Build Tools.

    Certain dependencies don't have pre-compiled "wheels" so you must build them with something like Microsoft Build Tools and/or Visual Studio. I recommend Visual Studio, but make sure to select the "Desktop development with C++" extension and check the four boxes on the right containing "SDK."

    EXAMPLE ERROR ON WINDOWS
    EXAMPLE SOLUTION ON WINDOWS

INSTALLATION

Step 1

Download the latest "release," extract its contents, navigate to the "src" folder to run the commands below.

  • NOTE: If you clone this repository you WILL NOT get the latest release. Instead, you will development versions of this program which may or may not be stable.

Step 2

Navigate to the src folder, open a command prompt, and create a virtual environment:

python -m venv .

Step 3

Activate the virtual environment:

.\Scripts\activate

Step 4

Run setup:

python setup_windows.py

If you need to try reinstalling for any reason run this command to uninstall everything and try again: pip freeze > requirements_uninstall.txt && pip uninstall -r requirements_uninstall.txt -y && del requirements_uninstall.txt

Step 5

python gui.py

USAGE

Start Kobold

  • Navigate to KoboldCPP's github and download the appropriate .exe file or run python download_kobold.py from your virtual environment instead.
  • Select any/all options you want and start the program, but make sure and uncheck the open browser option. You can also check the "quiet" mode, which prevents the Kobold's command prompt window from printing everything in duplicate.