AI-powered chatbot built with ASP.NET Core + Blazor + .NET Aspire + Ollama, running entirely locally without external APIs.
Technologies Used:
- ASP.NET Core
- Blazor Server
- .NET Aspire
- Ollama
- Docker
- Microsoft.Extensions.AI
How it Works:
- The user sends a message from the chat UI.
- The request is processed by the Blazor frontend.
- The message is forwarded to the AI model via IChatClient.
- Ollama runs the LLM locally in a container.
- The response is returned and displayed in the UI.
Setup & Run
- Prerequisites: .NET 8+ Docker Desktop WSL2 enabled (for Docker)
- Run the application dotnet run --project AspireOllamaChatbot.AppHost
- Open in browser Aspire Dashboard → http://localhost:17250 Chat UI → https://localhost:7188
Notes: The first run may take several minutes as the model is downloaded. Ensure Docker is running before starting the application.
Future Improvements:
- Streaming responses (real-time typing)
- Chat history persistence
- Integration with Flutter mobile app
- Multiple model support
- Authentication system
Demo: