HaiAI123

Curated Global AI Tools Directory

Industry update
Flat

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

updream
24-hour heatHeat index 25 · peak 29 · 23h ago
24 hours agonow

Reports on this story headlines open the original

Nov 26
  1. 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

How is heat calculated?About the method

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

Back to AI industry updates →