~/talk

Let's use LLMs from Ruby 〜 Refine RBS types using LLM 〜

Talkat RubyKaigi 2024 · 2024-05-15..05-17· [ruby, ai-assisted-development]
links:none on file
slides:none on file

A prototype tool called RBS Goose takes Ruby files, generates starter RBS with rbs prototype / runtime / typeprof, and sends few‑shot prompts via Langchain.rb to LLMs to refine types; tests use VCR with temperature 0. Experiments show GPT models (especially GPT‑4 Omni) give the best and fastest results, CodeGemma performs poorly, and Anthropic often yields “almost” answers. On a 17‑file (698 lines, 68 KB) run there are no perfect outputs, common failures on Struct and def_delegator, and a steep check later reports 42 problems across 6 files; cost per large‑model run is ≈$0.078.

AI-written summary · about

  1. 0:00Introduction and self-introduction
  2. 4:45Purpose of RBS Goose
  3. 11:26How RBS Goose works
  4. 18:09Tips for LLM development
  5. 22:28Evaluating RBS Goose performance
  6. 30:37Conclusion and future outlook
~/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.