Spaces:
Running
Running
instructions & questions tweaks
Browse files- fiboa/app.py +6 -6
- questions.md +1 -3
fiboa/app.py
CHANGED
@@ -59,7 +59,7 @@ There is no other column related to area information, especially not total_area
|
|
59 |
If you need to compute the total area, do it manually, with a SUM of the area column. You should always use the 'area' column - never use a 'total_area' column.
|
60 |
The column "perimeter" is in the unit meters, you may need to convert it to other units, e.g. kilometers.
|
61 |
The column "collection" contains the country codes for the Baltic states:
|
62 |
-
"
|
63 |
Be sure to always include the collection with the right country for any query about a specific country, including it in the WHERE clause.
|
64 |
|
65 |
If the user asks for 'percent' of crops or fields for one of the countries you must always calculate the percentage manually, by summing up the area manually. You total number of hectares to calculate the percentage from is 1583923 for Lithuania, 1788859 for latvia and 973945 for Estonia. If they don't specify a country use 4346727. If you use one of these be sure to always include the right collection in the where clause.
|
@@ -94,15 +94,15 @@ chain = create_sql_query_chain(llm, db, prompt=new_prompt, k=100)
|
|
94 |
Ask me about fiboa data (here: all baltic states)!
|
95 |
Request "a map" to get map output, or table for tabular output, e.g.
|
96 |
|
97 |
-
- Show a
|
|
|
|
|
98 |
- Show a map with the largest field in Estonia
|
99 |
-
-
|
100 |
-
- What are the top ten crops that have a field size over 10 hectares?
|
101 |
-
- Compute the total area of all fields in km² and compute the percentage the total area of the baltic states (175015 km²)
|
102 |
|
103 |
'''
|
104 |
|
105 |
-
example = "
|
106 |
with st.container():
|
107 |
if prompt := st.chat_input(example, key="chain"):
|
108 |
st.chat_message("user").write(prompt)
|
|
|
59 |
If you need to compute the total area, do it manually, with a SUM of the area column. You should always use the 'area' column - never use a 'total_area' column.
|
60 |
The column "perimeter" is in the unit meters, you may need to convert it to other units, e.g. kilometers.
|
61 |
The column "collection" contains the country codes for the Baltic states:
|
62 |
+
"ec_lv" for Latvia, "ec_lt" for Lithuania, "ec_es" for Estonia.
|
63 |
Be sure to always include the collection with the right country for any query about a specific country, including it in the WHERE clause.
|
64 |
|
65 |
If the user asks for 'percent' of crops or fields for one of the countries you must always calculate the percentage manually, by summing up the area manually. You total number of hectares to calculate the percentage from is 1583923 for Lithuania, 1788859 for latvia and 973945 for Estonia. If they don't specify a country use 4346727. If you use one of these be sure to always include the right collection in the where clause.
|
|
|
94 |
Ask me about fiboa data (here: all baltic states)!
|
95 |
Request "a map" to get map output, or table for tabular output, e.g.
|
96 |
|
97 |
+
- Show a table of the top ten crops in the Baltics.
|
98 |
+
- Show a map with the 10 largest sugar beet fields.
|
99 |
+
- What is the percent of oats in each country?
|
100 |
- Show a map with the largest field in Estonia
|
101 |
+
- What are the quantiles of field size for Latvia?
|
|
|
|
|
102 |
|
103 |
'''
|
104 |
|
105 |
+
example = "How many berry fields are there in each country?"
|
106 |
with st.container():
|
107 |
if prompt := st.chat_input(example, key="chain"):
|
108 |
st.chat_message("user").write(prompt)
|
questions.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* What's the total area of devoted to agriculture in Latvia?
|
6 |
* Is the average field size larger in lithuania or latvia?
|
7 |
* How many fields are there that are under 1 hectare?
|
8 |
-
* Show a map with the 10
|
9 |
* What percent of fields are under 2 hectares?
|
10 |
* Show a map with the largest field in Estonia
|
11 |
* Show a map with the ten largest fields
|
@@ -18,8 +18,6 @@
|
|
18 |
|
19 |
|
20 |
|
21 |
-
|
22 |
-
|
23 |
## More coding / prompting needed
|
24 |
|
25 |
### Maps with more
|
|
|
5 |
* What's the total area of devoted to agriculture in Latvia?
|
6 |
* Is the average field size larger in lithuania or latvia?
|
7 |
* How many fields are there that are under 1 hectare?
|
8 |
+
* Show a map with the 10 largest fields
|
9 |
* What percent of fields are under 2 hectares?
|
10 |
* Show a map with the largest field in Estonia
|
11 |
* Show a map with the ten largest fields
|
|
|
18 |
|
19 |
|
20 |
|
|
|
|
|
21 |
## More coding / prompting needed
|
22 |
|
23 |
### Maps with more
|