Frequently Asked Questions About Sundas Khalid AI Portfolio Projects Framework
22 answers covering everything from basics to advanced usage.
// Basics
What is RAG and why is it the first project in this framework?
RAG (Retrieval Augmented Generation) is an architecture that retrieves relevant information from a document collection before generating an answer, letting the LLM respond with citations instead of relying on memory. It's the first project because reliable RAG is one of the most in-demand AI skills, and building it to production standard — with evaluation and graceful decline — proves you understand retrieval quality, not just prompting.
What is a voice AI agent with tool calling?
A voice AI agent understands spoken requests in real time, calls the correct external functions or APIs to take action, and responds via speech. Tool calling is the capability that lets the LLM invoke defined functions — like checking table availability or looking up allergen data — rather than generating text-only replies. It completes tasks rather than just answering questions.
What is a hybrid moderation system?
A hybrid moderation system is a three-tier content moderation architecture combining rules for the clearest cases, a traditional ML classifier for most remaining comments, and LLM review only for low-confidence ambiguous cases. Anything that could trigger an account penalty routes to a human. It optimises for both accuracy and cost, demonstrating the engineering judgment hiring managers prize.
What inputs do I need to start this framework?
The only required input is your target AI/ML role — ML Engineer, Data Scientist, or AI Engineer. Optional inputs sharpen the strategy: a target company or industry to theme all three projects, a personal interest domain to select your RAG topic, and your current skill level with Python, ML libraries, and LLM tooling. The more context you provide, the more strategically aligned your portfolio becomes.
// How To
How do I choose a good RAG topic for my portfolio?
Pick a domain you're genuinely curious about, or one adjacent to your target company's business. Genuine interest produces deeper, more authentic work and better interview conversations. For a Mars mission theme you might use the NASA Technical Report Server; for a health company, sports science research papers. The topic matters less than the depth and quality of your implementation and documentation.
How do I build the voice agent's allergy guardrail?
Force the agent to only return allergen information from a verified allergen field — never fabricate or infer it. If the data is missing or unclear, the agent must decline rather than hallucinate, because incorrect allergy information is dangerous. Build this guardrail explicitly, test it with edge cases, and document it on GitHub as evidence you understand high-stakes failure modes.
How do I evaluate my RAG system properly?
Use Ragas to measure context precision, recall, faithfulness, citation accuracy, and latency. Include both working answer examples and failed answer examples in your GitHub repo. Without these metrics, your project is a demo, not an engineering artefact. The evaluation results and failure analysis are what transform the project into a compelling interview case study.
How do I generate data for the voice agent project?
Generate a fictional dataset using ChatGPT or Claude containing menu items, ingredients, allergy information, opening hours, table availability, and reservations. Load it into SQLite or PostgreSQL. Then build tools in order: check table availability, search menu and allergy data, and create reservations. This gives you realistic structured data to power tool calling without needing real business data.
How do I document these projects to hiring-manager standard?
Treat each README as a case study write-up, not an installation guide. For every project include where the data came from, why you chose that architecture, what failed, how you tested it, and what you improved. Add an architecture diagram, evaluation results, and comparison tables. The quantity of information you can discuss in an interview correlates directly with documentation depth.
// Troubleshooting
My RAG system answers questions not in the documents. How do I fix this?
Add a graceful decline response so the system refuses to answer when the retrieved chunks don't contain the requested information. This prevents hallucination and shows hiring managers you understand out-of-scope handling. Combine it with hybrid retrieval and a reranker to improve chunk relevance, and verify with Ragas faithfulness and citation accuracy metrics that answers are grounded in your documents.
My voice agent breaks when customers interrupt or transcription fails. What should I do?
Explicitly test and handle failure modes: customer interruptions, incorrect transcriptions, unavailable time slots, and tool failures. These aren't optional — documented failure handling is what separates an engineering artefact from a demo. Build recovery behaviour for each, measure task completion rate and handoff accuracy, and include sample conversations showing failures and graceful recovery in your GitHub repo.
My moderation system has too many false positives on identity terms. How do I handle this?
Review false positives carefully, especially comments mentioning identity terms, since keyword-based approaches wrongly flag harmless mentions. Replace blunt keyword filters with your three-tier hybrid architecture and tune the classifier. Document a false positive analysis in your repo — demonstrating that you noticed and addressed this fairness issue is itself a strong signal of engineering maturity to hiring managers.
Why is my project treated as a demo instead of real work?
Likely because you skipped evaluation metrics or failure analysis. Without measuring context precision, faithfulness, F1, false positives, latency, and API cost, and without documenting what failed and why, the project reads as a polished demo. Hiring managers need to see real use cases and real failure modes — add metrics, comparison tables, and honest failure examples to make it an engineering artefact.
// Comparisons
How does the hybrid approach compare to sending everything to an LLM?
The hybrid approach is dramatically cheaper and faster while maintaining accuracy. Sending every comment to an LLM racks up API cost and latency and signals poor judgment. In the moderation project you run all three scenarios — traditional ML only, full-LLM, and hybrid — and measure F1, false positives, latency, LLM call count, and estimated cost. The comparison table itself is the proof of judgment.
How does this framework compare to building one big impressive project?
One big project can only demonstrate one skill cluster, whereas three distinct projects signal breadth and depth. The framework deliberately targets three separable skills: reliable RAG, agentic tool calling, and knowing when to combine ML with an LLM. This spread lets hiring managers assess multiple competencies and gives you varied interview material rather than a single talking point.
How is a production-ready RAG system different from a basic RAG demo?
A basic demo just retrieves chunks and generates an answer. A production-ready RAG system adds hybrid retrieval, a reranker, graceful decline for out-of-scope questions, and evaluated metrics for context precision, recall, faithfulness, citation accuracy, and latency. The difference is the gap between proving you can follow a tutorial and proving you understand retrieval quality and failure handling.
Should I use LangChain or LlamaIndex for the RAG project?
Either works — both connect your RAG pipeline components. The framework names them interchangeably for linking extraction, chunking, embedding, and retrieval. What matters more than the library choice is the surrounding engineering: hybrid retrieval, reranking, graceful decline, and Ragas evaluation. Pick whichever you're comfortable with and document why in your README.
// Advanced
Should I use ChromaDB or pgvector for the vector store?
Both are valid vector stores for the RAG project. ChromaDB is simpler to get running for a focused document collection, while pgvector is a good choice if you want to demonstrate Postgres familiarity relevant to many production stacks. The decision isn't critical to the framework — document your reasoning for the choice, since explaining design trade-offs is itself a portfolio signal.
What advanced additions make a RAG project stand out most?
Add hybrid retrieval combining semantic vector search with keyword search, a reranker to reorder retrieved chunks by relevance, and a graceful decline response for questions the documents can't answer. Then prove their impact with Ragas metrics before and after. These additions show you understand retrieval quality beyond the basics, which strongly differentiates you from tutorial-portfolio candidates.
How should I decide which parts of a problem actually need an LLM?
Ask whether a cheaper, deterministic method can handle it first. Use rules for clear-cut cases, traditional ML like logistic regression for the bulk of classification, and reserve the LLM only for genuinely ambiguous inputs. In the voice agent, reflect on whether every step needs an LLM. This disciplined routing is the engineering judgment the creator identifies as the key differentiator in the current AI era.
How do I theme all three projects toward a specific target company?
Orient each project toward the company's industry. For a retail company: RAG over e-commerce regulations or retail reports, a voice agent handling order status and returns with a fictional product catalogue, and moderation for a product review platform with API cost estimates. The consistent theme signals genuine interest in the company and makes your portfolio feel purpose-built rather than generic.
Which datasets should I use for the hybrid moderation project?
Use the Civil Comments dataset via TensorFlow Datasets or the Jigsaw Toxic Comment Classification dataset from Kaggle. Both contain human-labelled public comments with categories like toxicity, threats, insults, and identity attacks. Build your three-tier architecture with Python, Pandas, and scikit-learn plus an LLM API, then run the three comparison scenarios and measure F1, false positives, latency, and cost.