Spaces:
Running
Running
testing
Browse files- app.py +3 -4
- requirements.txt +1 -1
app.py
CHANGED
@@ -49,12 +49,11 @@ If asked to show a "table", you must not include the "geometry" column from the
|
|
49 |
Use the following format: return only the SQLQuery to run. DO NOT use the prefix with "SQLQuery:".
|
50 |
Do not include an explanation.
|
51 |
|
52 |
-
|
53 |
-
Pay attention to use only the column names that you can see in the schema description. Be careful to
|
54 |
not query for columns that do not exist. Also, pay attention to which column is in which table.
|
55 |
|
56 |
Tables include {table_info}. The data you should use always comes from the table called "crops".
|
57 |
-
Only use that table, do not use the "testing" table.
|
58 |
|
59 |
Question: {input}
|
60 |
'''
|
@@ -116,7 +115,7 @@ as_geopandas(response)
|
|
116 |
Ask me about fiboa data! Request "a map" to get map output, or table for tabular output, e.g.
|
117 |
|
118 |
- "Show a map with the 10 largest fields"
|
119 |
-
- "Show a table of the total area by crop
|
120 |
- "Compute the perimeters of all fields and determine which have the longest"
|
121 |
|
122 |
'''
|
|
|
49 |
Use the following format: return only the SQLQuery to run. DO NOT use the prefix with "SQLQuery:".
|
50 |
Do not include an explanation.
|
51 |
|
52 |
+
Pay close attention to use only the column names that you can see in the schema description. Be careful to
|
|
|
53 |
not query for columns that do not exist. Also, pay attention to which column is in which table.
|
54 |
|
55 |
Tables include {table_info}. The data you should use always comes from the table called "crops".
|
56 |
+
Only use that table, do not use the "testing" table. Pay close attention to this table schema.
|
57 |
|
58 |
Question: {input}
|
59 |
'''
|
|
|
115 |
Ask me about fiboa data! Request "a map" to get map output, or table for tabular output, e.g.
|
116 |
|
117 |
- "Show a map with the 10 largest fields"
|
118 |
+
- "Show a table of the total area by crop typology"
|
119 |
- "Compute the perimeters of all fields and determine which have the longest"
|
120 |
|
121 |
'''
|
requirements.txt
CHANGED
@@ -2,8 +2,8 @@ streamlit==1.37.1
|
|
2 |
langchain
|
3 |
langchain_community
|
4 |
langchain_openai
|
5 |
-
duckdb_engine
|
6 |
ibis-framework[duckdb]==9.3.0
|
7 |
leafmap[maplibre]==0.36.5
|
8 |
shiny==1.0.0
|
9 |
numpy==1.26.4
|
|
|
|
2 |
langchain
|
3 |
langchain_community
|
4 |
langchain_openai
|
|
|
5 |
ibis-framework[duckdb]==9.3.0
|
6 |
leafmap[maplibre]==0.36.5
|
7 |
shiny==1.0.0
|
8 |
numpy==1.26.4
|
9 |
+
duckdb==1.0.0
|