Nicheloom visits: 58,069 all-time · 7,637 in the last 7 days

The opportunity tracker for new startups.

Today: 1,953 launches · Niche of the day: specialized calculation tools · See what launched today →

ShapedQL

A SQL engine for multi-stage ranking and RAG

Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.

Want to reach these readers? Sponsor an issue.

Hi HN,I’m Tullie, founder of Shaped. Previously, I was a researcher at Meta AI, worked on ranking for Instagram Reels, and was a contributor to PyTorch Lightning.We built ShapedQL because we noticed that while retrieval (finding 1,000 items) has been commoditized by vector DBs, ranking (finding the best 10 items) is still an infrastructure problem.To build a decent for you feed or a RAG system with long-term memory, you usually have to put together a vector DB (Pinecone/Milvus), a feature store (Redis), an inference service, and thousands of lines of Python to handle business logic and reranking.We built an engine that consolidates this into a single SQL dialect. It compiles declarative queries into high-performance, multi-stage ranking pipelines.HOW IT WORKS:Instead of just SELECT , ShapedQL operates in four stages native to recommendation systems:RETRIEVE: Fetch candidates via Hybrid Search (Keywords + Vectors) or Collaborative Filtering. FILTER: Apply hard constraints (e.g., "inventory > 0"). SCORE: Rank results using real-time models (e.g., p(click) or p(relevance)). REORDER: Apply diversity logic so your Agent/User doesn’t see 10 nearly identical results.THE SYNTAX: Here is what a RAG query looks like. This replaces about 500 lines of standard Python/LangChain code:SELECT item_id, description, priceFROM -- Retrieval: Hybrid search across multiple indexes search_flights("$param.user_prompt", "$param.context"), search_hotels("$param.user_prompt", "$param.context") WHERE -- Filtering: Hard business constraints price <= "$param.budget" AND is_available("$param.dates") ORDER BY -- Scoring: Real-time reranking (Personalization + Relevance) 0.5 * preference_score(user, item) + 0.3 * relevance_score(item, "$param.user_prompt") LIMIT 20If you don’t like SQL, you can also use our Python and Typescript SDKs. I’d love to know what you think of the syntax and the abstraction layer!

HN · launched Jan 27, 2026 · 80 upvotes (top 12%) · 0 views

Niche: database management systems and engines · 162 launches, 5 in the last 7 days ▼ -17% · Explore this niche →

Category and tags

  • Horizontal
  • Search & retrieval
  • Developer
  • AI-native
  • Commercial product

Visit website ↗ Source listing ↗

Could you build this?

No Building a custom SQL query engine with integrated multi-stage re-ranking algorithms and ML scoring models is a hardcore database systems and search engineering feat.

What it would actually take: The system requires building or extending a distributed query execution engine (e.g., via Apache DataFusion or custom Rust/C++ SQL engine) tightly coupled with GPU-accelerated inference for re-ranking models (cross-encoders, GBDT). It demands deep expertise in query planning, vector index internals, low-latency distributed ML serving, and modern recommender systems.

Discussion

20 comments analyzed.

Competitors mentioned: Elasticsearch, pgvector, Turbopuffer, MindsDB, XTDB

Concerns raised: Data sovereignty and EU legal compliance with US-based cloud services, Missing JOIN support and SQL dialect limitations, Privacy policy unclear on subprocessor sharing of personal data, LLMs can generate equivalent code in seconds, reducing code-reduction value proposition, Deterministic results preferable to diversity logic for certain use cases like hotel/flight search

Feature requests: On-premise/self-hosted solution, JOIN support in ShapedQL syntax, dbt integration, Standard SQL interface for ad-hoc analytical queries, Raw table output visible alongside UI output with column documentation

Competitors

Other products that read as similar to this one : 269 launches clear the similarity bar, closest 8 shown.

Attention rank: #48 of 270 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).

Launched 85 days after the earliest competitor.

The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.