Skip to content

Repository files navigation

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

  1. Prerequisites: .NET 8+ Docker Desktop WSL2 enabled (for Docker)
  2. Run the application dotnet run --project AspireOllamaChatbot.AppHost
  3. 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:

  1. Streaming responses (real-time typing)
  2. Chat history persistence
  3. Integration with Flutter mobile app
  4. Multiple model support
  5. Authentication system

Demo:

image image image

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages