AI Programming with Go
summary
Covers calling OpenAI‑style REST APIs from Go, using LangChain Go and swapping backends to Ollama (local Ollama wraps Llama CPP), plus running Llama 3.17B on an M1 Pro 32GB laptop for realtime chat. Shows RAG with embeddings (768–1536 dims), storing vectors in Postgres via PGVector, and a 177‑page annual report lookup that finds a €750M minimum‑guarantee snippet. Notes long‑context models (up to ~2M tokens) often beat RAG for QA, while RAG helps dialogue and freshness; vision LLMs lag closed offerings.
AI-written summary · about
