This is demo for basic ai features. Demo provides fetching gold prices from NBP API with db and file saving.
Ollama is required to enable ai features.
Install ollama from official website, then:.
ollama run llama3.1:8b
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
To run application, execute the following command in the project root folder:
dotnet run -p .\src\DotnetAiApp.Web\
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"