-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable spatio-temporal parameters to be passed to API requests #30
Comments
Implemenation Details:Temporal and spatial filters can now be passed to the chatbot API-endpoint. {
"query": "Can you show me building data for Dresden? I need hospitals",
"spatio_temporal_context": {"temporal": "2020-2021","extent": [13.5793237, 51.1777202, 14.9660626, 50.974937]}
} Usage:
Endpoint implemenation details: innovation-prize/search-app/server/app/server.py Lines 150 to 167 in c1a3b0a
Additional feature: Automated derivation of spatial constraints from user inputThe How it works:
prompt="""You are an expert in geography and spatial data.
Your task is to extract from a query spatial entities such as city, country or region names.
Also determine the spatial scale ("Local", "City", "Regional", "National", "Continental", "Global") from the given query.
"""
prompt="""You are an expert in geography and spatial data.
Your task is to pick from the results list the best matching candidate according to the query.
If the original query includes a country information, consider this in your selection.
If also consider the type. E.g. if user asks for a 'river' also pick the corresponding result
Also consider the scale: {scale}
Query: {original_query}
Results: {results}
Output:""" |
In addition to text inputs, the API-endpoint for conversational chatbot should also be able to consume temporal or spatial constraints via the API requests.
The text was updated successfully, but these errors were encountered: