Skip to content

Commit 8d19528

Browse files
committed
update
1 parent 6886a3c commit 8d19528

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

cookbook/2025-08-28-three-things-you-need-to-know-about-reasoning-fields.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ Provide a single, three-letter, uppercase **ISO 3166-1 alpha-3** country code fo
2828
2929
- **`sender_address`**: The input is a string representing a physical address.
3030
- **Logic**:
31-
- Identify the country from the `sender_address`.
32-
- If the country is explicitly mentioned (e.g., "USA", "United Kingdom"), use that to determine the alpha-3 code.
33-
- If the country is missing, infer the country from contextual clues such as the city, postal code, or regional language conventions.
34-
- **Exclude/Ignore**: Do not consider the name of the street or the building number for country identification.
35-
- If, after all attempts at inference, the country remains ambiguous or unidentifiable, return the fallback code.
31+
- Identify the country from the `sender_address`.
32+
- If the country is explicitly mentioned (e.g., "USA", "United Kingdom"), use that to determine the alpha-3 code.
33+
- If the country is missing, infer the country from contextual clues such as the city, postal code, or regional language conventions.
34+
- **Exclude/Ignore**: Do not consider the name of the street or the building number for country identification.
35+
- If, after all attempts at inference, the country remains ambiguous or unidentifiable, return the fallback code.
3636
3737
### **3. Fallback and Output Format**
3838
@@ -42,11 +42,11 @@ Provide a single, three-letter, uppercase **ISO 3166-1 alpha-3** country code fo
4242
4343
### **4. Examples**
4444
45-
| Input Address | Output |
46-
| :--- | :--- |
47-
| 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA | USA |
48-
| 10 Downing Street, London SW1A 2AA | GBR |
49-
| Křižíkova 148/34, 186 00 Karlín, Czech Republic | CZE |
45+
| Input Address | Output |
46+
| :------------------------------------------------------ | :----- |
47+
| 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA | USA |
48+
| 10 Downing Street, London SW1A 2AA | GBR |
49+
| Křižíkova 148/34, 186 00 Karlín, Czech Republic | CZE |
5050
```
5151

5252
Protip: do not rely on the model's output to be correct, always verify it if possible. For example, the above prompt should clearly return a three-letter code, so you can write a validation rule that makes sure that the output conforms to the specification (and the ISO code actually exists). This way you make sure that the user-confirmed data is always correct. In return the future predictions will be more accurate.

0 commit comments

Comments
 (0)