-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
80 lines (61 loc) · 2.42 KB
/
Copy pathMakefile
File metadata and controls
80 lines (61 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
.PHONY: hello elevation geo hello-world soil weather wiki test-agent test-minimal
RUN_UV_PYTHON=uv run
RUN_UV_PYTEST=uv run pytest
all: hello elevation geo hello-world soil weather wiki test-agent test-minimal
# Run the agent-test entry point, corresponding to src/agent_test/__init__.py
hello:
$(RUN_UV_PYTHON) agent-test
# Run elevation info script directly
elevation:
$(RUN_UV_PYTHON) src/agent_test/evelation_info.py
# src/agent_test/geo_agent.py
# Run the geo_agent.py script
geo:
$(RUN_UV_PYTHON) src/agent_test/geo_agent.py
# Run the hello_world.py script
hello-world:
$(RUN_UV_PYTHON) src/agent_test/hello_world.py
# src/agent_test/maptools.py -- no main to test
# Run the soil_agent.py script
soil:
$(RUN_UV_PYTHON) src/agent_test/soil_agent.py
# Run the weather.at.py script
weather:
$(RUN_UV_PYTHON) src/agent_test/weather.at.py
# Run the wikipedia_animal_qa.py script
wiki:
$(RUN_UV_PYTHON) src/agent_test/wikipedia_animal_qa.py
# Run original agent tests
test-agent:
$(RUN_UV_PYTEST) tests/test_agent.py -v
test-minimal:
$(RUN_UV_PYTEST) tests/test_minimal_agent.py -v
local/nmdc-biosamples.json:
wget -O $@ 'https://api.microbiomedata.org/nmdcschema/biosample_set?max_page_size=99999'
local/nmdc-latlon-inferred.json local/nmdc-latlon-summary.json: local/nmdc-biosamples.json
$(RUN_UV_PYTHON) src/make_nmdc_biosamples_location_inferences.py \
--input $< \
--add-inferred-latlon \
--add-inferred-elevation \
--random-n 130 \
--output local/nmdc-latlon-inferred.json \
--summary-output local/nmdc-latlon-summary.json
# Process biosamples with AI interpretation of map images (using both Google Maps & CBORG)
local/nmdc-ai-map-enriched.json: local/nmdc-latlon-inferred.json
$(RUN_UV_PYTHON) src/biosample_map_interpreter.py \
--input $< \
--output $@ \
--max-samples 13 \
--map-types satellite,roadmap,terrain \
--zoom-levels 13,15,17
# Compare asserted vs inferred environmental values using Claude Sonnet
local/nmdc-comparison-summary.json local/nmdc-llm-comparison.json: local/nmdc-ai-map-enriched.json
$(RUN_UV_PYTHON) src/biosample_llm_comparator.py \
--input $< \
--output local/nmdc-llm-comparison.json \
--summary-output local/nmdc-comparison-summary.json \
--max-samples 13
# Other map types available:
# - hybrid: Combines satellite imagery with road labels
# - terrain: Already added - shows topographical features
# - Historical imagery: Available through Earth Engine APIs (separate service)