Ilya Khalafi
Ilya KhalafiAI ENGINEER

Ilya Khalafi

AI Engineer

I build and ship LLM systems end to end. My work includes hybrid retrieval over millions of chunks, knowledge graph extraction, agentic workflows over enterprise data, and post-training open-weight models on multi-GPU clusters.

My foundation is in machine learning and theory, and my goal is to apply that knowledge in practice. I see theory as the bones and practice as the flesh. Theory gives my work structure, while practice brings it to life.

Currently pursuing an MSc in Data Science
at the University of Tehran ↗
FOCUS AREAS
LLM Post-TrainingRAG & Hybrid SearchKnowledge GraphsAgentic SystemsData EngineeringDistributed Systems
02 / EXPERIENCE

Professional Experience

AI Engineer

Resana Feb 2026 – Present Tehran, Iran
Show detailsClose details
  • Achieved a score of 80% on an in-house agent built for a Japanese partner company, retrieving facts from 1.5M+ chunks using knowledge graphs, Qdrant hybrid search, Elasticsearch keyword search, and other tools.
  • Scored 96% for another client by converting chart- and table-heavy documents into SQL tables and Qdrant hybrid indexes, answering time-interval questions with a Qwen3.6-35B model on DGX Spark hardware.
  • Currently fine-tuning Qwen3.6-35B with SFT + LiPO + GSPO using the verl library on a cluster of 8× H200 GPUs for that agent.
  • Implemented a synthetic data generation pipeline spanning simple conversational, internal security, hallucination-check, SQL, and search-grounded categories with k rollouts for SFT/LiPO; SFT phase stable with MiCA initialization, testing LiPO before DAPO/GSPO.
verlSFTPreference Optimization vLLMLangChainLangGraph QdrantElasticsearch Knowledge GraphsSynthetic Data Generation

Full Stack AI Engineer

Nabaco Oct 2025 – Feb 2026 · Hybrid Tehran, Iran
Show detailsClose details

Worked on OneMan-AI, a business intelligence AI agent for analyzing heterogeneous, islanded databases and files across enterprise environments.

  • Implemented MCP tools on top of Trino to integrate multiple data sources — from SQL and NoSQL databases to Excel files — through a unified query layer for the AI agent.
  • Built highly efficient workflows for ingesting structured and unstructured files, and deployed the data engineering pipeline with Hatchet for production file-processing workflows.
  • Developed the agent's schema exploration and intent recognition capabilities, plus key agentic workflow and backend components.
  • Deployed and maintained platform services including GitLab, GitLab Runner, Langfuse, and Portainer, with CI/CD pipelines for all microservices.
  • Implemented most of the backend services with Django and the web UI with Next.js for end-to-end delivery of the analytics platform.
TrinoMCPHatchet LangChainLangGraph DjangoNext.jsCI/CD

AI & Data Engineer

Mindro Nov 2024 – Oct 2025 · Remote Amsterdam, Netherlands
Show detailsClose details
  • Improved pipeline throughput 2× by designing batching and asynchronous I/O operations for large-scale document processing.
  • Achieved near-linear CPU scaling with a fault-tolerant multi-process architecture handling a 200K+ document corpus efficiently.
  • Constructed asynchronous pipelines for ontology and knowledge graph extraction with page-level reference integrity.
  • Engineered the asynchronous AI agent core on LangChain / LangGraph with efficient memory management and evaluation hooks.
  • Conducted comprehensive benchmarking of vector database search relevance and latency for enterprise use cases.
  • Enhanced agent observability with Langfuse-based multi-metric tracing and automated performance dashboards.
LangChainLangGraphAsyncio Knowledge GraphsVector DatabasesLangfuse
04 / EDUCATION

Education

MSc in Data Science

University of Tehran Oct 2025 – Present Tehran, Iran

Current CGPA 19.92 / 20

Supervisor: Dr. Hadi Veisi

BSc in Computer Science

Amirkabir University of Technology (Tehran Polytechnic) Sep 2020 – Aug 2024 Tehran, Iran

CGPA 19.17 / 20

Thesis: Adversarial Learning of Audio-Based Animated 3D Facial Expressions from Online Videos

High School Diploma in Mathematics

Shahid Soltani 3 High School (NODET) 2017 – 2020 Tehran, Iran

National Organization for Development of Exceptional Talents

//

Honors & Awards

🏆

Rank #4 Student

Sep 2020 – Aug 2024 · Amirkabir University of Technology

Ranked #4 among all Computer Science undergraduates with a CGPA of 19.17/20, and held the #1 ranking for 4 out of 8 semesters.

🥈

Silver Medal

2017 · Ibn Haitham Robotics Competition

Second place in the Road Smoothing Robots category at the national robotics competition.

05 / CONTACT

Contact

Open to research collaborations and research positions in AI systems, LLMs, and data infrastructure.