PCDS Tutors — Home • Online • Academic • Professional LearningServing 10+ launch cities • Expanding across India
Practical learning guideIntermediate

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.

Practical lesson

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.

python
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

D2 Physics motion velocity acceleration

Walk through the example

  1. Token overlap gives a small, transparent baseline score.
  2. A zero score results in abstention instead of an unsupported answer.
  3. 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.

1. What is evaluated before generation in RAG?
2. What should happen when evidence is missing?

Complete learning roadmap

These are suggested course modules, not a claim that every module has a full tutorial on this site.

  1. 01LLM foundations
  2. 02Prompt design patterns
  3. 03Embeddings & vector search
  4. 04RAG application design
  5. 05Agents & tool use
  6. 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.

OpenAI retrieval guide →

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.

Generative AI Tutorial, Practical Project & Course Syllabus | PCDS Learning