All workFILE 23 / 44

Trade analytics

Plain-English questions over import and export data

Shipped for An international-trade analytics company

Question → answer

over HS codes and trade volumes

01

The problem

Trade analysts had the import and export data but needed a query language to ask it anything.

THE MACHINE

02

The system

Custom LLM chains that turn natural-language questions into analysis over import and export records, HS codes and trade volumes, with Pandas underneath, served as an API.

FIG. 01 · SYSTEM FLOW · 5 NODES · 4 FLOWS

System diagram: 5 nodes and 4 directed flows.

  • SOURCE

    • analyst question
  • MODEL

    • LLM chains
  • ACTION

    • Pandas analysis
    • Q&A API answer
  • STORE

    • trade datasets · HS codes

FLOWS

  1. analyst question to LLM chains
  2. LLM chains to Pandas analysis
  3. trade datasets · HS codes to Pandas analysis
  4. Pandas analysis to Q&A API answer
Available when animations are enabled.

MEASURED, NOT CLAIMED

03

The outcome

Analysts ask in plain English and get answers computed from the trade datasets themselves.

FIG. 02 · WHAT IT PRODUCED An answer served by the API: the question becomes an analysis over import and export records, HS codes and trade volumes. Illustration with placeholder values; no client data.