~/talk

How to work with generative AI in JavaScript

Talkat NDC Melbourne 2025 · 2025-04-29..05-01· [javascript, ai-assisted-development]
slides:none on file

Shows working JavaScript examples: call Gemini 2.0 Flash with nine lines of SDK code, create text-embedding-004 vectors (768 dimensions) and use cosine similarity for RAG, store and sort vectors in Astra DB vector index, and stream tokenized responses via generateContentStream to improve perceived latency. Recommends prompt params (temp 0.2, topP 0.95, topK 30), demonstrates a conference-talk search demo that answers queries, and builds simple agents with JSON-schema tool defs — an agent loop ~20 lines that calls functions and returns results.

AI-written summary · about

  1. 0:00Introduction
  2. 1:02Why generative AI
  3. 2:45Working with generative AI
  4. 4:47Artificial Analysis
  5. 6:17Google Genai
  6. 7:25Demo application
  7. 9:12Talk to it
  8. 9:40Tokens
  9. 12:09Autocomplete
  10. 12:56TopK
  11. 17:19Prompt Engineering
  12. 19:22ZeroShot Prompting
  13. 20:52Example Prompt
  14. 21:37System Prompt
  15. 22:22Hard Challenges
  16. 25:26Chat
  17. 27:35Context
  18. 29:05Retrieval
  19. 30:51Vector search
  20. 35:11Vector sort
  21. 35:57Demo
  22. 38:47User experience
  23. 39:58Streaming responses
  24. 41:48Streaming results
  25. 43:23Defining agents
  26. 44:28Defining tools
  27. 45:23Defining functions
  28. 46:59Using functions
  29. 48:07The tool loop
  30. 50:13The bot
  31. 54:35The libraries
  32. 55:43Visual builders
  33. 56:38Browser models
  34. 57:24Gemini Nano
  35. 58:26Conclusion
~/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.