Simple chat app with memory running on an NPU-accelerated AnythingLLM model server.
- Machine: Dell Latitude 7455
- Chip: Snadragon X Elite
- OS: Windows 11
- Memory: 32 GB
- Python Version: 3.12.6
- AnythingLLM LLM Provider: Qualcomm QNN
- AnythingLLM Chat Model: Llama 3.1 8B Chat 8K
- Install AnythingLLM and choose the NPU model server and a model of your choice during setup.
- Create a workspace by clicking "+ New Workspace"
- Generate an API key
- Click the settings button on the bottom of the left panel
- Open the "Tools" dropdown
- Click "Developer API"
- Click "Generate New API Key"
- Open a PowerShell instance and clone the repo
git clone https://github.com/thatrandomfrenchdude/simple_npu_chatbot.git - Create and activate your virtual environment with reqs
cd simple_npu_chatbot python -m venv llm-venv ./llm-venv/Scripts/Activate.ps1 pip install -r requirements.txt - Create your
config.yamlfile with the following variablesapi_key: "your-key-here" model_server_base_url: "http://localhost:3001/api/v1" workspace_slug: "your-slug-here" - Get your workspace slug using the workspaces tool
python src/workspaces.py- Find your workspace and its slug from the output
- Add the slug to the
workspace_slugvariable in config.yaml
- Test the model server auth
python src/auth.py
python src/chatbot.py