Intent into structure
Convert Persian requests into structured database commands and validate them before execution.
LLM & agents
From a Persian question to a validated database query.
Industrial AI application · Fakhr Imen Sayna
The engineering problem
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
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
Convert Persian requests into structured database commands and validate them before execution.
Handle Jalali/Gregorian conversion and construct optimized MongoDB aggregations for traffic-data queries.
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
Explore another project