About this course
Build applications on large language models and autonomous agents, covering transformer theory, prompt engineering, retrieval-augmented generation, tool use, multi-agent orchestration, evaluation, safety, and parameter-efficient fine-tuning.
Teams build a domain-specific LLM application that progresses from a zero-shot API baseline (OpenAI and Anthropic APIs) through an engineered RAG pipeline (LlamaIndex, FAISS, Qdrant) to a multi-step agentic workflow with tool use (LangChain), Langfuse observability, a structured RAGAS evaluation suite, Guardrails AI safety controls, and an OWASP LLM risk review.
Expected outcomes
- Derive the transformer architecture from multi-head self-attention, Q/K/V projections, positional encoding, and feed-forward sublayers, and explain causal language modeling as autoregressive next-token prediction optimized by cross-entropy
- Apply prompt engineering techniques — zero-shot, few-shot, chain-of-thought, ReAct, self-consistency, and meta-prompting — using the OpenAI and Anthropic APIs, and analyze how in-context learning and emergent capabilities steer conditional token distributions
- Build retrieval-augmented generation pipelines with dense embedding retrieval and context injection, and extend them with advanced techniques including hybrid search, re-ranking, HyDE, and multi-query retrieval using LlamaIndex, FAISS, and Qdrant
- Design multi-step autonomous agents with tool use, function calling, episodic and semantic memory, and multi-agent orchestration via LangChain, and assess agent reliability with trajectory evaluation and benchmark suites such as GAIA and SWE-bench
- Evaluate LLM systems with offline benchmarks, RAG-specific RAGAS metrics (faithfulness, context precision, answer relevance), and assertion-based pipeline testing, and harden deployments against hallucination and the OWASP LLM Top 10 using Guardrails AI
- Apply LoRA and QLoRA parameter-efficient fine-tuning with Hugging Face PEFT, and instrument production serving economics with KV-cache management, quantization, dynamic batching, and Langfuse cost-per-token dashboards
Key topics
- LLM fundamentals
- Prompting & RAG
- Tool use & agents
- Evaluation & guardrails
Theoretical foundations
The concepts and results this course rests on.
- transformer architecture: multi-head self-attention with Q/K/V projections, positional encoding, and feed-forward sublayers with residual connections and layer normalization
- causal language modeling: autoregressive factorization, next-token prediction, teacher forcing, and perplexity as cross-entropy
- emergent capabilities and in-context learning: few-shot examples in context, capability threshold behavior, and chain-of-thought prompting
- retrieval-augmented generation: chunking strategies, dense embedding generation, approximate nearest-neighbor indexing, and context injection
- advanced RAG: hybrid sparse-dense search, cross-encoder re-ranking, hypothetical document embeddings (HyDE), and multi-query retrieval
- prompt engineering: zero-shot, few-shot, system/role instructions, ReAct, self-consistency sampling, and meta-prompting
- LLM agent architectures: tool use and function calling, episodic and semantic memory, agent orchestration frameworks, and trajectory evaluation with benchmark suites
- LLM evaluation: offline benchmarks (MMLU, HumanEval), RAG-specific metrics (faithfulness, context precision, answer relevance), assertion-based pipeline testing, and human preference evaluation
- hallucination, grounding, and safety: factuality controls, output validation, RLHF alignment, and OWASP LLM Top 10 risk taxonomy
- parameter-efficient fine-tuning: LoRA and QLoRA rank-decomposition adapters, instruction-dataset curation; and inference economics: KV-cache management, post-training quantization, dynamic batching, and cost-per-token accounting
Prerequisites
Course-specific prerequisites:
- Machine Learning and Deep Learning
- Probability and linear algebra
- Python
Weekly schedule 13 weeks · lecture + practice
Students lean on AI coding assistants throughout, generating and refactoring LangChain agent wiring, LlamaIndex retrieval pipelines, and FAISS/Qdrant indexing code, then building iteratively from a bare API call to a full agentic workflow. They use AI to scaffold ReAct tool definitions and function-calling schemas, to synthesize few-shot exemplars and labeled evaluation sets, and to draft RAGAS rubrics and Guardrails AI validator specs. AI assistants also help interpret Langfuse tracing logs and red-team transcripts, turning raw eval output into diagnoses of why an agent hallucinated or failed an injection test.
Student project
Teams build a domain-specific LLM application that progresses from a zero-shot API baseline through an engineered RAG pipeline to a multi-step agentic workflow with tool use. Each stage adds measurable capability backed by the theory taught that week. The final deliverable includes Langfuse observability, a structured RAGAS evaluation suite, Guardrails AI safety controls, and an OWASP LLM risk review.
Requirements
- Build a working system, not a set of disconnected exercises.
- Be original: a new system that solves a real problem, not a re-implementation of a tutorial or course demo.
- Show real depth: real data, real users or realistic load, and engineering trade-offs that are measured rather than assumed.
- Carry one running project from specification to a deployed, defensible result across the whole term.
- Work in a team of three or four and defend the design at each of the three presentations (weeks 5, 8, and 13).
Example projects
Assessment & grading
Grading is project-based, with no written exam. Teams of three or four present one running project three times.
| Component | What it covers | Weight |
|---|---|---|
| Project · Specification | Presentation 1 (week 5): problem, objectives, and architecture | 20% |
| Project · Interim | Presentation 2 (week 8): the working system demonstrated live | 30% |
| Project · Final | Presentation 3 (week 13): end-to-end demo with oral defense | 50% |
Tools & platforms
- OpenAI API: hosted frontier models, function calling, and zero-shot baseline
- Anthropic API: multi-model comparison and Claude-based reasoning
- LangChain: agent orchestration, tool wiring, and ReAct agent loops
- LlamaIndex: RAG pipeline construction, retrieval, and indexing
- FAISS: approximate nearest-neighbor vector search
- Qdrant: production vector database with hybrid search support
- Langfuse: LLM observability, tracing, and cost-per-token dashboards
- PEFT (Hugging Face): LoRA and QLoRA parameter-efficient fine-tuning
- Guardrails AI: structured output validation, injection detection, and safety filtering
- Ollama: local open-weight model serving for development
Free online courses
Existing free, video-based courses this course can build on, for self-study or as a teaching basis.
- YouTubeStanford CS224N: NLP with Deep Learning (Spring 2024)
- YouTubeStanford CS25: Transformers United (V6)
In Hebrew · בעברית
- Dr. Amos Azaria, Ariel University (YouTube)Deep Learning and NLP - קורס למידה עמוקה ועיבוד שפות טבעיות
- Yoav Goldberg / Ido Dagan (YouTube)עיבוד שפות טבעיות (Natural Language Processing)
- Google Cloud (Coursera)Transformer Models and BERT Model - בעברית
Primary literature
Seminal works for advanced study.
References
Books and resources link to an online or publisher page.
- PaperAttention Is All You Need
- PaperBERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
- PaperRetrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- PaperReAct: Synergizing Reasoning and Acting in Language Models
- PaperScaling Laws for Neural Language Models
- TextbookSpeech and Language Processing, 3rd edition draft
- TextbookDive into Deep Learning
- DocumentationHugging Face Transformers Documentation
Role in each concentration
| Concentration | Role |
|---|---|
| Intelligent Software Systems | Core · Semester 1 |
| Networking & Cyber Security | Elective |
| AI & Robotics | Core · Semester 1 |
| AI and Quantum Computing for Finance | Core · Semester 1 |
| Immersive Systems & Game Development | Elective |
| Defense Technologies & Autonomous Systems | Elective |