cd /news/machine-learning/show-hn-relativedb-oss-query-engine-… · home topics machine-learning article
[ARTICLE · art-74768] src=github.com ↗ pub= topic=machine-learning verified=true sentiment=↑ positive

Show HN: RelativeDB – OSS query engine for relational foundation models

RelativeDB, an open source query engine built around the Relational Transformer architecture from Stanford's Tabular and Relational (STAR) Project, can outperform XGBoost on some tasks with minimal labeled context and no manual feature engineering. The engine allows users to query relational foundation models using SQL-like syntax for predictions such as customer churn, demand forecasting, fraud detection, and recommendations.

read1 min views1 publishedJul 27, 2026

Structured data could be the next big frontier for foundation models.

RelativeDB is an open source query engine built around the Relational Transformer architecture, developed by Stanford’s Tabular and Relational (STAR) Project. These models can adapt to new databases and prediction tasks using relatively little labeled context.

With some of my experiments, the results have been remarkable. On some tasks, RelativeDB can outperform XGBoost with only a small amount of relational context and no manual feature engineering.

So RelativeDB turns relational foundation models into something you can query (like this customer churn query):

PREDICT NOT EXISTS(orders.*) OVER (90 DAYS FOLLOWING) FROM customers

The engine finds the relevant context across the related tables and returns a prediction. The goal is to make questions like churn, demand forecasting, fraud detection, and recommendations feel more like database queries than bespoke ML projects.

Longer term, I think the optimizer should be able to choose between relational foundation models, fine-tuned models, and conventional approaches such as XGBoost depending on the query (how much graph-like context is needed vs just tabular features). Bridging ML to LLMs in a sane way.

I think there are markets for quantitive finance and utilizing emerging context graphs.

The project is early, and I would especially appreciate feedback on the query language and execution model.

RelativeDB: https://github.com/RelativeDB/RelQL Stanford RT-J: https://star-project.stanford.edu/rt-j/

Comments URL: https://news.ycombinator.com/item?id=49063842

Points: 2

── more in #machine-learning 4 stories · sorted by recency
── more on @relativedb 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-relativedb-o…] indexed:0 read:1min 2026-07-27 ·