Alfred-Gala-Unit3 / README.md
VoicesColeby's picture
fix: bump gradio to 5.49 (5.0 imports removed HfFolder)
cfc0343 verified
|
Raw
History Blame Contribute Delete
1.61 kB

A newer version of the Gradio SDK is available: 6.20.0

Upgrade
metadata
title: Alfred - Gala Agent (Unit 3)
emoji: 🎩
colorFrom: indigo
colorTo: green
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
python_version: '3.12'
pinned: false
license: apache-2.0
tags:
  - agent
  - smolagents
  - agents-course
  - unit-3
  - rag

Unit 3 β€” Gala Agent ("Alfred at the Wayne Gala")

Agentic-RAG smolagents CodeAgent over the official agents-course/unit3-invitees dataset. Implements the full multi-tool build from the unit in a single app.py:

Tool What it does
guest_info_retriever BM25 retrieval over the invitees dataset.
web_search (DDG) Public web search for live context.
visit_webpage Fetch + strip a specific URL.
fireworks_weather Open-Meteo current weather for Gotham β†’ go / no-go.
hub_stats Most-downloaded model on the HF Hub for a given author/org.
final_answer Terminal tool.

Sample prompts

  • "Tell me about our guest named 'Lady Ada Lovelace'." β†’ BM25 hit on the dataset.
  • "Which mathematicians are on the guest list?" β†’ BM25 filter on relation.
  • "Is the weather good enough for fireworks tonight?" β†’ fireworks_weather.
  • "What's the top model for the 'facebook' org on the Hub?" β†’ hub_stats.
  • "What's Ada Lovelace known for outside our database?" β†’ web_search + visit_webpage.

Deploy

huggingface-cli upload VoicesColeby/Alfred-Gala-Unit3 . --repo-type space --include "*.py" "*.txt" "*.md"

Set HF_TOKEN as a Space secret (so the agent can use HF Inference Providers).