SShortSingh.
Back to feed

How LiveReview Built an LLM That Generates Charts Using JSON, Not Pixels

0
·1 views

LiveReview, maker of an AI-powered code review tool called Livi, developed a system that lets a large language model produce data charts without generating any images directly. Instead of having the LLM render pixels, the team trained it to output Vega-Lite, a JSON-based grammar that declaratively describes chart structure, leaving actual rendering to the Vega-Lite engine. The approach prevents the model from fabricating visual data, since the LLM writes SQL queries but never handles the real numbers — those are injected by backend Go code after the queries are executed. A two-step SQL generation process first estimates result size to avoid impractical charts, while a separate SQL guard blocks non-read-only queries and enforces tenant-level data isolation. The same Vega-Lite definition is used to render both an interactive browser chart and a static PNG for Slack, enabling consistent output across platforms.

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
ProgrammingHacker News ·

AI Credit Resale Economy Emerges as Token Brokers Enter the Market

A new secondary market for AI credits and tokens has emerged, with brokers reselling compute access to end users. These intermediaries purchase AI usage credits in bulk and redistribute them, often at a markup, to businesses and developers. The trend reflects growing demand for flexible AI access without direct enterprise contracts. This resale economy raises questions about pricing transparency and the sustainability of such arbitrage models in the AI industry.

0
ProgrammingDEV Community ·

AI Security Firm Publishes Open Benchmark That Includes Its Own Detection Failures

A developer building AI agent security tools has publicly released a benchmark dataset on GitHub, covering 1,669 samples across 22 attack categories, including both successful detections and known failures. The benchmark reports a 99.8% detection rate at a 0.09% false positive rate, but unusually, it also names the specific cases the engine gets wrong. The author argues that unverifiable detection claims — such as '99% detection' with no supporting methodology — are widespread in the industry and undermine informed buyer decisions. The dataset, licensed under CC BY 4.0, includes full methodology and scoring code so that anyone can clone the repository and reproduce every result. The release is framed as a call for greater transparency and reproducibility in AI security benchmarking.

0
ProgrammingDEV Community ·

DeepSeek Launches V4-Pro, Harness Tool, and Scores 62.7 on DeepSWE Benchmark

On August 13, DeepSeek released several updates simultaneously, including the full launch of its V4-Pro model, which had previously been in preview. The model scored 62.7 on the DeepSWE benchmark, a significant jump from the preview version's score of 12.8, with the evaluation conducted using DeepSeek's own Harness tool in minimal mode. A developer preview of deepseek-harness was also released under an MIT license, offering a single-command setup for web use. New API pricing for V4-Pro takes effect on August 16 at 16:00 UTC, with peak output costs set at $3.96 per million tokens. Additionally, DeepSeek published an 88-page draft paper on spatiotemporal composability as part of the same release wave.

0
ProgrammingDEV Community ·

AEO vs GEO vs SEO: Why the Acronym Matters Less Than the Work

Answer engine optimization (AEO) and generative engine optimization (GEO) are overlapping terms that describe the same core goal: making content easy for AI assistants and search tools to extract as a direct answer. Traditional SEO remains the foundation, since answer engines largely rely on pages already accessible to standard crawlers. The key practical requirements include structuring content around single questions, leading with the answer rather than the reasoning, using plain text instead of images for critical details, and ensuring claims are backed by external sources. As of August 2026, no single term dominates the market, with GEO leading US search volume at 5,400 monthly searches, followed by AI search optimization and AEO. A notable shift from traditional SEO is that AI-driven answers can surface a brand without generating a click, making deliberate mention-tracking across a fixed question set essential for measuring visibility.

How LiveReview Built an LLM That Generates Charts Using JSON, Not Pixels · ShortSingh