HN.zip

Show HN: Kapso – Iterative learning from enterprise data

Hey HN! We're Alireza and Majid building Leeroo (https://leeroo.com/). Previously we’ve built AI systems for products with millions of users, including at LinkedIn and Meta. We’re now focusing on building AI systems for enterprise data. Today, we're open-sourcing Kapso (https://github.com/Leeroo-AI/kapso), an engine that runs experiments, deploys the best solution, and learns from every run.The nature of data work is iterative: investigate, form hypotheses, experiment, and improve based on what you learn. This bottom-up process is the only way to deliver meaningful outcomes quickly in large, messy enterprise data environments. Consultants gathering context in meetings or teams defining a business ontology upfront to fit into the data has no chance of execution, in quarters and sometimes years. An AI-native system should automate this process, compounding learning to each new investigation and implementation.For instance, one of our enterprise projects was moving a company off its old data estate onto a lakehouse with more than 30 source-system families, thousands of tables and transformations, and hundreds of BI reports. No individual or AI agent knew how that data estate was connected and operated. The only way to learn it was to investigate the company's repos, dbt models, documentation, and data itself and propose hypotheses about the estate, run experiments, and learn from them, until we understand how each system behaves and under which conditions.The iterative work goes beyond understanding how data and systems fit together, and the business operations. Building useful software is iterative too. Whether you’re optimizing a warehouse, building a lakehouse pipeline or predicting churn, you need to run experiments and learn what works best in that environment. As you deliver more projects, that know-how compounds, similar in principle to RL. RAGing documentation has little value until it has been tried in a specific environment and the consequences are learned. As with human engineering work, experimentation and learning should happen in a sandbox.We built Kapso for this kind of work, you give it an objective and success criteria, and it works towards an optimum solution that can be deployed on your stack.You can view a video walkthrough here: https://www.youtube.com/watch?v=W4FHlza1fRsHere’s how it works…Kapso has a bank of lessons that are induced or deduced from the past experiments, and each carries a credence score, conditions on where it applies, and the evidence behind it. For each new experiment, an ideation module proposes ideas considering the earlier lessons, re-ranks them by expected return against the budget each would use, and sends the top-ranked ones to the implementor. Because the bank keeps learning from the past experiments in that environment, the proposed ideas are better suited to it than generic hypotheses from an LLM or RAG. Also, results of each experiment are verified by a verifier module that no experiment can access and cheat. As we’ve found when building such systems, sometimes the success criteria and evaluation tests need to be evolved. The experimentation modules can propose updates to the metrics and criteria for the verifier to approve or reject.After each run, learn() updates the bank of lessons’ scores and boundaries using the evidence from that run. Changes to the bank can also be A/B tested by running otherwise identical builds with the previous and updated banks. The bank is built on git, so you can share your experience with others, list the banks available to you, and update them (`kapso experience share/list/update` in CLI). The system is model-agnostic and coding-agent-agnostic.kapso.deploy(solution, target_stack) follows the same workflow, runs a shorter experimentation loop to adapt the best solution to the target stack (e.g. Docker, Modal, BentoCloud, LangGraph). Every domain has a harness to start from, you can write your own domain harness with /kapso:harness in the plugin or through CLI (kapso harness new <name>), and compound over that by running experimentations.We ran it on some public benchmarks and live competitions, with the following results…- Predictive modelling on relational databases: first on RelBench, Kumo AI (now Nvidia) and Stanford's benchmark, ahead of the best tabular foundation model (https://star-project.stanford.edu/relbench/leaderboard/). This shows that keeping the learning in the harness-level can beat foundational table models. Updating a bank of lessons costs far less than retraining a tabular foundation model.- ML Engineering: First on OpenAI's MLE-bench at submission, still among the top open-source systems (https://github.com/openai/mle-bench/pull/107).- AI competitions: ahead of the best agent the ALE-Bench authors at Sakana AI reported, and running autonomously at the live International Olympiad in AI 2026, above all 471 human contestants and in the top three AI systems (https://ioai-official.org/ai-models-track/ioai%c2%b2-2026-re...).We have a public bank for ML and Data at Leeroopedia (https://leeroopedia.com/): around 100k pages extracted by experimenting on papers and repos, about 6M requests a month, about 28% from AI agents.If you are at a growing company with a complex data estate across multiple systems and functions, and your data and AI team is stretched, we would love to help!https://github.com/Leeroo-AI/kapso

37 points by - 9 comments

9 Comments

[3 hidden]5 mins ago
Over at https://relflow.ai (an OSS model factory) used Kapso to help harness an HPO loop on RelArena. RelArena is like RelBench, but is maintained and regulated by Prior Labs to isolate data leakage that can taint modern benchmarks.

Kapso was able to efficiently calibrate Relflow's hyperparameters on 21 structured data modeling tasks, and we were able to outperform TabPFN on the majority of the larger data modeling tasks despite not using any ICL, and using ~1% of the number of params of TabPFN.

[3 hidden]5 mins ago
Thanks for your comment. We have also tried it ourselves in relbench (Stanford's predictive modelling on relational databases), and surpassed tabular foundational models: https://github.com/Leeroo-AI/kapso/tree/main/benchmarks/relb...

Our hypothesis is that similar to RL principle, you can experiment in the environment (predictive modelling on relational databases), learn from it, and compound your domain harness with these bank of lessons, instead of re-training foundational table model, which puts these learnings in model weights. This enables faster iteration, and transparent learning over time.

As a proof for this domain, Kapso leads in classification, regression and recommendation tasks vs. best tabular foundational model (Kumo AI/Nvidia): https://star-project.stanford.edu/relbench/leaderboard/#clas...

[3 hidden]5 mins ago
Thank you for sharing!

I can appreciate surpassing foundation models in RelBench, but I’ve found that peers in our space strongly prefer RelArena because it reruns submitted implementations under shared evaluation protocols. IMHO Prior Labs does a great job of providing a controlled and transparent environment.

In RelBench, hypothetically, a solution could mine for days, weeks, or months for specialized, handcrafted features. I’d would be extremely interested in how the cumulative cost of that exhaustive search scales to new, enterprise-scale databases.

As per the leaderboards you reference: "The RelBench leaderboard uses self-reported prediction files, so we rely on the authors to submit in good faith ... For a more controlled and transparent evaluation on RelBench tasks, please see RelArena".

I would love to see Kapso’s performance in a controlled environment like RelArena, to understand how this approach compares with Relflow and other relational learning methods in an apples-to-apples comparison!

[3 hidden]5 mins ago
Yeah, I agree with that. We have started Kapso for predictive modelling on relational databases before RelArena came out, so Relbench was the only popular public benchmark. We surely try Kapso on it too.

To test it further in live environment (additional to enterprise environment of our customers), we participated with Kapso in AI olympiad this year, and surpassed all human participants, and became top 3 AI systems: https://ioai-official.org/ai-models-track/ioai%c2%b2-2026-re.... In IOAI2, six expert-designed tasks, a single-GPU, and 2 hours budget were given to autonomous agents for deliver solutions without any human intervention.

[3 hidden]5 mins ago
Woah, now that is extremely impressive.

I think Kapso could be used as an _incredible_ resource to AB test internal architectural changes to complex models with many moving parts ...

[3 hidden]5 mins ago
> Woah, now that is extremely impressive. I think Kapso could be used as an _incredible_ resource to AB test internal architectural changes to complex models with many moving parts ...

I think if a task is iterative and needs experimentation to find the optimal solution, then Kapso can be used there (hopefully helps)!

[3 hidden]5 mins ago
I am very interested to hear others' perspectives on this topic:

Should we integrate experimental learnings by evolving the agent harness, or do RL-based post-training, and leave it in LLM's weights? Or Both?

[3 hidden]5 mins ago
FYI, you may want to reconsider the naming as there's already a fairly popular service named Kapso [1] for integrating WhatsApp into other products (not related btw).

[1] https://kapso.com/

[3 hidden]5 mins ago
Yeah, originally, it came from first letters of "Knowledge-grounded framework for Autonomous Program Synthesis and Optimization", then a few weeks later, we saw this Whatsapp integration product. For the moment, our pip is "leeroo-kapso", but we're considering to change the name! Thanks for the recommendation.