SShortSingh.
Back to feed

Small AI Model Picks Correct Tool 19 in 20 Times Regardless of Phrasing

0
·3 views

A two-stage evaluation of AI tool selection found that a small, low-cost model (gpt-5.4-mini) achieved 90–97% accuracy when choosing the correct tool from a shortlist of five, across varying description styles and request phrasings. The test used forced shortlists containing the correct tool alongside its four closest BM25 competitors, ensuring the model had to interpret verb semantics rather than rely on simple topic matching. Unlike the earlier recall stage — where paraphrased requests caused failure rates as high as 5% — selection accuracy remained consistently high even when users paraphrased requests into synonyms. Argument-filling accuracy was slightly lower at 87–97% under lenient scoring, but description verbosity had no meaningful impact on selection performance. The findings suggest that retrieval quality, not model judgment, is the primary bottleneck in end-to-end tool-calling pipelines.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Generative Engine Optimization: How to Make AI Tools Recommend Your Website

As users increasingly turn to AI tools like ChatGPT, Perplexity, and Google Gemini instead of traditional search engines, a new discipline called Generative Engine Optimization (GEO) is emerging to help websites gain visibility in AI-generated answers. Unlike conventional SEO, GEO requires content to be discoverable through Retrieval-Augmented Generation (RAG), the process by which AI systems perform live web searches and synthesize responses from top results. Technical factors are critical: AI crawlers allow only two seconds per page load and cannot execute client-side JavaScript, making server-side rendering or static site generation essential for AI visibility. Content structure also matters significantly, as AI models break pages into small chunks of roughly 128 tokens, and a study of 10,000 queries found that intentional structural changes can boost AI citation rates by up to 40%. Websites that fail to adapt risk being invisible to AI answer engines, which are rapidly reshaping how people discover information online.

0
ProgrammingDEV Community ·

How a practice app learned to say 'we cannot tell yet' instead of faking progress

CogniPrep, a score-tracking practice platform, discovered that displaying trend arrows based on linear regression slopes was misleading users with false improvement or decline signals. With only 8–12 data points typical in practice sessions, the app found that statistical significance testing alone was insufficient — a result could be significant yet still indicate decline, not improvement. A separate performance bug was also uncovered where the same database query was being executed twice sequentially on every dashboard load, doubling Postgres round trips unnecessarily. The fix involved passing pre-fetched session data as an optional parameter to the analytics engine, eliminating the redundant query while keeping call sites flexible. The broader lesson highlighted is that Next.js fetch deduplication applies only to the React rendering path, not to API route handlers.

0
ProgrammingDEV Community ·

Solo Developer Builds Graph-Powered Agentic Fraud Investigation System at Hackathon

Developer Rohan Kumar, competing solo under team name BROTHERHOOD at Hacker House Goa '26, built an AI-driven fraud investigation agent as part of a TigerGraph challenge. The system uses TigerGraph's graph database to map relational connections between transactions, devices, cards, customers, and billing regions, treating fraud detection as an investigation workflow rather than a simple classification problem. Unlike conventional fraud models that flag individual suspicious transactions, the agent traverses connected evidence across the network, assesses uncertainty, and retrieves historical case context before recommending a next-best action. A policy engine sits between the evidence layer and the final decision, ensuring recommendations are grounded in structured data rather than LLM guesswork. The project includes a live dashboard, a public GitHub repository, and a demo video, with the core design principle being that the graph finds the evidence, the policy decides what to do with it, and the agent connects the two.

0
ProgrammingDEV Community ·

How one CSS media query handles mobile layout for all transactional emails

A developer at CogniPrep built a single HTML email shell function that wraps all transactional and campaign emails, accepting body rows and an unsubscribe URL as inputs. Because every content row is a direct child of the main card table, a single media query targeting .cp-card > tbody > tr > td is enough to adjust side padding for all emails on mobile screens under 600px. The use of child combinators instead of descendant selectors prevents the rule from bleeding into nested tables like score cards or buttons, preserving their individually set padding. The !important flag is intentional, not a shortcut, since inline styles dominate stylesheet rules in email clients and would otherwise override the media query. The template also handles preheader text — the inbox preview line — using four simultaneous hiding techniques and repeated zero-width spaces to stop email clients from appending unintended body copy to the preview.