Let's use LLMs from Ruby 〜 Refine RBS types using LLM 〜
summary
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
chapters (6)
- 0:00Introduction and self-introduction
- 4:45Purpose of RBS Goose
- 11:26How RBS Goose works
- 18:09Tips for LLM development
- 22:28Evaluating RBS Goose performance
- 30:37Conclusion and future outlook
related talks
32mDo LLMs dream of Type Inference?
39mIDE development with Ruby
22mStatic typing with RBS in Ruby
31mBeyond LLMs and Maturing RAG use cases
01h 15m10x Development: LLMs For the working Programmer
27mGoing Postel
37mChecking Your Types: An Overview of Ruby's Type System
28mGetting More Out of LLMs for Ruby Developers Justin Wienckowski, Jake Gribschaw We're all hearing about LLM tools that are changing on a daily, if not hourly, basis
