Developer compares RAG, long context and Text-to-SQL on 80 contracts
11/26/2026 — 11/26, 19:18·1 sources (all)·1 reports (all)
Key takeaways
- A developer tested one counting question against 80 contracts. RAG returned zero when the answer was 17, Text-to-SQL returned the correct 17…
Background & analysis
On November 26, 2026, a developer published a comparison on DEV Community that tested RAG, long context, and Text-to-SQL on 80 contracts. One of the questions asked how many contracts expire in March 2027; the correct answer was 17. RAG replied that none were due that month, while the SQL query returned the correct count of 17. The long-context approach also answered correctly, but at a cost of $1.81 in input per question and 35 seconds to first token. Based on these results, the author recommended Text-to-SQL for counting questions, and suggested that mixed questions involving both numbers and documents require chaining query and reading steps together. The test has so far been shared only as this single developer account, and the material contains no further developments.
AI-generated from 1 reports · updated 3 days ago
- Heat index
- 25
- All sources
- 1
- All reports
- 1
- First seen
- 3 days ago
Reports on this story headlines open the original
A developer compared RAG, long context and Text-to-SQL on a question set built over 80 contracts. Asked how many expire in March 2027, RAG said none, a SQL query returned the correct 17, and long context also got it right at $1.81 in input cost and 35 seconds to first token per question. The takeaway: use Text-to-SQL for counting questions and chain query and reading when a question mixes numbers with documents.
DEV Community · AIAI score 57
Other stories people are talking about
- Heat index 763RisingOpenAI countersues Apple over trade secrets and supplier pressure14 sources
- Heat index 367SurgeAnthropic Denies Claims Claude Sabotages ML Research5 sources
- Heat index 293Musk says Google is interested in renting more compute from SpaceX5 sources
- Heat index 166RisingGoogle ships Workspace MCP servers and CLI, mandating agent access path2 sources
- Heat index 166Claude Code adds /ship command for automated PR review3 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

