Series

Herbistry RAG

How the Herbistry RAG pipeline works under the hood, and how its public endpoint is protected from abuse and surprise bills.

Part 1 Nov 10, 2026
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.

Part 2 Nov 10, 2026
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.

← Back to all posts