All projects

LLM & agents

Persian traffic-data assistant

From a Persian question to a validated database query.

Industrial AI application · Fakhr Imen Sayna

  • LLM
  • MongoDB
  • Node.js
  • Laravel
  • Structured outputs

The engineering problem

The problem it addresses.

Traffic records are structured data, while people ask questions in natural language. The system needs to translate intent, dates, and filters into a database operation that the application can validate and execute.

My contribution

My part in building it.

Developed a Persian natural-language interface for traffic data, connecting LLM-generated structured commands with validated, optimized MongoDB aggregation pipelines and existing application services.

System components

How the system fits together

Conceptual processing flow
  1. Persian request
  2. Structured intent
  3. Validation & dates
  4. MongoDB aggregation

Intent into structure

Convert Persian requests into structured database commands and validate them before execution.

Dates and aggregations

Handle Jalali/Gregorian conversion and construct optimized MongoDB aggregations for traffic-data queries.

Provider integration

Use a unified multi-provider routing architecture and integrate the AI layer with Node.js, Laravel, and existing data services.

Engineering considerations

The boundary between generated intent and executable database operations is central: schema validation and date handling matter as much as the language model itself.

What I built

An integrated natural-language retrieval application for traffic records, with structured commands, validation, and multi-provider LLM integration.

Explore another project

Discuss a similar challenge