f01728adb78c4f0be541d99ddb6fb0ddb43a0e22
generating Pokédex-style species descriptions - Loads species from portland_wildlife.csv (taxon_id, common_name, wikipedia_url) - Fetches Wikipedia articles from a self-hosted Kiwix mirror (WIKI_LINK env var); falls back to live Wikipedia if unset - Spaces in Wikipedia URLs are normalized to underscores before fetching - LiteLLM instance prompted via OpenAI-compatible client (LITELLM_URL, LITELLM_API_KEY, LITELLM_MODEL env vars) - LLM has tool-calling access to fetch_wikipedia_article with an agentic loop - Output descriptions are sanitized — only alphanumerics and . , ! ? ' - : allowed - Writes results to portland_wildlife_dex_entries.csv in append mode with resume support (skips already-processed taxon_ids) - Live [i/total] progress counter printed each iteration along with the generated description
Languages
Python
100%