Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

DuckDB 3 min read How-to mediumAdept

DuckDB User Group Workshop on AI-Powered Review Analysis with Hugging Face

A one-afternoon workshop pipeline uses DuckDB to find Amazon appliance products whose ratings fell most in the last six months across 2.1 million reviews, then sends only the 40 most helpful recent complaints to an LLM that groups them into themes with safety issues first. Attendees developed against a 22 MB sample, then ran the same ingest script as a $0.01/hour Hugging Face Job writing Parquet to a Storage Bucket and deployed a Gradio workflow to a Space where each node is an API endpoint. The ranking query compares recent and earlier averages with minimum review thresholds because skewed 5-star-heavy distributions make plain averages misleading. Doing the selection in SQL keeps LLM calls few, and the six-column schema lets other feedback data reuse the pipeline unchanged.

Related posts

  • DuckDB: analyze 50,000+ datasets stored on the Hugging Face Hub

    Hugging Face mediumAdept

    Every public dataset on the Hugging Face Hub is now automatically converted to Parquet by the dataset viewer and can be queried with SQL through DuckDB. Parquet file URLs come from the datasets-server `/parquet` HTTP endpoint, and DuckDB's `httpfs` extension then runs analytical queries directly against those remote files. Large datasets are sharded into 500MB Parquet chunks, which DuckDB can query together as multiple files.

  • Inside OpenAI’s in-house data agent

    OpenAI mediumAdept

    OpenAI built an internal GPT-5.2-powered data agent that answers natural-language analytics questions over a platform of 600+ PB and 70k datasets, available via Slack, web, IDEs, Codex CLI and ChatGPT through MCP. Its accuracy rests on six layers of context: table usage and lineage, human annotations, Codex-derived code-level table definitions, institutional knowledge from Slack/Docs/Notion, a user-correctable memory, and live warehouse queries. A daily offline pipeline normalizes and embeds this context for RAG retrieval, keeping latency predictable across tens of thousands of tables. Quality is protected with Evals API test sets that compare generated SQL output against golden queries.

  • Dead Ends or Data Goldmines? Investment Insights from Two Years of AI-Powered Postmortem Analysis

    Zalando Engineering mediumAdept

    Zalando built a multi-stage LLM pipeline (summarization, classification, analyzer digests, cross-incident patterns, investment opportunities) to mine thousands of postmortems for recurring failure patterns in its datastores: Postgres, DynamoDB, ElastiCache, S3 and Elasticsearch. They chose chained single-purpose prompts in a map-fold pattern over large-context models to avoid "lost in the middle" effects, cost and latency. Strict no-inference prompts and negative examples counter hallucinations and surface attribution errors. NotebookLM alone gave roughly a 3x speedup but hallucinated and lost context, and human curation at each stage remains essential for trust and accuracy.

  • Automated merchant review summary system with integrated feedback

    Grab Engineering easyNovice

    Grab generates consumer-facing merchant review summaries with a pipeline that stratifies review samples by a sentiment-scored rating distribution, uses an LLM to produce overall and topic-based summaries (taste, packaging, portion size), and has a separate LLM check each claim against the sampled reviews before publication. Summaries are regenerated when new reviews or negative helpfulness feedback cross configured thresholds. Matching the rating distribution doesn't guarantee coverage of time periods, languages or segments, LLM validation reduces but doesn't eliminate unsupported claims, and feedback-driven regeneration needs anti-abuse controls.

  • Building a RAG pipeline for Google Analytics with ClickHouse and Amazon Bedrock

    ClickHouse mediumAdept

    A natural language interface over raw Google Analytics data stored in ClickHouse is built as a multi-step RAG pipeline that generates SQL from user questions using Amazon Bedrock models. Drawing on text-to-SQL research such as DAIL-SQL from the Spider benchmark, the design retrieves similar example questions and their SQL via vector embeddings, because concepts like "returning users" cannot be inferred from the schema alone. Embeddings come from a Python executable-pool UDF calling Titan embeddings, with retries and backoff for Bedrock quotas, and are invoked at query or insert time. ClickHouse serves as both the vector store and the analytics database, and specific settings are given to parallelize embedding generation on small tables.

The quest for software engineering knowledge.

Look:
Layout: