Grounded first, model second
Facilities and travel times come from Google's APIs — the model never invents geography; it interprets it.
THE CLOCKWORK CABINET
The Field Guide · room 11 of 11
Finding medical help nearby, with a fine-tuned model in the loop.
Med-O-SFT is a notebook-built medical finder: it chains Google's location APIs to find nearby medical facilities and their travel times, then puts a fine-tuned medical model in the loop to add insights — all wrapped in a Gradio interface.
Built collaboratively with Nishaant Singh; the repository lives under owner Saurabh Kumar's account.
the chain — grounded APIs first, model second
Facilities and travel times come from real APIs — the model interprets the grounded data; it never invents the geography.
collaborator plate — built with Nishaant Singh · repository owner Saurabh Kumar
Finding medical help nearby is two different questions wearing one coat: where are the facilities and how long does reaching them take — a structured geolocation problem — and what should you know about them — a domain-knowledge question that a generic assistant answers unreliably.
The tool's premise is to keep those questions separate and grounded: real APIs answer the where and how long; the model's role is to add medical insight on top of that verified scaffold, not to invent the geography.
The pipeline starts with the Google Geolocation API to establish position, queries the Places API for nearby medical facilities, and uses the Distance Matrix API to compute real travel times to each one.
A fine-tuned medical model (medical-o1-sft) is called on top of that grounded context to provide medical insights, and the Gradio interface presents the whole chain — location, facilities, travel times, insights — in one console.
Facilities and travel times come from Google's APIs — the model never invents geography; it interprets it.
Geolocation for position, Places for discovery, Distance Matrix for travel times — each API answers the one question it is designed for.
The tool was built as a Jupyter notebook pipeline and surfaced through Gradio — the console makes the chain operable without reading the notebook.
every number here carries its source — my resume's figures and the synthetic-fixture results are marked for what they are