A free-text field takes any phrase (to a fault, maybe) — a term, a statement, a full question — a name or concept — and returns a sequenced reading list through twentieth-century continental philosophy with a weighting for relevance that introduces out-of-domain readings as supplementary. Citations point to specific chapters, sections, page ranges, or aphorisms, and each reading is tagged Introductory, Intermediate, or Advanced.
The constraint is enforced at two levels. A Gemini responseSchema requires the
output to be JSON matching a fixed shape: a topic, a short overview, and an
ordered list of modules, each containing readings with author, work,
specificLocation, rationale, and a difficulty field restricted to a three-value
enum.
Each reading offers two follow-ups, a deep dive and a paper search, that run
through a small MCP layer exposing one live tool, query_academic_repository. It
queries the OpenAlex scholarly index over HTTP and returns up to three works with
title, author, year, DOI, and citation count, and the model builds its answer from
those results. Every tool call and
response is logged and rendered in an on-screen protocol viewer.
In production both AI paths proxy through Netlify Functions, rate-limited at the edge: 10 requests per 60 seconds for generation and 5 for MCP analysis, where each request fans out into several model calls. Every request is stateless.
A second interface
The same backend serves two front-ends. The original is a single centred column of type — a free-text field and a reading list. The redesign at /v2/ replaces the free-text field with a structured brief — subject, thinkers, level, length, and emphasis — and expands each syllabus into weekly sessions with primary and secondary readings, seminar questions, and a concept lexicon.
The two run from one build and one deployment. The MCP follow-ups carry over, but they are opt-in there: the redesign’s reading cards are built for scholarship rather than for a terminal, so the deep-dive and paper-search affordances stay hidden behind a toggle and the protocol readout stays collapsed until asked for.