Generative AI: Tutorial, Projects & Course Syllabus
Practical GenAI with LLMs, RAG, agents and enterprise use cases.
Who this is for
Developers, architects, analysts and professionals
Before you start
Python 3; basic text processing. No LLM API is needed for this retrieval demonstration.
Build a retrieval-first question answering prototype
Retrieval-augmented generation (RAG) retrieves relevant material before asking a model to answer.
Retrieval and generation need separate evaluation. A source document is untrusted data, not a privileged instruction.
Set up your practice environment
Save as retrieve.py and run python3 retrieve.py. This is lexical retrieval, not an embedding model or a complete RAG application.
docs = {
'D1': 'Java classes objects collections',
'D2': 'Physics motion velocity acceleration',
'D3': 'Python data analysis pandas'
}
query = set('physics velocity'.split())
ranked = sorted(docs, key=lambda k:
len(query & set(docs[k].lower().split())), reverse=True)
best = ranked[0]
if query & set(docs[best].lower().split()):
print(best, docs[best])
else:
print('No supporting source')Expected result
Walk through the example
- Token overlap gives a small, transparent baseline score.
- A zero score results in abstention instead of an unsupported answer.
- A future LLM stage should receive the selected source, return source IDs and refuse unsupported claims.
Common mistake
A retrieved document can contain misleading claims or prompt injection. Retrieval is not verification.
Try it yourself
Test a query for an unrelated topic. Add a minimum score threshold of 2.
Reveal suggested solution
Compute overlap for best; if it is below 2, return No supporting source. Measure whether your threshold rejects relevant examples too often.
Portfolio project brief
Build a local FAQ assistant over public course notes with citations, retrieval evaluation and a manual review step.
Acceptance criteria
- Test answerable and unanswerable questions.
- Keep private content out of test data.
- Check source attribution and treat document instructions as untrusted.
This is a project specification, not a completed downloadable project. Build and test it independently or with a mentor.
Quick self-test
Choose one answer per question, then check your score. No sign-in required.
Complete learning roadmap
These are suggested course modules, not a claim that every module has a full tutorial on this site.
- 01LLM foundations
- 02Prompt design patterns
- 03Embeddings & vector search
- 04RAG application design
- 05Agents & tool use
- 06Evaluation, safety & production
Learning outcomes
- Build GenAI workflows
- Design RAG systems
- Evaluate LLM applications
Continue with official documentation
Original PCDS learning material. Check the official documentation for your installed software version; these guides are not vendor-endorsed courses.
Need help learning Generative AI?
Choose a city and describe your learning goal in the enquiry form. Mention Generative AI, your current level and whether you prefer home or online learning. Tutor availability and pricing are subject to confirmation.
Browse Generative AI tutoring options in Mira Road or select a city above.
