Ollamax is a simple and easy to use library for making a local LLM app.
It is based on the Ollama
go >= 1.22
-
Init your go module
go mod init <module-name>
-
Add submodule
git submodule add https://github.com/byebyebruce/ollamax.git
-
Init go work
go work init . ./ollamax ./ollamax/ollama
-
Build library
make -C ollamax
-
Write a test code
import( "github.com/byebyebruce/ollamax" ) if err := ollamax.Init(); err != nil { log.Fatalln(err) } defer ollamax.Cleanup() llm, err := ollamax.NewWithAutoDownload("qwen:0.5b") if err != nil { panic(err) } defer llm.Close() llm.Chat...