Writing
Blog
AI
Series: Herbistry RAG · Part 2
A Public LLM Endpoint Is a Billing API With a Text Box
Protecting a public RAG endpoint from abuse and surprise bills: Turnstile, rolling per-IP/user/API-key quotas, LiteLLM as the model gateway — and why a daily quota is not a concurrency limiter.
#FastAPI#LLM#RAG#Security
AI
Series: Herbistry RAG · Part 1
What Actually Happens When You Ask Herbistry a Question
How Herbistry's RAG pipeline actually works: chunking herb literature into PostgreSQL/pgvector, five-nearest-neighbor retrieval, and grounded generation through LiteLLM — with sources shown alongside the answer.
#FastAPI#LLM#PostgreSQL#RAG