How sumanth077/hands-on-ai-engineering works
1. Repository Shape and Purpose
This is a curated monorepo of independent, runnable AI engineering examples rather than one deployable product. Projects are organized by modality: agents, OCR, audio, multimodal, RAG, and fine-tuning. Each project owns its runtime, dependencies, credentials, UI, and persistence; there is no shared application package or root orchestration layer.
• README.md
• ai_agents/
• rag_apps/
2. Entry Points and Execution Boundary
Most examples expose a project-local Python UI/application entry point, typically app.py; some use main.py for CLI/service startup. Dependency boundaries are project-local through requirements.txt or pyproject.toml, so environments should be provisioned and run per project, not at repository root.
• ai_agents/research_assistant_with_memory/app.py
• OCR/receipt_expense_tracker/app.py
• fine_tuning/text_to_sql_inventory/app.py
3. Agent Systems
The ai_agents collection implements task-specific LLM agents, including single-agent tool callers and multi-agent workflows. Common control flow is: UI/request → agent or orchestration graph → provider/tool calls → synthesized response. More structured examples separate agent roles, tools, state, and pipelines.
• Multi-agent research with state, retrieval, evaluation, and memory: ai_agents/research_assistant_with_memory/research_assistant/graph.py, ai_agents/research_assistant_with_memory/research_assistant/agents.py, ai_agents/research_assistant_with_memory/research_assistant/memory.py
• Support routing pipeline: ai_agents/customer_query_routing_agent/customer_query_routing_agent/orchestrator.py, ai_agents/customer_query_routing_agent/customer_query_routing_agent/router.py, ai_agents/customer_query_routing_agent/customer_query_routing_agent/resolver.py
• Sequential marketing-agent pipeline: ai_agents/marketing_strategy_agent/marketing_strategy_agent/pipeline.py, ai_agents/marketing_strategy_agent/marketing_strategy_agent/agents.py
4. Retrieval and Knowledge Pipelines
RAG projects isolate ingestion/index construction from retrieval and response generation. Documents or external sources are processed into vector and/or graph stores; a query path retrieves context, optionally routes or fuses sources, then calls an LLM to answer. This is the principal data boundary between raw content, persisted indexes, and model prompts.
• Graph-backed ingestion/search: rag_apps/graphrag_knowledge_system/src/document_processor.py, rag_apps/graphrag_knowledge_system/src/graph_store.py, rag_apps/graphrag_knowledge_system/src/search_engine.py
• Parallel graph/vector hybrid retrieval and fusion: rag_apps/hybrid_rag_system/src/graph_indexer.py, rag_apps/hybrid_rag_system/src/vector_indexer.py, rag_apps/hybrid_rag_system/src/context_fusion.py
• Database-routed retrieval with fallback: rag_apps/rag_agent_with_database_routing/rag_agent/router.py, rag_apps/rag_agent_with_database_routing/rag_agent/retriever.py, rag_apps/rag_agent_with_database_routing/rag_agent/fallback.py
5. Document, Vision, and Audio Processing
OCR and multimodal projects follow staged extraction pipelines: user media → preprocessing/rendering or parsing → vision/OCR/LLM extraction → schema validation, merging, or presentation. Audio translation similarly separates transcription, language translation, and synthesis.
• Structured image extraction: OCR/image_to_structured_data/processor.py, OCR/image_to_structured_data/schemas.py
• Prescription extraction plus drug validation: OCR/medical_prescription_digitizer/extractor.py, OCR/medical_prescription_digitizer/validator.py, OCR/medical_prescription_digitizer/schemas.py
• Medical-document merge pipeline: multimodal/medical_document_parser/document_processor.py, multimodal/medical_document_parser/llm_extractor.py, multimodal/medical_document_parser/merger.py
• Audio stages: audio/multilingual_audio_translator/transcriber.py, audio/multilingual_audio_translator/translator.py, audio/multilingual_audio_translator/synthesizer.py
6. Models, Services, and Persistence
Projects intentionally span hosted and local model infrastructure: OpenAI, Anthropic, Google/Gemini, Mistral, DeepSeek, MiniMax, NVIDIA NIM, Ollama, llama.cpp, and open-source embedding/vision models. External integrations include Firecrawl, DuckDuckGo, GitHub MCP, Cal.com, Gmail/IMAP/SMTP, Telegram, Telnyx, web scraping services, and market-data APIs. Credentials are isolated in per-project .env.example files. Persistence varies by example: SQLite for transactional/local data, Qdrant or Actian VectorAI for retrieval memory, ChromaDB/vector stores for RAG, and local files for source corpora.
• ai_agents/offline_medical_agent/qdrant_data/
• ai_agents/personal_finance_agent/finance.db
• OCR/receipt_expense_tracker/receipt_expense_tracker/database.py
Main entry points: graph.py Research Workflow · context_fusion.py Context Fusion · router.py Database Router · processor.py Image Extraction
Components 32
AI Agents
Independent agent examples.
- Research Assistant UI
ai_agents/research_assistant_with_memory/app.py - Research Workflow
ai_agents/research_assistant_with_memory/research_assistant/graph.py - Research Agents
ai_agents/research_assistant_with_memory/research_assistant/agents.py - Agent Memory
ai_agents/research_assistant_with_memory/research_assistant/memory.py - Support Orchestrator
ai_agents/customer_query_routing_agent/customer_query_routing_agent/orchestrator.py - Query Router
ai_agents/customer_query_routing_agent/customer_query_routing_agent/router.py - Query Resolver
ai_agents/customer_query_routing_agent/customer_query_routing_agent/resolver.py - Marketing Pipeline
ai_agents/marketing_strategy_agent/marketing_strategy_agent/pipeline.py
RAG Systems
Ingestion and retrieval examples.
- GraphRAG Ingestion
rag_apps/graphrag_knowledge_system/src/document_processor.py - Graph Store
rag_apps/graphrag_knowledge_system/src/graph_store.py - Graph Search
rag_apps/graphrag_knowledge_system/src/search_engine.py - Graph Indexer
rag_apps/hybrid_rag_system/src/graph_indexer.py - Vector Indexer
rag_apps/hybrid_rag_system/src/vector_indexer.py - Context Fusion
rag_apps/hybrid_rag_system/src/context_fusion.py - Database Router
rag_apps/rag_agent_with_database_routing/rag_agent/router.py - Database Retriever
rag_apps/rag_agent_with_database_routing/rag_agent/retriever.py - Retrieval Fallback
rag_apps/rag_agent_with_database_routing/rag_agent/fallback.py
Document & Media
OCR, multimodal, and audio pipelines.
- Image Extraction
OCR/image_to_structured_data/processor.py - Extraction Schemas
OCR/image_to_structured_data/schemas.py - Prescription Extractor
OCR/medical_prescription_digitizer/extractor.py - Drug Validator
OCR/medical_prescription_digitizer/validator.py - Medical Document Processor
multimodal/medical_document_parser/document_processor.py - LLM Extractor
multimodal/medical_document_parser/llm_extractor.py - Document Merger
multimodal/medical_document_parser/merger.py - Audio Transcriber
audio/multilingual_audio_translator/transcriber.py - Audio Translator
audio/multilingual_audio_translator/translator.py - Speech Synthesizer
audio/multilingual_audio_translator/synthesizer.py
Persistence
Example-local data stores.
- Qdrant Data
- Finance SQLite
ai_agents/personal_finance_agent/finance.db - Receipt Database
OCR/receipt_expense_tracker/receipt_expense_tracker/database.py
Other components
- Curated AI Examples · Independent runnable projects with no shared runtime.
README.md - Model & Tool Providers · Hosted/local LLMs, embeddings, and integrations.
Connections 24
- Curated AI Examples → Research Assistant UI: contains
- Curated AI Examples → GraphRAG Ingestion: contains
- Research Assistant UI → Research Workflow: runs
- Research Workflow → Research Agents: coordinates
- Research Workflow → Agent Memory: reads/writes
- Research Agents → Model & Tool Providers: calls
- Support Orchestrator → Query Router: routes through
- Query Router → Query Resolver: dispatches
- Marketing Pipeline → Model & Tool Providers: runs agents on
- GraphRAG Ingestion → Graph Store: builds
- Graph Store → Graph Search: queries
- Graph Indexer → Context Fusion: graph context
- Vector Indexer → Context Fusion: vector context
- Context Fusion → Model & Tool Providers: prompts
- Database Router → Database Retriever: selects
- Database Router → Retrieval Fallback: on miss
- Image Extraction → Extraction Schemas: validates against
- Prescription Extractor → Drug Validator: validates drugs
- Medical Document Processor → LLM Extractor: extracts with
- LLM Extractor → Document Merger: produces sections
- Audio Transcriber → Audio Translator: transcript
- Audio Translator → Speech Synthesizer: translated text
- Image Extraction → Model & Tool Providers: uses vision models
- Qdrant Data → Agent Memory: supports examples