Skip to content
Arnav Sahai
Back to work

AI & Automation

ASAN MACRO — AI-Powered Trade Intelligence Agent

Tool-augmented LLM agent that converts structured trade data into grounded, decision-ready economic sentiment reports.

Role: Sole builder (data layer, agent, evaluation, and reporting)

Context

Manual Comtrade-to-spreadsheet-to-generic-LLM workflows are slow, inconsistent, and poorly grounded for economists and strategy readers who need repeatable briefs.

Method / approach

Designed an agentic workflow over SQLite trade data with custom analyst tools and lightweight RAG. The system supports multi-backend LLMs, optional Comtrade ingest, structured report formats, evaluation harnesses, and adversarial/safety probes so claims stay tied to stored flows rather than free-form guessing.

Tools and technologies

  • Python
  • SQLite
  • LLM tool-calling / RAG
  • UN Comtrade ingest scripts
  • Evaluation & adversarial test harnesses

Key deliverables

  • CLI trade sentiment report generator
  • Nine analyst query tools over trade flows
  • HTML / LinkedIn / JSON output formats
  • Evaluation and safety probe scripts

Results / findings

  • Built an end-to-end agentic product for BRICS and sector-focused trade analysis with documented evaluation scaffolding.

Evidence & links