Immigration Navigator
Problem & Motivation
Picture this: years of study, a U.S. degree, a job offer—and then losing the ability to work because of a filing deadline you did not know existed. During 2024–2025, U.S. institutions hosted nearly 1.2 million international students, including more than 294,000 participating in Optional Practical Training (OPT).¹ Collectively, international students contributed $42.9 billion to the U.S. economy that academic year.²
For F-1 students pursuing U.S. careers, the path may involve OPT, STEM OPT, and an employer-sponsored H-1B petition—each with filing deadlines and reporting requirements. Missing an applicable deadline can jeopardize employment authorization or F-1 status.³
Legal assistance can help, but published fees range from approximately $1,000 to $5,500 or more, depending on the service and complexity of the case.⁴ ChatGPT is not designed to limit every answer to official immigration policy; without web search enabled, it answers using information learned during training.⁵
Immigration Navigator is designed differently: it retrieves and cites information from official government sources— so students can verify the guidance they receive.
Data Source & Data Science Approach
Our knowledge base is built from four official U.S. government sources — the USCIS Policy Manual, the Adjudicator's Field Manual, the State Department's Visa Bulletin, and the Federal Register — nearly a million words across 3,500 documents, each kept fresh on a schedule matched to how that source actually updates.
On top of that corpus sits a five-stage Retrieval-Augmented Generation (RAG) pipeline engineered specifically for the pitfalls of immigration law: synonym expansion bridges the gap between everyday language ("work permit") and legal terminology ("employment authorization document"); profile injection conditions retrieval on the user's visa status, degree, and graduation timeline; vector retrieval via FastEmbed and ChromaDB surfaces the most relevant policy; a custom reranker actively corrects for one of RAG's most dangerous failure modes in this domain — confusing semantically similar but legally distinct visa categories, like H-1B and J-1; and citation-enforced generation ensures every answer is traceable to a real source, or the system declines rather than guess. Deadline math is handled by a deterministic Python rules engine, not the LLM, because in immigration, a wrong date can cost someone their legal status. The full system runs on AWS behind a FastAPI backend.
Evaluation
We didn't just test this system — we stress-tested it against real legal stakes. Working with immigration attorneys and prospective users, we built a 50-question corpus spanning the full F-1 → OPT → STEM OPT → H-1B pipeline and scored responses against nine criteria, from citation accuracy to whether critical warnings (like travel restriction risk) were surfaced. Attorney review found our answers generally correct, with remaining gaps concentrated in fine details rather than substantive errors. We also head-to-head benchmarked Groq's Llama 3.3 70B against OpenAI's GPT-4o-mini on correctness, retrieval quality, and cost, ultimately choosing OpenAI to serve the most students with the most reliable answers per dollar.
Key Learnings & Impact
The hardest problems in this project were never really about the model — they were about the data underneath it. A mislabeled policy volume, visa terms that look nearly identical in vector space, and an EC2 instance that ran out of memory mid-embedding all demanded as much rigor as the RAG architecture itself. What we walked away with is a live, working tool with genuine potential to cut cost, confusion, and risk for the hundreds of thousands of F-1 students navigating this pipeline every year.
Acknowledgements
Immigration Navigator was built as part of the UC Berkeley MIDS Capstone program, 2026. Special thanks to our instructors, Joyce Chen and Korin Reid, for their guidance throughout the project, and to our subject matter expert attorneys, for their invaluable review and feedback.
References
¹ Institute of International Education. “Open Doors 2025: International Student Enrollment Data.” 17 Nov. 2025, https://www.iie.org/news/open-doors-2025-press-release/.
² Stewart, Erica L. “International Students Contributed $43 Billion to the U.S. Economy in 2024–2025; Fall 2025 Spending Down by $1.1 Billion.” NAFSA, 17 Nov. 2025, https://www.nafsa.org/about/about-nafsa/international-students-contributed-43-billion-us-economy-2024-2025-fall-2025.
³ U.S. Citizenship and Immigration Services. “Optional Practical Training (OPT) for F-1 Students,” https://www.uscis.gov/working-in-the-united-states/students-and-exchange-visitors/optional-practical-training-opt-for-f-1-students; U.S. Citizenship and Immigration Services. “Optional Practical Training Extension for STEM Students,” https://www.uscis.gov/working-in-the-united-states/students-and-exchange-visitors/optional-practical-training-extension-for-stem-students-stem-opt; U.S. Department of Homeland Security. “Students: STEM OPT Reporting Requirements,” https://studyinthestates.dhs.gov/stem-opt-hub/for-students/
students-stem-opt-reporting-requirements.
⁴ Alonso & Alonso Attorneys at Law. “Immigration Lawyer Fees 2025: Cost Guide & Tips,” https://alonsoandalonsolaw.com/en/immigration-lawyer-fees/; California Visa & Immigration. “Attorney’s Fees,” https://www.calivisa.com/attorneys-fees.
⁵ OpenAI. “Does ChatGPT Tell the Truth?” https://help.openai.com/en/articles/8313428-does-chatgpt-tell-the-truth; OpenAI. “ChatGPT Search,” https://help.openai.com/articles/9237897-chatgpt-search.
