Product demo: NL2Query

Customized Reports From a Plain-English Question

NL2Query translates report requests written in natural language into database queries, so you no longer keep a team just to build custom reports for each client.

nl2query, one request

  1. Question

    “List the top 10 applications that don't renew automatically, ordered by name.”

  2. Generated query

    db.applications.aggregate([
      { $match: { org_id: 3, auto_renewal: false } },
      { $sort: { name: 1 } },
      { $limit: 10 },
      { $project: { _id: 0, name: 1 } }
    ])
  3. Result

    [ { name: 'CogniSys' }, { name: 'CogniWave' },
      { name: 'EchoSync' }, … ]

The problem

Software product companies keep tailoring reports to each client's requirements.

  • One report per client

    One client wants average expense per user per month; another wants weekly expenses per department.

  • Reporting screens never settle

    Product teams keep adapting reporting interfaces to meet each client's needs.

  • A team just for reports

    Organizations carry the overhead of a team that produces customized client reports.

  • Questions are messy

    Users misspell or half-remember field names, and some questions name people whose data must stay private.

Before, each new report meant new interface work. Now the client asks, and the report comes back.

  1. Before

    A Build per Report

  2. With NL2Query

    A Question per Report

  3. Outcome

    Less Reporting Overhead

How it works

At its core is a large language model that works out what the user wants, builds the database query and retrieves the data from your tables.

  1. 01

    Ask in plain English

    Type the report you want, the way you would say it.

  2. 02

    Clean the question

    Wrong or incomplete field names are corrected, and PII is swapped for anonymous IDs.

  3. 03

    Build the query

    The model writes an accurate query, including complex logic and arithmetic.

  4. 04

    Return the report

    Results come back from the database in a few seconds, with meta-information cards.

See it work

Real screens from the demo: the question, the query it wrote and what came back.

Filtering on columns

  1. 1Question

    Filtering on columns: the question typed into the NL2Query demo
  2. 2Generated query

    Filtering on columns: the MongoDB query NL2Query wrote
  3. 3Result

    Filtering on columns: the data returned from the database

Advanced features

  • 01

    Catches spelling mistakes

    When users type wrong or incomplete field names, it suggests or uses the right ones.

  • 02

    Keeps PII out of queries

    It recognizes people and other PII in a question, looks up their anonymous IDs and rewrites the question.

  • 03

    Resolves complex queries

    It generates accurate queries for complex logical and arithmetic operations.

  • 04

    Engineered for speed

    A question is parsed, checked and answered from the database in just a few seconds.

  • 05

    Shows meta-information

    Each answer comes with meta-information cards alongside the query output.

Currently supports
MongoDB, MySQL and PostgresExtends easily to any relational or document-oriented database.