How to Evaluate LLMs: Quality Metrics, LLM-as-a-Judge, and Agent Debugging in Stanford CME295 Lecture 7