Skip to content

Commit cb17402

Browse files
authored
Merge pull request #10 from boettiger-lab/feat/update_app
removing outdated LLMs, adding footer
2 parents 6f13f43 + a2bd504 commit cb17402

File tree

4 files changed

+50
-65
lines changed

4 files changed

+50
-65
lines changed

app/app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def run_sql(query, llm_choice):
302302

303303
st.divider()
304304

305-
st.markdown('''
306-
## Data Sources
307-
PRIVATE DRAFT. Developed at UC Berkeley. All data copyright to Trust for Public Land. See <https://conservationalmanac.org/> for details.
308-
''')
305+
with open('app/footer.md', 'r') as file:
306+
footer = file.read()
307+
st.markdown(footer)
308+

app/footer.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Credits
2+
Authors: **Cassie Buhler** ([CIRES](https://cires.colorado.edu/), [ESIIL](https://esiil.org/), CU Boulder) and **Carl Boettiger** (UC Berkeley \& [ESIIL](https://esiil.org/))
3+
4+
PRIVATE DRAFT. All data copyright to Trust for Public Land. See <https://conservationalmanac.org/> for details.
5+
6+
Data: https://data.carlboettiger.info/public-tpl
7+
8+
#### Data sources
9+
1. **Trust for Public Land (2025)**. *LandVote*. Data: www.landvote.org. License: Public Domain
10+
11+
2. **Trust for Public Land (2025)**. *Conservation Almanac*. Data: https://conservationalmanac.org/. License: Public Domain
12+
13+
3. **Conservation International (2018)** *Irrecoverable Carbon* Data: https://doi.org/10.1038/s41893-021-00803-6, License: CC-BY-NC
14+
15+
4. **US Council on Environmental Quality (2022)** *Climate and Economic Justice Screening Tool, Justice40*. Archived description: https://web.archive.org/web/20250121194509/https://screeningtool.geoplatform.gov/en/methodology#3/33.47/-97.5. Data: https://beta.source.coop/repositories/cboettig/justice40/description/, License: Public Domain
16+
17+
5. **Centers for Disease Control and Prevention (CDC) (2022)** *Social Vulnerability Index by US Census Tract*. Archived description: https://web.archive.org/web/20250126095916/https://www.atsdr.cdc.gov/place-health/php/svi/index.html. Data: https://source.coop/repositories/cboettig/social-vulnerability/description. License: Public Domain
18+
19+
20+
#### LLMs
21+
This app can use a selection of open-weights language models hosted on the National Research Platform (https://nrp.ai/documentation/userdocs/ai/llm-managed/), and Open Router (https://openrouter.ai/models).
22+
23+
---
24+
25+
### Why save your queries?
26+
Conservation researchers and practitioners are interested in **learning what matters most to our community**.
27+
28+
By saving your anonymous queries, we can identify which topics and areas are drawing the most attention, helping us improve future tools and data products to **better support conservation efforts**. We also save the LLM’s response to each query to monitor its accuracy and ensure the system is working as intended.
29+
30+
You can opt out at any time by disabling “Save query”.

app/variables.py

Lines changed: 6 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -267,40 +267,16 @@
267267
}
268268

269269
llm_options = {
270-
"kat-coder-pro": ChatOpenAI(
271-
model="kwaipilot/kat-coder-pro:free",
270+
"devstral-2512": ChatOpenAI(
271+
model="mistralai/devstral-2512:free",
272272
api_key=openrouter_api,
273273
base_url=openrouter_endpoint,
274274
temperature=0,
275275
extra_body=data_policy
276276
),
277277

278-
"llama-3.3-70b-instruct": ChatOpenAI(
279-
model="meta-llama/llama-3.3-70b-instruct:free",
280-
api_key=openrouter_api,
281-
base_url=openrouter_endpoint,
282-
temperature=0,
283-
extra_body=data_policy
284-
),
285-
286-
"gpt-oss-20b": ChatOpenAI(
287-
model="openai/gpt-oss-20b:free",
288-
api_key=openrouter_api,
289-
base_url=openrouter_endpoint,
290-
temperature=0,
291-
extra_body=data_policy
292-
),
293-
294-
"qwen3-coder": ChatOpenAI(
295-
model="qwen/qwen3-coder:free",
296-
api_key=openrouter_api,
297-
base_url=openrouter_endpoint,
298-
temperature=0,
299-
extra_body=data_policy
300-
),
301-
302-
"dolphin-mistral-24b-venice-edition": ChatOpenAI(
303-
model="cognitivecomputations/dolphin-mistral-24b-venice-edition:free",
278+
"trinity-mini": ChatOpenAI(
279+
model="arcee-ai/trinity-mini:free",
304280
api_key=openrouter_api,
305281
base_url=openrouter_endpoint,
306282
temperature=0,
@@ -314,32 +290,12 @@
314290
temperature=0,
315291
extra_body=data_policy
316292
),
317-
293+
318294
"gemma-3-27b-it": ChatOpenAI(
319295
model="gemma3",
320296
api_key=api_key,
321297
base_url=nrp_endpoint,
322298
temperature=0
323299
),
324300

325-
"gpt-oss-120b": ChatOpenAI(
326-
model="gpt-oss",
327-
api_key=api_key,
328-
base_url=nrp_endpoint,
329-
temperature=0
330-
),
331-
332-
"glm-4.6-gptq-int4-int8mix": ChatOpenAI(
333-
model="glm-4.6",
334-
api_key=api_key,
335-
base_url=nrp_endpoint,
336-
temperature=0
337-
),
338-
339-
"glm-4.5v-fp8": ChatOpenAI(
340-
model="glm-v",
341-
api_key=api_key,
342-
base_url=nrp_endpoint,
343-
temperature=0
344-
),
345-
}
301+
}

requirements.txt

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
git+https://github.com/boettiger-lab/cng-python
2-
leafmap==0.53.3
3-
ibis-framework[duckdb]==10.3.1
4-
lonboard==0.10.4
52
altair==5.3.0
6-
rasterio==1.3.10
7-
shapely==2.0.4
8-
shiny==0.10.2
9-
geoarrow-types==0.2.0
3+
duckdb==1.2.2
4+
duckdb_engine==0.15.0
105
geoarrow-pandas==0.1.1
11-
SQLAlchemy==2.0.35
12-
duckdb_engine== 0.15.0
6+
geoarrow-types==0.2.0
7+
git+https://github.com/boettiger-lab/cng-python
8+
ibis-framework[duckdb]==10.3.1
139
langchain==0.2.17
1410
langchain-community==0.2.19
1511
langchain-core==0.2.43
1612
langchain-openai==0.1.25
17-
streamlit==1.50.0
13+
leafmap==0.53.3
14+
lonboard==0.10.4
1815
minio==7.2.15
19-
duckdb==1.2.2
16+
shiny==0.10.2
17+
SQLAlchemy==2.0.35
18+
streamlit==1.50.0

0 commit comments

Comments
 (0)