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
Given the search query, rephrase it to be more specific and accurate. We will be using this query to search for places in the overture database. So it helps to make the query be full formal name of the place.
@@ -131,7 +159,7 @@ def simplify_geometry(
131
159
132
160
133
161
routing_agent=Agent(
134
-
"openai:gpt-4.1-mini",
162
+
MODEL_LIGHT,
135
163
output_type=RoutingResult,
136
164
system_prompt="""
137
165
Given the search query, determine if it is a simple or complex query.
@@ -143,7 +171,7 @@ def simplify_geometry(
143
171
144
172
145
173
complex_geocode_query_agent=Agent(
146
-
"openai:gpt-4.1-mini",
174
+
MODEL_LIGHT,
147
175
output_type=ComplexGeocodeResult,
148
176
system_prompt="""
149
177
Given the search query, return ALL relevant places to search for in the query as queries.
@@ -170,8 +198,7 @@ def simplify_geometry(
170
198
171
199
172
200
rerank_agent=Agent(
173
-
# 4o-mini is smarter than 3.5-turbo. And does better in edge cases.
174
-
"openai:gpt-4.1-mini",
201
+
MODEL_LIGHT,
175
202
output_type=RerankingResult,
176
203
system_prompt="""
177
204
Given the search query and results, rank them in order of
0 commit comments