Close Menu
techwavedispatch.com

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Enterprise sales push OpenAI’s quarterly revenue to $10 billion, though it still trails Anthropic

    November 11, 2026

    Exclusive: Your Smartphone Camera Could Get a Big Upgrade With This Tech

    November 11, 2026

    [2605.07396] Rethinking Black-Box On-Policy Distillation: A Rubric-based Analysis

    November 11, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Enterprise sales push OpenAI’s quarterly revenue to $10 billion, though it still trails Anthropic
    • Exclusive: Your Smartphone Camera Could Get a Big Upgrade With This Tech
    • [2605.07396] Rethinking Black-Box On-Policy Distillation: A Rubric-based Analysis
    • Introducing the SQL Console on Datasets
    • RIP To The GOAT Of Low-Cost Electric Motoring
    • Out-of-Sample, Out-of-Time, and Cold-Start Evaluation on User Event Sequences
    • UK regulator threatens universities with sanctions unless they adopt AI-proof exam formats
    • [2512.02581] Generative Online Reinforcement Learning
    Facebook X (Twitter) Instagram
    techwavedispatch.com
    Subscribe
    Wednesday, November 11
    • Home
    • AI Tools & Software
    • Machine Learning
    • Generative AI
    • Robotics & Automation
    • Future Tech & Hardware
    • AI in Business
    • Ethics & Regulations
    • More
      • Gadgets & Smart Devices
      • Cybersecurity & AI
      • Tech Breakthroughs
    techwavedispatch.com
    Home»AI Tools & Software»Introducing the SQL Console on Datasets
    AI Tools & Software

    Introducing the SQL Console on Datasets

    adminBy adminNovember 11, 2026No Comments5 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Introducing the SQL Console on Datasets
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Datasets use has been exploding and Hugging Face has become the default home for many datasets. Each month, as the amount of datasets uploaded to the Hub increases, so does the need to query, filter and discover them.

    Dataset Monthly Creations
    Datasets created on Hugging Face Hub each month

    We are very excited to announce that you can now run SQL queries on your datasets directly in the Hugging Face Hub!



    Introducing the SQL Console for Datasets

    On every dataset you should see a new SQL Console badge. With just one click you can open a SQL Console to query that dataset.

    Querying the Magpie-Ultra dataset for excellent, high quality reasoning instructions.

    All the work is done in the browser and the console comes with a few neat features:

    • 100% Local: The SQL Console is powered by DuckDB WASM, so you can query your dataset without any dependencies.
    • Full DuckDB Syntax: DuckDB has full SQL syntax support, along with many built in functions for regex, lists, JSON, embeddings and more. You’ll find DuckDB syntax to be very similar to PostgreSQL.
    • Export Results: You can export the results of your query to parquet.
    • Shareable: You can share your query results of public datasets with a link.



    How it works



    Parquet Conversion

    Most datasets on Hugging Face are stored in Parquet, a columnar data format that is optimized for performance and storage efficiency. The Dataset Viewer on Hugging Face and the SQL Console load the data directly from the datasets Parquet files. And if the dataset is in another format, the first 5GB is auto-converted to Parquet. You can find more information about the Parquet conversion process in the Dataset Viewer Parquet API documentation.

    Using the Parquet files, the SQL Console creates views for you to query based on your dataset splits and configs.



    DuckDB WASM 🦆

    DuckDB WASM is the engine that powers the SQL Console. It is an in-process database engine that runs on Web Assembly in the browser. No server or backend needed.

    By running solely in the browser, it gives the user the upmost flexibility to query data as they please without any dependencies. It also makes it really simple to share reproducible results with a simple link.

    You may be wondering, “Will it work for big datasets?” and the answer is, “Yes!”.

    Here’s a query of the OpenCo7/UpVoteWeb dataset which has 12.6M rows in the Parquet conversion.

    Reddit Movie Suggestions

    You can see we received results for a simple filter query in under 3 seconds.

    While queries will take longer based on the size of the dataset and query complexity, you will be surprised about how much you can do with the SQL Console.

    As with any technology, there are limitations.

    • The SQL Console will work for a lot of queries. However, the memory limit is ~3GB, so it is possible to run out of memory and not be able to process the query (Tip: try to use filters to reduce the amount of data you are querying along with LIMIT).
    • While DuckDB WASM is very powerful, it doesn’t have full feature parity with DuckDB. For example, DuckDB WASM does not yet support the hf:// protocol to query datasets.



    Example: Converting a dataset from Alpaca to conversations

    Now that we’ve introduced the SQL Console, let’s explore a practical example. When fine-tuning a Large Language Model (LLM), you often need to work with different data formats. One particularly popular format is the conversational format, where each row represents a multi-turn dialogue between a user and the model. The SQL Console can help us transform data into this format efficiently. Let’s see how we can convert an Alpaca dataset to a conversational format using SQL.

    Typically, developers would tackle this task with a Python pre-processing step, but we can show how to use the SQL Console to achieve the same in less than 30 seconds.

    In the dataset above, click on the SQL Console badge to open the SQL Console. You should see the query below automatically populated.

    When you are ready, click the Run Query button to execute the query.



    SQL

    
    WITH 
    source_view AS (
      SELECT * FROM train  
    )
    SELECT 
      [
        struct_pack(
          "from" := 'user',
          "value" := CASE 
                       WHEN input IS NOT NULL AND input != '' 
                       THEN instruction || '\n\n' || input
                       ELSE instruction
                     END
        ),
        struct_pack(
          "from" := 'assistant',
          "value" := output
        )
      ] AS conversation
    FROM source_view
    WHERE instruction IS NOT NULL 
    AND output IS NOT NULL;
    

    In the query we use the struct_pack function to create a new STRUCT row for each conversation.

    DuckDB has great documentation on the STRUCT Data Type and Functions. You’ll find many datasets contain columns with JSON data. DuckDB provides functions to easily parse and query these columns.

    Alpaca to Conversation

    Once we have the results, we can download them as a Parquet file. You can see what the final output looks like below.

    Try it out!

    As an another example, you can try a SQL Console query for SkunkworksAI/reasoning-0.01 to see instructions with more than 10 reasoning steps.



    SQL Snippets

    DuckDB has a ton of use cases that we are still exploring. We created a SQL Snippets space to showcase what you can do with the SQL Console.

    Here are some really interesting use cases we have found:

    Remember, it’s one click to download your SQL results as a Parquet file and use for your dataset!

    We would love to hear what you think of the SQL Console and if you have any feedback, please comment in this post!



    Resources

    Console datasets Introducing SQL
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    admin
    • Website

    Related Posts

    Enterprise sales push OpenAI’s quarterly revenue to $10 billion, though it still trails Anthropic

    November 11, 2026

    UK regulator threatens universities with sanctions unless they adopt AI-proof exam formats

    November 11, 2026

    Fine-tuning LLMs to 1.58bit: extreme quantization made easy

    November 11, 2026
    Leave A Reply Cancel Reply

    Top Posts

    NVIDIA Is Investigating Reports That CEO Jensen Huang Was The Target Of Chinese Spy Efforts

    November 8, 202619 Views

    F1 in Brazil: Drivers at their very best in tricky conditions

    November 9, 20263 Views

    Shaping & Monitoring Models through their Internal Representations

    November 7, 20263 Views

    If AGI is so close, why is everyone leaving? The neolabs and their bets

    November 6, 20263 Views
    Don't Miss
    AI Tools & Software

    Enterprise sales push OpenAI’s quarterly revenue to $10 billion, though it still trails Anthropic

    By adminNovember 11, 20260

    OpenAI posts a massive Q3 revenue jump, driven by new AI models and enterprise customers.…

    Exclusive: Your Smartphone Camera Could Get a Big Upgrade With This Tech

    November 11, 2026

    [2605.07396] Rethinking Black-Box On-Policy Distillation: A Rubric-based Analysis

    November 11, 2026

    Introducing the SQL Console on Datasets

    November 11, 2026
    About Us

    Welcome to TechWave Dispatch

    At TechWave Dispatch, we bring you the latest news, insights, and developments from the ever-evolving world of technology. Our mission is to keep readers informed about the innovations shaping our digital future.

    From artificial intelligence and machine learning to cybersecurity, robotics, smart devices, and groundbreaking technologies, we cover the topics that matter in today's fast-moving tech landscape.

    Our Picks

    Enterprise sales push OpenAI’s quarterly revenue to $10 billion, though it still trails Anthropic

    November 11, 2026

    Exclusive: Your Smartphone Camera Could Get a Big Upgrade With This Tech

    November 11, 2026

    [2605.07396] Rethinking Black-Box On-Policy Distillation: A Rubric-based Analysis

    November 11, 2026
    Most Popular

    Ramp data shows AI spending stalling just as Anthropic nears its IPO

    November 6, 20260 Views

    AI Companies Really, Really Want to Buy Your Work Files and Emails

    November 6, 20260 Views

    Who Controls Scientific Discovery? – O’Reilly

    November 6, 20260 Views
    Facebook X (Twitter) Instagram Pinterest
    • Terms and Conditions
    • Privacy Policy
    • Contact Us
    • About Us
    © 2026 TechWave Dispatch. All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.