t5-notdiamond
Self-care: Claude Code plugin to self-improve Claude Code
Saving $750K on AI inference with one line of code and no quality loss
RoRF (Routing on Random Forests)
Hugging Face: https://lnkd.in/gE4FKZWR Github: https://lnkd.in/gn2uKWaY Blog: https://lnkd.in/gutaamm4
When routing between two strong models, RoRF achieves higher accuracy than either individual model at significant cost reductions. When routing between a strong and a weak model pair, we outperform other routing approaches at a lower cost.
The architecture for RoRF is based on a Random Forest Classifier and supports both open-source embedding models like Jina which you can run locally, or closed-source embedding models like Voyage or OpenAI for lower compute requirements.
We developed RoRF earlier this year as a previous iteration of the more powerful router we released through our API. Excited to share this :)
A curated list of approaches to AI model routing
To train a router, you literally just upload a dataset with your inputs and eval scores for different models. It’s completely agnostic to your choice of scoring metrics, frameworks, or tools. And if you don’t have your own eval data, you can still use Not Diamond’s base router out of the box—it takes <5m to set up.
Some other features worth noting:
• Python, TypeScript, and REST API support
• Option to route to faster/cheaper models when doing so doesn’t impact quality
• Joint prompt optimization interface
• Online, real-time personalization to hyperpersonalize model recommendations to individual end users
• Blazing fast inference speeds (<100ms)
• Easy deployments to your private infra
Would love to hear what folks think.