Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Siri GPT

Introduction

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.

Installation

  1. Install Ollama for your machine. You need to run ollama serve in the terminal to start the server.
  2. Install Python dependencies:
    pip install -r requirements.txt
  3. Create a .env file 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
    
  4. Run the Flask app on your machine:
    python3 app.py
    Note: For production deployments, it is recommended to use a production-ready WSGI server like Gunicorn or uWSGI instead of python3 app.py.
  5. On your Apple device, download the shortcut from here.
  6. 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.

About

Custom Siri Integration with locally running LLMs using Ollama and Langchain

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages