A short walkthrough of how 382 articles get indexed, searched, and ranked — from raw WordPress export to AI-curated answer.
wp-to-md.php).seed-db.py / seed-db.php → contentx.db).index.php as the single front-end + API.index.php doescontentx.db (read-only post library) and cache.db (auto-created answer cache).?api=count — returns total post count.?api=ask (POST {question, topic}) is the core flow:
cache.db. Hit = return instantly.ftsSearch() runs a Full-Text Search MATCH query against posts_fts, filtered by topic slug if one is picked. Pads to 15 candidates with recent posts if too few hits.api.anthropic.com/v1/messages, asking it to pick the best 5–7 and return strict JSON.title / url / topics from the candidate list, caches the JSON, returns it.?api=ask and paints the response.