Shreya Shankar (@sh_reya) profile picture

Incoming assistant professor @CSDatCMU @CMUDB. Putting LLMs in databases and BI tools. Created https://teapawt.net/t.co/PmuOqAXVgS and https://teapawt.net/t.co/8MQt4na2cj.

SF & Pittsburgh
Joined January 2014
Excited to share Quail, our new open source AI-SQL engine (a collab with Modal)! By planning queries and LLM inference together, it reaches 1B+ input tokens/min on one H100 for one query 😱🚀 AI-powered data operators create a new, interesting inference workload👇
84
164
40
1,657
387,733
Shreya Shankar retweeted
The discussion about taste quickly went viral. Just want to share my view on taste: it is a critical and useful skill for success; but just like other good skills, ones should NOT push others to magically get these skills. Otherwise, it represents aggorgent and ego in my opinion. After all, the taste academia thinks is good is often bad in real world. It is better to push yourself than push your kids(鸡娃不如鸡自己)
This hits me hard. If we're failing brilliant students like Hanchen, we're the failures (and we're embarrassing) Unpopular opinion #1. Academia is all about helping students and training next-generation researchers. It's not about chasing headline numbers or results. The key challenge is to find a way to do interesting work (yes, with limited resources) so that we're able to train students well. In other words, doing cutting-edge research is not the goal; it is the approach. Unpopular opinion #2. Taste doesn't really matter, at least for students. What matters is whether the research project can help students learn. I've done many projects for the purpose of helping students in different ways (REU projects are the best examples). If the project can help students learn and have fun, and is meaningful enough to "waste time" on, it tastes well, at least to me.
1
12
1,828
Shreya Shankar retweeted
"The industrial-benchmark complex is on thin ice" -- @HamelHusain ​Five AI models scored 100% on a public benchmark. On the private version, those same five scored between 53% and 64%. A model that scored 74% both times beat every one of them. ​Welcome to BenchGate! I've has invited three of my favourite data people to talk about why data science matters when you’re building AI systems: @sh_reya, @chrisalbon, & hamel. We'll also be giving away five free copies of H&S's new book Evals for AI Engineers, thanks to @OReillyMedia! ​Register to join live or get the recording after: luma.com/lluael92?utm_source…
2
5
2
10
1,843
Shreya Shankar retweeted
Weaviate Podcast #135 with Shreya Shankar (@sh_reya) and Connor Shorten (@CShorten30)! This episode covers: • What are Data Agents? • Multi-Database Systems • Semantic Operators • Querying Databases with Python • DocETL • Advanced Text-to-SQL • Claude Code and Databases • Self-Driving Databases • Agent Memory for Querying Databases • Exciting Directions for AI YouTube: youtube.com/watch?v=C-fNVPYZ…
1
4
1
13
1,917
Fantastic article, applies 100% to academia as well
I think a common experience among ambitious juniors — certainly I did this once — is to get frustrated at the slow pace of a team and decide “screw it, I’ll just burn through all these tickets”. However, crushing JIRA tickets is a party trick, not a path to impact.
3
57
7,488
Really excited for this hackathon! BTW some folks were sad they missed the last book signing…this data hackathon is another opportunity :-) and it’ll be even more fun because we’ll be building data agents together!!
You just inherited a bakery. You and your AI agents have 5 hours to make it the most profitable one in town. The Great Business Bake Off is @TheoryVC's second annual AI agent hackathon. ​Your agents connect to the bakery data and help you decide what to do. You can set prices, hire staff, change the menu, and expand across town, while handling the curveballs along the way. Doors open at 1 PM. The judges: @ttunguz, founder and GP at Theory Ventures @bebischof, Head of AI at Theory Ventures @HamelHusain and @sh_reya, who teach the AI Evals course on Maven and co-wrote Evals for AI Engineers @MischaLamoureux, Developer Relations at Theory Ventures Co-hosted by MotherDuck, @lancedb, and @sailresearchco The hackathon is for AI engineers, data scientists, and founders who build with agents. Last year, 114 bakers joined from NVIDIA, Meta, Google, Anthropic, and dozens of AI startups. It's free and happens on Dec 11 in San Francisco. The hosts approve each sign-up, so apply early: luma.com/bakeoff
8
2
1
28
2,891
Shreya Shankar retweeted
Full circle! Five years ago I was sitting in the audience with my friends, listening and learning from the talks here. This time, I got to go back and share some of my own work and learnings. Excited to do it again next time!
Parth (@pgasawa), an ML@B alum, came back to speak about his work at @coreauto: the history of continual learning, the open problems, the bets people are making, and new model architectures for models that keep learning! It answered the question:what even is continual learning?
6
3
73
2,205
Shreya Shankar retweeted
When I talk to “semantic layers don’t work” people, there are two common patterns: 1. Almost everything is pushed to free-form text fields 2. Almost everything requires manual creation Solving for 2 with agents causes problem 1, unless you’ve developed a point of view of what should be in a semantic layer Almost everything should be structured fields Almost everything should be automatically created and updated
14
3
1
55
6,756
Shreya Shankar retweeted
AI benchmarks are more realistic than ever. But they still have bugs (e.g., failing correct work) and mostly measure what's easy, not what matters. Here's my breakdown of 12 public evals: how they're built, where they break, and what to measure instead. eugeneyan.com/writing/public…
83
61
27
430
56,147
#phdadvice I'm a CS professor at a major US university. This is the top advice for students applying to a CS PhD program: "Do not use AI to write your email, period."
28
34
5
554
88,411
Shreya Shankar retweeted
Video from my Stanford HCI seminar talk is up (also gave this at MIT two weeks ago): youtube.com/watch?v=e1VYwgm9… I discuss how foundational theories (e.g., boundary objects, mutual awareness, sociotechnical gap) from CSCW are newly relevant for designing human-agent interaction.
2
21
7
165
15,239
Shreya Shankar retweeted
New lab blog post! How do you run complex semantic top-k queries on your unstructured text, accurately and at scale? E.g., "which sales calls most clearly show a customer committing to buy?" Common convention is to (1) use pairwise LLM comparisons for accuracy (e.g., "does call A show more commitment to buy than call B?"), since cosine similarity on off-the-shelf embeddings misses nuanced criteria, and (2) use small LLMs, so it's cheap at scale. Surprisingly, we find that just asking the small LLM to score each record and sorting (a "pointwise" approach) is just as accurate (if not more) on a few business-oriented top-k tasks, and up to 13x faster in our experiments.
33
20
2
168
8,628
New lab blog post! How do you run complex semantic top-k queries on your unstructured text, accurately and at scale? E.g., "which sales calls most clearly show a customer committing to buy?" Common convention is to (1) use pairwise LLM comparisons for accuracy (e.g., "does call A show more commitment to buy than call B?"), since cosine similarity on off-the-shelf embeddings misses nuanced criteria, and (2) use small LLMs, so it's cheap at scale. Surprisingly, we find that just asking the small LLM to score each record and sorting (a "pointwise" approach) is just as accurate (if not more) on a few business-oriented top-k tasks, and up to 13x faster in our experiments.
33
20
2
168
8,628
Why does pairwise do worse? Interestingly, if you swap the order of the two records in the prompt, many small LLMs pick a different record! Qwen3-0.6B basically never picks the same one; bigger models are more consistent, but even the best one we tried (Jev) still flips on a whopping 12% of pairs in one dataset!
9
1
11
1,365
Read more! fsdatalab.github.io/blog/ai-… Kudos to Jianhong for driving these experiments and writing this post --- he's a 3rd year undergrad. The project initially started out as "implement a pairwise comparison-based topk operator in Quail"... and it turned into this!
1
11
963
Shreya Shankar retweeted
There's never been a better time to learn something deeply There's also never been an easier time to take shortcuts and not learn anything
20
20
13
187
8,709
100% we can learn a lot from the history of database development to predict the future of context/semantic layers. query processing has always been I/O or memory bound (except the few years prior to vectorized + compiled engines like monetdb & hyper, and today’s expensive AI functions or string functions). in other words, the way to improve performance is to **transfer less data to the LLM** or **transfer data to the LLM faster**, which is exactly what an index or context layer does. However, new in the AI era is the need for a **high quality** context layer. Quality was easier in traditional DBs because using an index doesn’t impact correctness. Eg with a B-tree, you get the same rows as a full scan, just faster. A context layer is lossy by design, since the LLM only sees what we put in the context (and maybe progressive disclosure like instructions to read more of the data if it wants). So every decision about what to retrieve or summarize is also a decision about correctness, which we don’t know how to rigorously model. It all comes down to having good, company-specific evals, if I may
a context layer is actually not counter to the bitter lesson it’s just systems infra: a local read replica + derived indexes built by offline LLMs (no hardcoded ontologies, just recompute as models get better) people love to cite the bitter lesson as “skip the infra, let the model figure it out live,” but search is literally half of sutton’s point CPUs getting orders of magnitude faster didn’t kill b-trees or materialized views. those exist because compute outpaces I/O let's assume frontier-level-intelligence inference hits 0ms: live fan-out across scattered SaaS APIs still leaves you I/O-bound. and then in the SaaS endgame, proprietary state is the last moat they defend so those API straws only get narrower. narrow pipes still work with slow incremental sync of raw state, but not parallel search at runtime everyone fanning out is already eating 429s and it'll probably only get worse if you keep raw ground truth synced underneath so runtime models can search and verify in milliseconds + pay compute at write-time and read-time --> hooray you can still be bitter-lesson pilled with a context layer
46
13
1
194
12,556
Relatedly I am bearish on file systems for the context layer. It is a weird blip in time right now that LLMs are best at navigating file systems, probably due to training procedures. But we know that it’s a lot of work to learn and remember how to navigate file systems (see 1973 Turing lecture from Charles Bachman; how bullish they were on the programmer/agent as navigator; all to be replaced by Codd and relational data model). the future of context layers is probably in some logical/physical data independence
8
1
18
1,294
Amazing to see the bots in the replies assume I made a mistake in using this idiom 🤣
agents make me feel like the days are very short and the years are very long
1
32
4,220
agents make me feel like the days are very short and the years are very long
12
3
2
71
9,709
Shreya Shankar retweeted
a context layer is actually not counter to the bitter lesson it’s just systems infra: a local read replica + derived indexes built by offline LLMs (no hardcoded ontologies, just recompute as models get better) people love to cite the bitter lesson as “skip the infra, let the model figure it out live,” but search is literally half of sutton’s point CPUs getting orders of magnitude faster didn’t kill b-trees or materialized views. those exist because compute outpaces I/O let's assume frontier-level-intelligence inference hits 0ms: live fan-out across scattered SaaS APIs still leaves you I/O-bound. and then in the SaaS endgame, proprietary state is the last moat they defend so those API straws only get narrower. narrow pipes still work with slow incremental sync of raw state, but not parallel search at runtime everyone fanning out is already eating 429s and it'll probably only get worse if you keep raw ground truth synced underneath so runtime models can search and verify in milliseconds + pay compute at write-time and read-time --> hooray you can still be bitter-lesson pilled with a context layer
context layer / semantic layer / ontology layer = lap 2 of prompt engineering bitter pill → 💊
9
7
5
119
25,530