A curated collection of practical AI projects implementing OCR systems, RAG, AI agents, and other AI use cases.
π Form-Fill AI: Pro Workspace
A powerful, agentic form-filling application that uses Landing AI for Layout Parsing and MiniMax M2.7 for multi-turn conversational data gathering. Features a cinematic "Live Inking" engine for visual document stamping and a full dual-pane audit workflow.
π¨ Key Features
- 9-Step "Agentic" Workflow: A structured journey from Document Analysis to Final Export.
- Conversational Data Gathering: Talk to the Agent to provide missing information via a persistent chat interface.
- Flicker-Free Live Auto-Filling: Watch the document update in real-time as the Agent "inks" the fields without browser flickering.
- Dual-Pane Verification: Compare the original blank form and the final result side-by-side.
- Session Persistence: Every workspace is saved locally. Refreshing your browser or restarting the app will restore your progress perfectly via URL-based Session IDs.
- History Explorer: A sidebar gallery to manage and toggle between multiple active forms.
ποΈ The 9-Step Journey
- Upload: Provide the target form (PDF/Image) and optional source context (CV/ID).
- Analysis: Landing AI parses the physical layout and detects interactive fields.
- Extraction: The Agent extracts values from your source documents.
- Audit: The Agent reports what was found and what is still missing.
- Conversation: Fill in missing gaps or clarify information via the chat interface.
- The Trigger: Once details are complete, the user triggers the "Visual Auto-Fill".
- Auto-Filling: A cinematic live-action loop "paints" the PDF field-by-field.
- Verification: A high-resolution side-by-side audit of the Original vs. Filled PDF.
- Export: Download the finalized PDF or the raw JSON data registry.
π οΈ Setup & Installation
1. Prerequisites
You will need API keys for the following services:
- Landing AI: For high-accuracy Document extraction.
- MiniMax: For the M2.7 LLM conversation and logic.
2. Environment Configuration
Create a .env file in the root directory:
VISION_AGENT_API_KEY=your_landing_ai_key
MINIMAX_API_KEY=your_minimax_key
3. Clone the Repository
git clone https://github.com/Sumanth077/Hands-On-AI-Engineering.git
cd Hands-On-AI-Engineering/ai_agents/agentic-form-filler
4. Install Dependencies
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
π How to Run
- Start the application using the provided batch script (Windows):
Or run manually via:run.cmdstreamlit run app.py - Upload the provided
sample_complex_employment_application.pdfto see the Agent in action!
ποΈ Technology Stack
- Frontend: Streamlit (Python-based Web Framework)
- Layout Engine: Landing AI (Vision Agent API)
- Intelligence: MiniMax M2.7 (Large Language Model)
- Document Engine: PyMuPDF (Fitz)
- Persistence: URL-based State Synchronization & JSON Storage