agents icon indicating copy to clipboard operation
agents copied to clipboard

Bootcamp/Euclid (falodun.solomon): Section 1 Week 1 - AI Agentic Track: The Complete Agent & MCP Course

Open falodunos opened this issue 8 months ago • 1 comments

Summary Extends the Week 1 multi-LLM lab with OpenRouter as the shared client for several providers, adjusts the model lineup, keeps the GPT judge ranking flow, and adds a second evaluation path using a fixed rubric and weighted scores in pandas.

Business logic Config & clients

Reads OPENROUTER_API_KEY and OPENROUTER_BASE_URL and builds an OpenAI-compatible client pointed at OpenRouter for models that are routed there. Benchmark question

Uses gpt-5-mini to generate a single challenging question (same “judge-style” prompt pattern as the lab). Competitors & answers

Collects answers with: direct OpenAI (gpt-5-nano), then OpenRouter for anthropic/claude-sonnet-4.5, google/gemini-2.5-flash, deepseek/deepseek-chat, and openai/gpt-oss-120b, plus local Ollama (llama3.2 on localhost:11434). Accumulates competitors / answers and builds a combined responses map for downstream steps. Judge ranking (JSON)

Builds a judge prompt over all responses; calls gpt-5-mini; parses JSON results and maps ranks back to competitors. Rubric scoring (additive)

Defines seven criteria with explicit weights (clarity, completeness, argument strength, specificity, feasibility, integration, risk/ethics). get_llm_scores(response_text) asks a model to return only JSON scores 1–5 per criterion (response_format JSON). compute_weighted_score combines scores with the weights; aggregates per competitor into a pandas DataFrame, sorts by total_score, and prints a numeric ranking alongside per-criterion detail.

Screenshot 2026-03-23 at 1 16 38 PM

cc: @ranskills

falodunos avatar Mar 23 '26 12:03 falodunos

@falodunos For Week 1 you are expected to deploy your Digital Twin and share the URL, no PR.

The PRs are for weeks: 2, 4, and 6

ranskills avatar Mar 23 '26 17:03 ranskills