A simple, responsive web-based chat application that uses Ollama for AI-powered conversational interactions.
- Real-time chat interface
- AI-powered responses using Ollama
- Responsive design
- Error handling
- Typing indicators
- Clean, modern UI
- Node.js (v18+ recommended)
- Ollama installed and running
- npm (Node Package Manager)
- Frontend: HTML, CSS, Vanilla JavaScript
- Backend: Express.js
- AI Model: Ollama (DeepSeek R1 1.5B)
git clone https://github.com/yourusername/ai-chat-interface.git
cd ai-chat-interface
npm init -y
npm install express ollama
- Install Ollama from ollama.ai
- Pull the DeepSeek model:
ollama pull deepseek-r1:1.5b
Ensure Ollama is running on http://127.0.0.1:11434
node server.js
ai-chat-interface/
│
├── public/
│ └── index.html # Frontend chat interface
│
├── src/
│ └── server.js # Express server
│
├── package.json
└── README.md
- Modify
server.js
to change:- Port number
- Ollama host
- AI model
- Adjust CSS in
index.html
for styling - Modify JavaScript for additional features
- Ensure Ollama is running
- Check console for error messages
- Verify network connections
- Fork the repository
- Create a feature branch
- Commit changes
- Push to the branch
- Create a Pull Request
MIT License