~/talk

Build RAG from Scratch

slides:none on file

Live code builds a working RAG pipeline that starts with a naive 1480-word bag-of-words vector and cosine similarity (tested across ~101 talks), then upgrades to real embeddings (examples: OpenAI text-embedding-3-small → 1536 dims) and a production index using an NVIDIA embedding (≈1024 dims) stored in Astrod vector DB. The system returns top-five matches, treats similarity >0.7 as relevant, feeds those chunks to a LLM, and produces a functioning augmented bot plus a related-posts feature — the naive version is brittle, the embedding+DB version works.

AI-written summary · about

  1. 0:00Introduction
  2. 3:14Limitations of large language models
  3. 6:08What is RAG
  4. 9:22Vector embeddings
  5. 12:13Building embedding model
  6. 18:39Cosine similarity
  7. 26:30Improving vector search
  8. 31:07Why embeddings matter
  9. 33:54Vector databases
  10. 36:24Demo: AstroDB search
  11. 38:09Retrieval augmented generation workflow
  12. 38:51Advanced retrieval
  13. 42:23Conclusion
~/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.