~/talk

RAG: from dumb implementation to serious results

Talkat Jfokus 2025 · 2025-02-03..02-05· [ai-assisted-development]
slides:none on file

Shows concrete fixes and code using LangChain4j and Gemini/Vertex AI: embedding sentences but returning paragraph context with a sliding-window sentence embeddings trick, boosting similarity from about 0.91 to 0.94 and to 0.95 with hypothetical targets; generating hypothetical-question embeddings during ingestion to move the true-answer chunk from 4th to 1st position; practical metadata filtering, reranking, query compression, query routing, function-calling agents, and evaluation advice plus reminders to update stale vectors.

AI-written summary · about

  1. 0:00RAG introduction
  2. 8:30Document chunking
  3. 17:53Hypothetical questions
  4. 21:48Contextual retrieval
  5. 28:52Query compression
  6. 33:13Reranking techniques
  7. 38:12Agentic RAG
  8. 44:11RAG evaluation & security
  9. 45:36Multi-hop questions
  10. 47:25Vector DB vs context window
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.