Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tim-butterfield/ollama-chat-tauri

Local GUI for Ollama AI/LLM using React.js + Tauri/Rust
https://github.com/tim-butterfield/ollama-chat-tauri

ai chat llm ollama react rust sqlite tailwind tauri

Last synced: 12 days ago
JSON representation

Local GUI for Ollama AI/LLM using React.js + Tauri/Rust

Awesome Lists containing this project

README

        

# OllamaChat

A fully offline, cross-platform chat application using **React.js**, **Tauri**, **Rust**, and **SQLite** for the desktop app.
The app integrates with a locally running Ollama API to retrieve models and generate responses.

Caveat:

The current feature set is rudimentary and only lightly tested. Expect missing features and some defects.

## Ollama

Download Ollama here: https://ollama.com/

Load an Ollama model like this:

```bash
ollama run llama3.2:1b
```

Make sure Ollama API is running

```bash
ollama serve
```

The rust code is currently hard-coded for port 11434.

## Installation

```bash
git clone https://github.com/Tim-Butterfield/ollama-chat-tauri.git
cd ollama-chat-tauri
cd src/apps/desktop
npm install
npm run tauri
```

## Screenshots

![GUI example](assets/gui_example.png)

The use of the ReactMarkdown component along with the Tailwind CSS typography prose style prettifies the output.

![Model selection](assets/models_selection.png)

The model selection drop-down allows choosing from the currently loaded models.

![New session](assets/new_session.png)

Click the "+" button to start a new chat session.

![Context menu](assets/context_menu.png)

The context menu allows for editing a session title or deleting a chat session you no longer need.