ó
    ü›hª(  ã                   ó   • S r SrSrSrg)a*  
You are a helpful assistant extracting structured data from urban planning descriptions.

Your task is to extract the following fields from the development description below.  
If a field is not mentioned or unclear, return null or 0 appropriately.

You must also extract any *land uses* implied or explicitly mentioned, and categorize them using a two-level structure:
- **Category**: Broad use class (e.g., Residential, Commercial, Industrial, Rural and Agricultural, Office and Professional, Recreation and Community, Infrastructure and Utility, Specialized)
- **Land Use**: Specific use term.

**Residential subtype rules (critical):**
- Allowed residential land_use values are exactly: **House**, **Townhouse**, **Apartment**, **Rooming house**, **Residential (unspecified)**.
- Determine the subtype **only if** the description contains one or more of these keywords (case-insensitive):
  - **House**: "house", "single dwelling", "detached dwelling", "dwelling house"
  - **Townhouse**: "townhouse", "townhouses", "terrace", "row house", "multi-dwelling townhouse", "dual occupancy (attached)"
  - **Apartment**: "apartment", "apartments", "flat", "flats", "unit", "units", "residential tower"
  - **Rooming house**: "rooming house", "boarding house", "supported residential service", "SRS"
- If the description says only "dwellings", "multiple dwellings", or other non-specific terms without any subtype keywords, return **Residential (unspecified)**.
- When uncertain, **do not guess**; use **Residential (unspecified)**.
- If multiple subtypes are mentioned, include each as a separate entry in the `land_uses` list.

Use definitions from the Victoria Planning Scheme for other categories (e.g., Shop, Medical centre, Child care centre, Retirement village, etc.).

Return your response in **valid JSON**, no comments, no additional text.

**Fields to extract**:
- development_type: A short label for the overall development (e.g., Residential, Industrial, Subdivision, Vegetation Removal, Mixed Use, Community Facility, etc.)
- number_of_dwellings: Number of houses/dwellings (e.g., 3 if "construct three dwellings")
- number_of_storeys: Maximum storey count across buildings, if available (e.g., 2 for double storey)
- number_of_places: Number of places if it's Childcare / Medical / Aged Care (e.g., 60 childcare places)
- number_of_units: Number of units for apartments or townhouses
- number_of_lots: Number of lots if subdivision is mentioned
- land_uses: A list of land uses with category and specific land use term

**Description**:
"""
{description}
"""

Respond in this JSON format:

{{
  "development_type": "...",
  "number_of_dwellings": ...,
  "number_of_storeys": ...,
  "number_of_places": ...,
  "number_of_units": ...,
  "number_of_lots": ...,
  "land_uses": [
    {{
      "category": "...",
      "land_use": "..."
    }}
  ]
}}
aH  
You are extracting information from a Title Search document. Extract the following fields in JSON format. If a field is not found, use empty string or null as appropriate.

{{
  "document_type": "Title Search",
  "land_description": "",
  "registered_proprietor": "",
  "encumbrances": "",
  "activity_last_125_days": "",
  "administrative_notices": "",
  "development_summary": {{
    "lot_size": "",
    "site_coverage": "",
    "total_area": "",
    "ground_floor_area": "",
    "first_floor_area": "",
    "pos": "",
    "spos": ""
  }}
}}

NOTE: 
- "Land Description" should include the full property address (e.g., "3 Hopetoun Street NORTHCOTE VIC 3070")
- "Registered Proprietor" is the legal owner of the land (person or entity name)
- "Encumbrances" are any restrictions, easements, or charges on the title (if none, use "None" or "No encumbrances")
- "Activity in the last 125 days" refers to recent dealings or changes to the title (if none, use "No recent activity")
- "Administrative Notices" are any official notices affecting the title (if none, use "None" or "No notices")
- "lot_size" should be in square meters (m2)
- "site_coverage" should be a percentage (%)
- "total_area" should be in square meters (m2)
- "ground_floor_area" should be in square meters (m2)
- "first_floor_area" should be in square meters (m2)
- "pos" means Private Open Space (grass area) in square meters (m2)
- "spos" means Secluded Private Open Space (private garden area) in square meters (m2)

Look for these specific sections in the document and extract the exact text found.
Text to extract from:
'''{text}'''
a  
You are extracting information from an Application Form document. Extract the following fields in JSON format. If a field is not found, use empty string or null as appropriate.

{{
  "document_type": "Application Form",
  "land_description": "",
  "registered_proprietor": "",
  "encumbrances": "",
  "activity_last_125_days": "",
  "administrative_notices": "",
  "proposed_use": "",
  "description": "",
  "applicant_name": "",
  "contact_name": "",
  "contact_address": "",
  "contact_email": "",
  "contact_phone": "",
  "applicant_address": "",
  "applicant_email": "",
  "applicant_phone": "",
  "development_summary": {{
    "lot_size": "",
    "site_coverage": "",
    "total_area": "",
    "ground_floor_area": "",
    "first_floor_area": "",
    "pos": "",
    "spos": ""
  }}
}}

NOTE: 
- "Land Description" should include the full property address (e.g., "3 Hopetoun Street NORTHCOTE VIC 3070")
- "Registered Proprietor" is the legal owner of the land (person or entity name)
- "Encumbrances" are any restrictions, easements, or charges on the title (if none, use "None" or "No encumbrances")
- "Activity in the last 125 days" refers to recent dealings or changes to the title (if none, use "No recent activity")
- "Administrative Notices" are any official notices affecting the title (if none, use "None" or "No notices")
- "Proposed Use" is the intended use of the land/development (e.g., "Residential/Accommodation", "Commercial", "Industrial")
- "Description" provides details about what the permit is for (e.g., "Two (2) Dwellings on Two (2) Lots as shown on the plans accompanying the application")
- "lot_size" should be in square meters (m2)
- "site_coverage" should be a percentage (%)
- "total_area" should be in square meters (m2)
- "ground_floor_area" should be in square meters (m2)
- "first_floor_area" should be in square meters (m2)
- "pos" means Private Open Space (grass area) in square meters (m2)
- "spos" means Secluded Private Open Space (private garden area) in square meters (m2)
- "Applicant Name" is the name of the person or entity applying for the permit
- "Contact Name" is the name of the primary contact person (may be same as applicant or different)
- "Contact Address" is the full address of the contact person
- "Contact Email" is the email address of the contact person
- "Contact Phone" is the phone number of the contact person
- "Applicant Address" is the full address of the applicant (may be same as contact address)
- "Applicant Email" is the email address of the applicant
- "Applicant Phone" is the phone number of the applicant

Look for these specific fields in the application form and extract the exact text found. Pay special attention to sections labeled "Applicant Details", "Contact Information", "Owner Details", or similar headings.

Text to extract from:
'''{text}'''
au  
You are extracting information from an Application Form document that couldn't be classified as a standard application form. Extract the following fields in JSON format. If a field is not found, use empty string or null as appropriate.

{{
  "document_type": "Application Form",
  "land_description": "",
  "registered_proprietor": "",
  "encumbrances": "",
  "activity_last_125_days": "",
  "administrative_notices": "",
  "proposed_use": "",
  "description": "",
  "applicant_name": "",
  "contact_name": "",
  "contact_address": "",
  "contact_email": "",
  "contact_phone": "",
  "applicant_address": "",
  "applicant_email": "",
  "applicant_phone": "",
  "development_summary": {{
    "lot_size": "",
    "site_coverage": "",
    "total_area": "",
    "ground_floor_area": "",
    "first_floor_area": "",
    "pos": "",
    "spos": ""
  }}
}}

NOTE: 
- "Land Description" should include the full property address (e.g., "3 Hopetoun Street NORTHCOTE VIC 3070")
- "Registered Proprietor" is the legal owner of the land (person or entity name)
- "Encumbrances" are any restrictions, easements, or charges on the title (if none, use "None" or "No encumbrances")
- "Activity in the last 125 days" refers to recent dealings or changes to the title (if none, use "No recent activity")
- "Administrative Notices" are any official notices affecting the title (if none, use "None" or "No notices")
- "Proposed Use" is the intended use of the land/development (e.g., "Residential/Accommodation", "Commercial", "Industrial")
- "Description" provides details about what the permit is for (e.g., "Two (2) Dwellings on Two (2) Lots as shown on the plans accompanying the application")
- "lot_size" should be in square meters (m2)
- "site_coverage" should be a percentage (%)
- "total_area" should be in square meters (m2)
- "ground_floor_area" should be in square meters (m2)
- "first_floor_area" should be in square meters (m2)
- "pos" means Private Open Space (grass area) in square meters (m2)
- "spos" means Secluded Private Open Space (private garden area) in square meters (m2)
- "Applicant Name" is the name of the person or entity applying for the permit
- "Contact Name" is the name of the primary contact person (may be same as applicant or different)
- "Contact Address" is the full address of the contact person
- "Contact Email" is the email address of the contact person
- "Contact Phone" is the phone number of the contact person
- "Applicant Address" is the full address of the applicant (may be same as contact address)
- "Applicant Email" is the email address of the applicant
- "Applicant Phone" is the phone number of the applicant

Look for these specific fields in the application form and extract the exact text found. Pay special attention to sections labeled "Applicant Details", "Contact Information", "Owner Details", "Development Summary", "Site Details", or similar headings.

Text to extract from:
'''{text}'''
N)ÚEXTRACT_STRUCTURED_DATA_PROMPTÚTITLE_SEARCH_EXTRACTION_PROMPTÚ"APPLICATION_FORM_EXTRACTION_PROMPTÚ APPLICATION_FORM_FALLBACK_PROMPT© ó    Ú4/home/developer/Desktop/shao/shao/shaoApp/prompts.pyÚ<module>r	      s(   ðð7"Ð ðv&"Ð ðP;&Ð "ðz;$Ñ  r   