vicentereig/dspy.rb
The Ruby framework for programming—rather than prompting—language models.
Combines Sorbet type safety with composable modules (Predict, ChainOfThought, ReAct) that eliminate manual prompt engineering and JSON parsing. Supports OpenAI, Anthropic, Gemini, Ollama, and OpenRouter via a unified `DSPy::LM` abstraction, with optional optimization gems (MIPROv2, GEPA) for automated prompt tuning and production observability via OpenTelemetry/Langfuse.
208 stars.
Stars
208
Forks
16
Language
Ruby
License
—
Category
Last pushed
Mar 07, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/vicentereig/dspy.rb"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
microsoft/multilspy
multilspy is a lsp client library in Python intended to be used to build applications around...
mlc-ai/xgrammar
Fast, Flexible and Portable Structured Generation
hyparam/hyllama
llama.cpp gguf file parser for javascript
llmrb/llm.rb
Ruby toolkit for multiple Large Language Models (LLMs)
feenkcom/gt4llm
A GT package for working with LLMs