~/talk

Testing GenAI applications in Go

Talkat GopherCon Singapore 2025 · 2025-01-22..01-24· [go, testing]
links:none on file
slides:none on file

Compares a direct LLM answer vs RAG using langchaingo and Testcontainers Go, spinning Olama-based models and a Weaviate vector DB in containers; bundles Llama 3.2 (~8–7 GB) and all‑mini (~5 GB) images on Docker Hub. Ingests 51 documents, finds 3 relevant docs, and uses a cosine similarity threshold of 0.8 (example result 0.699 fails). Adds an evaluator LM driven by a strict system prompt that returns structured JSON yes/no, demonstrating one test fails and the RAG-enhanced flow passes. langchaingo and Testcontainers Go are the core tools.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:03Mental model for GenAI testing
  3. 3:13Testing cloud applications with emulators
  4. 6:42Lanchain Go for GenAI in Go
  5. 9:58Ollama for local LLM management
  6. 11:22Testcontainers Go for dependency management
  7. 13:56Demo workflow with containers
  8. 14:59Testing nondeterministic LLM responses
  9. 18:08Cosine similarity for response validation
  10. 21:15Evaluators as LM-as-a-judge
  11. 23:43Conclusions and key takeaways
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.