Under the Hood

From question to answer in seconds

TradeMate's multi-agent pipeline combines a knowledge graph, vector search, and live market data into a single conversational interface.

01

Natural language — typed or spoken

You Ask

Type any trade question in plain English, or use the voice interface for hands-free queries. No special syntax, no form fields. TradeMate understands context from the full conversation history.

Examples: "What's the HS code for surgical gloves?", "Show me the cheapest sea route from Karachi to LA", "Are there any SRO exemptions for textile machinery?"

02

LangGraph classifies and selects tools

AI Routes

The LangGraph state machine classifies your intent and determines which tools to invoke — Knowledge Graph for structured tariff data, Pinecone for regulatory documents, Freightos for live rates. Multiple tools run concurrently.

Under the hood: gpt-5.4 reads your query and the conversation context, then constructs a tool call plan. Tool selection is deterministic — no hallucination of data.

03

Three live sources, queried in parallel

Data Retrieved

Concurrently: Memgraph returns HS codes, tariff rates, exemptions, and anti-dumping duties via Cypher. Pinecone retrieves the most relevant trade policy chunks via semantic search. Freightos returns live FCL/LCL spot quotes.

58,000+ HS codes, 340K+ graph relationships, and 12,400+ embedded documents are all searchable in milliseconds.

04

Streamed, cited, and actionable

Answer Delivered

gpt-5.4 synthesizes the retrieved data into a clear, cited answer that streams token-by-token. Complex responses render rich widgets: route cost breakdowns, HS code tables, tariff comparisons — directly in the chat.

Average end-to-end response time including live rate fetching: under 3 seconds. Every answer references its data source.

By the numbers

The scale of knowledge powering every answer.

58,000+

HS Codes Indexed

Pakistan PCT and US HTS codes with full tariff schedules

12,400+

Trade Documents

Ingested into Pinecone vector store for RAG retrieval

340K+

Graph Relationships

Tariffs, exemptions, procedures, and anti-dumping duties

99.7%

Query Accuracy

For HS code lookups validated against official schedules

< 3s

Avg Response Time

End-to-end AI query resolution including live rate fetching

2

Countries Covered

Pakistan (PCT via TIPP) and United States (HTS) — expanding

The stack behind the answers

Purpose-built with best-in-class components for trade intelligence.

AI Orchestration

LangGraph StateGraph + gpt-5.4

Multi-step reasoning, concurrent tool execution

Structured Data

Memgraph (Bolt) + Cypher

58K HS codes, 340K+ relationships

Semantic Search

Pinecone + OpenAI Embeddings

12,400+ trade docs, RAG retrieval

Live Market Data

Freightos FaaS API

Real-time FCL/LCL ocean & air quotes

Delivery

FastAPI SSE → Next.js App Router

Token-level streaming, <3s TTFB

Background Jobs

Celery + Redis

Hourly research runner, daily personalisation

See every step live — not just a slideshow

In a 30-minute demo we run a real query end-to-end so you can see the pipeline respond in real time.

Request DemoExplore Features