Siri LLama is apple shortcut that access locally running LLMs through Siri or the shortcut UI on any apple device connected to the same network of your host machine. It uses Langchain and Ollama
- Install Ollama for your machine, you have to run
ollama serve
in the terminal to start the server - Install Langchain and Flask & run the flask app
pip install --upgrade --quiet langchain langchain-openai
pip install flask
-
Download the shortcut from here
-
Enter your local IP address and the Flask port in the shortcut
-
Run the shortcut through Siri or the shortcut UI
SiriLLama is the most simple langchain chatbot, there's huge room for improvement and customization, including model selection (even through OpenAI, Anthropic API), RAG Applications or better LLM Memory options, etc.
- Even we access the flask app (not Ollama server directly), Some windows users who have Ollama installed via
WSL
have to make sure ollama servere is exposed to the network, Check this issue for more details