innerkorehq/indian-address-parser ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple Python package and command line tool that takes a messy Indian address string and turns it into structured data with these fields, houseNumber, houseName, poi, street, subsubLocality, subLocality, locality, village, subDistrict, district, city, state, pincode.
I want it to work both from Python and from the terminal, with a default model that is fast and small, plus options to use a more accurate but slower model if needed. It should download the model automatically on first use, handle single addresses and batches, and return null for anything it cannot find. If the model output is invalid, it should still fail gracefully instead of crashing, and include some kind of error note for the generative models.
Please include a few example inputs and outputs, basic tests, and a clean README showing install and usage. If you need to check the latest library docs while building it, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using coderabbit