Many common LLM-based applications like RAG (Retrieval Augmented Generation) are just data pipeline problems, and Go is really great at those.
Implementing RAG is Go is very easy - see eli.thegreenplace.net/2023/r… and the accompanying code at github.com/eliben/code-for-b… for an example
Nov 12, 2023 · 3:30 PM UTC
I've now reimplemented the same RAG tool using Google's Gemini model (full code: github.com/eliben/code-for-b…)
The model is on par with OpenAIs, but ai.google.dev has a generous free quota for its API so the sample can be run without paying $$$ to OpenAI!


