Code from this youtube video: https://youtu.be/LD6x8EkJbLw
The code is pretty basic and was smashed together from online tutorials and stackoverflow but it works. There still is a lot to improve on and I will be working on it.
- code starts ollama automatically
- Speed improvements
- Model switching from program UI.
- At least 16gb RAM (32gb+ recommended, I have 64gb)
- Ollama
Download and install Ollama:
https://ollama.com/download
You can test it by typing the version command:
ollama -v
After installation, open your terminal and run this command to download a model:
ollama run llama3
That command will download and start the llama3 model locally.
Download the code:
Open the project in Visual Studio.
In form 1 you can change line 49 to the model you downloaded:
SelectedModel = "llama3:latest"
You can also try models from the ollama model list: https://ollama.com/library?sort=popular
Start Ollama:
ollama run llama3
ollama serve
Go into the form1 code and check line 46 is your ollama server the same (should be by default):
var uri = new Uri("http://localhost:11434")
After this, just run the program and you should be good to go!