AI Dialogue System

Chat with local and cloud AI models

TalkMate AI is a web dialogue system where users can log in, choose an AI provider, and chat with either a local Ollama model or a cloud OpenAI model.

TalkMate AI chat

Explain the difference between local and cloud AI.

Local AI runs on your own machine with Ollama. Cloud AI uses an external provider like OpenAI.

Architecture

Nuxt frontendUI
REST APIBackend
MongoDBStorage
Ollama / OpenAIAI
🧠

Two AI providers

The system supports Ollama for local inference and OpenAI for cloud inference.

🔐

Protected access

Users must log in before opening the model selection page and chat pages.

💬

Saved conversations

MongoDB stores users, conversations, and messages so chats can be loaded later.

Project workflow

How the system works

The user authenticates, selects a model provider, sends a message, and the system stores the conversation.

1

Login

The user signs in and receives access to protected pages.

2

Choose model

The user selects Ollama or OpenAI from the models page.

3

Send message

The backend sends the prompt to the selected AI provider.

4

Save chat

The conversation and response are stored in MongoDB.

Nuxt

Frontend and API routes

MongoDB

Users, messages, conversations

AI

Ollama local + OpenAI cloud