Skip to content

wojciech-dron/DotnetAiApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotnet AI App

This is demo for basic ai features. Demo provides fetching gold prices from NBP API with db and file saving.

Pre-requisites

Ollama is required to enable ai features.

Or install

Install ollama from official website, then:.

    ollama run llama3.1:8b

Docker

You can also run ollama with docker

   docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
   docker exec -it ollama ollama run llama3.1:8b

Launch app

To run application, execute the following command in the project root folder:

    dotnet run -p .\src\DotnetAiApp.Web\

Model support

This app supports all models with tools. You can find models with tools support in: https://ollama.com/search?c=tools. It requires pulling model with ollama and change in appsettings.json file. If you don't have GPU with at least 8GB VRAM consider using smaller models like llama3.2:1b

Example:

  ollama run llama3.2:1b

appsettings.json section:

"AiSettings.ModelId": "llama3.2:1b"

About

Simple dotnet app with AI capabilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published