All tags

TAG

#cloudflare-workers

2articles

Implementing an LLM Router Agent-Based RAG: An 8-Tool Design and 5 Traps Hit on Cloudflare Workers + Azure OpenAI

A record of adding a Router Agent — in which the LLM looks at the question and automatically picks the right tool — to a vector-search RAG over a corpus of classical documents in TEI/XML. It covers the design of the 8-tool setup, the complementarity of structured data and vector search, and the 5 traps hit during implementation (Cloudflare Workers' 3 MiB limit, the Azure OpenAI URL pattern, a blind spot in JSON_CONTAINS, the multi-turn problem with reasoning models, and the TPM bottleneck).

ragllmagenttool-calling

🔑Retrofitting Firebase auth and a JSONkeeper-compatible API onto codh-mirror so IIIF Curation editing actually works — walking back the earlier `won't work` claim

A follow-up to the earlier codh-mirror post, which explicitly called Firebase auth and the curation save backend out of scope. This time I went back and wired them up: reusing a Firebase project (Authorized domains and sign-in providers), discovering that FirebaseUI 3.x's default redirect signInFlow silently fails on GitHub Pages subpaths, swapping the curationJsonExportUrl in 9 places across five tools, and pointing the iiif-curation-manager submenu links at the sibling tools via relative URLs. Server-side details (Cloudflare Workers + D1 as mainline and PythonAnywhere Flask as upstream-faithful fallback) live in two separate posts; this one covers only the codh-mirror client side.

codhiiiffirebasefirebaseui