The following instructions are for installing Prompt Quill using Docker, Llama-Index and QDrant on an Apple Silicon machine.
- Download the
lli_3.2M_v1.1
vector data from CivitAI here, and extract the snapshot file (doesn't matter where) https://civitai.com/models/330412?modelVersionId=407093 - Using terminal,
cd
to the path you want your Prompt Quill folder to be in. - Run
git clone https://github.com/osi1880vr/prompt_quill
to download the latest Prompt Quill files. This will create a folder calledprompt_quill
wherever you currently are in the terminal shell.
- If you don't already have it, install Docker Desktop: https://docs.docker.com/desktop/install/mac-install/
- Once installed, close and reopen Terminal to ensure it recognizes Docker being added to your machine.
- From the
prompt_quill
folder you cloned Prompt Quill into,cd docker/qdrant
to get to the folder containing thedocker_compose.yaml
file. docker compose up
to create the new docker container for qdrant.- Once the docker container is installed (you should see it running in Docker Desktop's dashboard), open a browser tab to http://localhost:6333/dashboard
- Click
Upload Snapshot
, name the new Collectionprompts_large_meta
, then select the .snapshot file you downloaded and unzipped from CivitAI during the First Steps. Wait for the import to complete before continuing.- Once complete, you can free up space by deleting the .snapshot file and the .zip you downloaded initially, as it's been imported into qdrant and is no longer required for Prompt Quill.
- In a new terminal window,
cd
to yourprompt_quill
folder. python3 -m venv env
- This creates a new virtual environment called 'env'.source ./venv/bin/activate
- This activates the virtual environment.cd llama_index_pq
pip install -r ./requirements_apple_silicon.txt
to install the necessary dependencies for Prompt Quill.- Start Prompt Quill with
python3 pq/prompt_quill_ui_qdrant.py
, it should open into a browser window automatically. You can also open it yourself at http://localhost:1337 if necessary. - To shutdown, simply close the terminal window that has the Prompt Quill logs active, and stop the Docker container for qdrant.
Once you have Prompt Quill installed, to do a clean startup in the future follow these steps:
- Start the qdrant Docker container in Docker Desktop.
- Open Terminal and
cd
to yourprompt_quill
folder. source ./venv/bin/activate
to enable the virtual environment.python3 pq/prompt_quill_ui_qdrant.py
to start Prompt Quill.- Open the UI at http://localhost:1337 if it doesn't auto-launch.