You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: geodini/agents/simple_geocoder_agent.py
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -53,9 +53,14 @@ class RerankingResult:
53
53
54
54
From the results list, return a JSON object with:
55
55
1. "most_probable": The ID of the most relevant result
56
-
2. "next_probable": A list of IDs of the next 3 most relevant results in order of relevance
56
+
2. "next_probable": A list of IDs of the next 5 most relevant results in order of relevance
57
57
58
58
Make sure the returned IDs are in the results list.
59
+
60
+
While reranking, consider the following:
61
+
- The query might be a shortened name and the result might be a full name. For example, "United States" or "United States of America" is a match for "USA" or "The US".
62
+
- The query might be a informal name and the result might be a formal name. For example, "District of Columbia" is a candidate for "DC" or "Washington, D.C." or even just "Washington". So consider all possible variations of the query when matching.
63
+
- Consider geographical context. For example, "London in Canada" should rank "London, Ontario" higher than "London, England" because it is more likely to be the correct answer.
0 commit comments