City Extractor (Few-Shot)
Extracts city names from a given text along with their corresponding countries, providing a structured output in JSON format. This tool is useful for data analysis, geographic information systems, and enhancing location-based services.
Prompt Text
Extract cities from text, include country they are in.
USER: I visited Mexico City and Poznan last year
MODEL: {"Mexico City": "Mexico", "Poznan": "Poland"}
USER: She wanted to visit Lviv, Monaco and Maputo
MODEL: {"Lviv": "Ukraine", "Monaco": "Monaco", "Maputo": "Mozambique"}
USER: {{text}}
MODEL:Evaluation Results
1/29/2026
Overall Score
4.89/5
Average across all 3 models
Best Performing Model
Low Confidence
openai:gpt-5-mini
4.91/5
openai:gpt-5-mini
#1 Ranked
4.91
/5.00
adh
5.0
cla
5.0
com
4.7
In
900
Out
1,279
Cost
$0.0028
google:gemini-2.5-flash-lite
#2 Ranked
4.91
/5.00
adh
5.0
cla
5.0
com
4.7
In
988
Out
16
Cost
$0.0001
anthropic:claude-3-5-haiku
#3 Ranked
4.84
/5.00
adh
4.9
cla
4.9
com
4.7
In
1,005
Out
100
Cost
$0.0012
Test Case:
