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

Posted by scottcodie 20 hours ago

Counter3Comment1OpenOriginal

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

Comment by chonghaoju 16 hours ago

Curious how it handles foreign key traversal at inference time, in my experience that's where tabular models tend to fall apart when the join graph isn't seen during pre training.