All projects

AI Systems

RFE Petition Analyzer

PythonFastAPIOpenAIRAG / vector searchLangChainAWS
$ stack · Python · FastAPI · OpenAI · RAG / vector search · LangChain · AWS

Overview

An end-to-end AI platform I designed and built as an AI/ML Engineer at VisaCompanion, for immigration attorneys handling EB-1A (extraordinary ability) and EB-2 NIW (national interest waiver) petitions. Attorneys upload a petition and receive an analysis report covering how each criterion is supported, likely concerns an officer might raise, weaknesses in the evidence, relevant precedent, and prioritized recommendations, delivered as a downloadable memo.

The Problem

EB-1A and EB-2 NIW petitions are among the most demanding visa categories, and a Request for Evidence (RFE) from USCIS adds cost and months of delay. Attorneys had no fast, consistent way to stress-test a petition against the criteria before filing, so weaknesses often surfaced only after USCIS raised them.

How It Works

  1. 01

    Document ingestion: Parses uploaded petitions and splits them into sections the analysis can reason about.

  2. 02

    Category detection: Works out which petition type it is from the document itself, with no manual selection.

  3. 03

    Criterion-by-criterion AI analysis: Evaluates each legal criterion separately with an LLM, returning structured findings rather than free text.

  4. 04

    Retrieval-augmented grounding (RAG): Grounds the analysis in official policy guidance and published decisions, so findings come with citations instead of unsupported opinions.

  5. 05

    Risk flagging: Highlights generic or weak evidence that commonly triggers RFEs.

  6. 06

    Report generation: Produces a memo-style report with a per-criterion breakdown, citations, and ranked recommendations.

  7. 07

    Production engineering: Served as an API with caching and background processing so analyses stay fast and affordable.

Outcome

  • Gives attorneys a structured, cited read on petition strength before filing, in minutes, instead of discovering weaknesses after an RFE.