Drug-leaflet search 10-100x faster — millisecond-level responses
Highlights
- We rebuilt the drug-leaflet search back-end on top of a pre-built index. Three tools now answer in single-digit milliseconds:
opendata-search_drug_label(precise leaflet-field search),opendata-check_drug_interaction(scan 2–10 drug leaflets for interactions), and the leaflet-merge stage insideopendata-get_drug_details - Warm-cache latency measured live: leaflet-field search 1.78 ms (down from 50–200 ms); two-drug interaction scan 0.27 ms
- The drug-licence registry search (
opendata-search_drugand friends) still uses the previous path and will move in the next release — this ship focuses the highest-traffic surface first - Zero user-facing changes: tool signatures, response schema, env vars are all unchanged — agents don't need to reconnect or change prompts
- Source: drug leaflets from
twinkle-ai/tw-drug-labels-vision(CC-BY-4.0, 44,663 structured leaflets)
Example prompts
- Drugs whose leaflet mentions both warfarin and NSAIDs (noticeably faster)
- Find leaflets whose contraindications mention pregnancy
- Check interaction text across these 3 drug licence numbers
Dataset IDs
tfda-drug-leaflets