Siri Ollama Bot is a Python-based chatbot application with a graphical user interface. It uses the Ollama API to interact with the Llama 3 language model, providing a user-friendly interface for conversational AI interactions.
There are a few bugs with the markdown system and isn't the best. I may or may not keep working on this project since I have found other projects I would like to spend more time on. If this does for some reason get some people interested in commiting to this project I am willing to help work on it again.
- Graphical User Interface (GUI) built with Tkinter
- Integration with Ollama API for Llama 3 model interactions
- Real-time streaming of AI responses
- Markdown-style formatting for chat messages, including:
- Headers (H1 to H4)
- Bold and italic text
- Code blocks and inline code
- Dynamic window resizing based on content
- Chat history management
- Python 3.x
- Ollama
- Tkinter
- Pathlib
-
Clone this repository:
git clone https://github.com/ItsHotdogFred/OllamaAssistant.git cd siri-ollama-bot
-
Install the required dependencies:
pip install ollama
-
Ensure you have Tkinter installed. It comes pre-installed with most Python distributions.
-
Make sure you have Ollama set up and running on your system.
NOTE Make sure to input the right directory inside the main.py file. It should point to the file called "frame0" where the GUI images are kept
-
Run the script:
python main.py
-
The GUI window will appear. Type your message in the input field and press the send button or hit Enter.
-
The AI's response will appear in the text area below, with real-time updates as the response is generated.
-
The window will automatically resize if the response is longer than the current view.
- You can modify the
ASSETS_PATH
variable to point to your custom assets directory. - Adjust the initial window size by changing
initial_width
andinitial_height
variables. - Modify the Ollama model by changing the
model
parameter in theollama.chat()
function call.
Contributions are welcome! Please feel free to submit a Pull Request.
- This project uses the Ollama API for AI interactions.
- The GUI is built using Python's Tkinter library.