Siri-GPT is an Apple shortcut that provides access to locally running Large Language Models (LLMs) through Siri or the shortcut UI on any Apple device connected to the same network as your host machine. It utilizes Langchain and Ollama.
- Install Ollama for your machine. You need to run
ollama servein the terminal to start the server. - Install Python dependencies:
pip install -r requirements.txt
- Create a
.envfile in the root directory of the project with the following content (you can modify the values as needed):OLLAMA_BASE_URL=http://localhost:11434/v1 OLLAMA_MODEL=mistral:instruct OLLAMA_API_KEY=ollama - Run the Flask app on your machine:
Note: For production deployments, it is recommended to use a production-ready WSGI server like Gunicorn or uWSGI instead of
python3 app.py
python3 app.py. - On your Apple device, download the shortcut from here.
- Run the shortcut through Siri or the Shortcuts app. The first time you run the shortcut, you will be asked to enter your ip address and the port number.