Cyber For AI Notes

Security Notes

54 notes

Day 1: Anatomy of AI Systems15

[Lecture] Course Introduction

Fundamentals of AI, AI Architectures, How Large Lanuage Models generate text, and transformer architecture

[Lecture] Components of LLMs, RAG and Agents

Base LLM, Instruction tuned LLM, Reinforcement Learning. RAG systems and agents

Lab Credentials - Self host n8n & create your own API keys

n8n instance, student accounts, API Keys

Lab 1.1 Temperature parameter

temperature controls the creativity and randomness of the model

Lab 1.2 Limitations on LLM

Knowledge cutoffs, Math errors, Character & token processing

Lab 2.1 Configuring Memory for LLMs

add a database to the LLM to remember chat context conversations

Lab 3.1: Chatbot System Prompt Testing

Showcases how the outputs from a chatbot can be affected by the variations in system prompt

Lab 4.1 RAG source verification

Grounding the LLM outputs using RAG vs without RAG

Lab 5.1: Calculator Tool

Add a Calculator tool to the AI Agent and compare its math accuracy to the LLM alone

Lab 5.2: Web Search Tool

Add a web search capability to the AI Agent so it can find current information beyond the knowledge base

Lab 5.3: Tool Chaining Challenge

Test the AI Agent’s ability to chain multiple tools together (RAG + Calculator + Search) to answer complex, multi-part questions

Lab 5.4: HTTP Request Tool

Add an HTTP Request tool that allows the AI Agent to save conversation summaries to an external paste service and return a shareable URL

Lab 5.5: Explore other tools

Google Calendar, Gmail, Slack, Google Sheets etc

Lab 6.1: Guardrails

Familiarize yourself with n8n’s Guardrails node by reading the official documentation before building your own guardrail configuration

Lab 6.2: Build your own guardrail config

Add and configure the Guardrails node in your workflow, then test it against various attack prompts to understand what it catches and what slips through