from unicodedata import category
GeoEvolve
GeoEvolve aims to accelerate geospatial model discovery by the power of large language models.
CLI Usage
pip install geoevolve
export OPENAI_API_KEY='your-openai-api-key' && source ~/.zshrc
# Optional If you already have a GeoKnowRAG
# Build GeoKnowRAG
python ./build_geo_knowledge_db.py --geo_knowledge_dir ./geo_knowledge --working_dir ../geoevolve_storage --chunk_size 300 --chunk_overlap 50 --topic_file ./topics.json --add_knowledge True --collect_knowledge True --github_token your-github-token --embedding_model text-embedding-3-large --llm_model gpt-4.1
# Run GeoEvolve
python ./run_geoevolve.py --initial_program_path path-to-initial_program --evaluator_path path-to-evaluator --config_path path-to-config --total_rounds 10 --num_iterations_per_round 10 --output path-to-output --log_name your_program_name --embedding_model text-embedding-3-large --llm_model gpt-4.1;
Library Usage
import os
from geoevolve import save_wiki_pages, save_arxiv_papers, save_github_codes, initialize_or_get_geo_know_db, import_knowledge_into_geo_know_db, run_geo_evolution
os.environ['OPENAI_API_KEY'] = 'your-openai-api-key'
# Initialize an Empty GeoKnowRAG with Chroma
geokg_rag = initialize_or_get_geo_know_db(persist_dir='your_geoevolve_storage',
embedding_model_name='text-embedding-3-large',
llm_model_name='gpt-4.1')
# Run GeoEvolve
run_geo_evolution(initial_program_file='your-initial-program-path',
evaluator_file='your-evaluator-file',
config_path='your-config-path',
rounds=15,
iterations_per_round=15,
output_path='your-output-path',
log_name='your-program-name',
embedding_model_name='text-embedding-3-large',
llm_model_name='gpt-4.1')
Import Knowledge into GeoKnowRAG
from geoevolve import initialize_or_get_geo_know_db, import_knowledge_into_geo_know_db
from langchain_core.documents import Document
# You can import knowledge from a well-structured geographical knowledge directory
# The structure like geo_knowledge/{category}/{knowledge}.txt
import_knowledge_into_geo_know_db(geo_knowledge_dir='your_geo_knowledge_dir',
persist_dir='your_geoevolve_storage',
collection_name='your_collection_name',
embedding_model_name='text-embedding-3-large',
llm_model_name='gpt-4.1')
# You can also just import a document into the GeoKnowRAG
rag = initialize_or_get_geo_know_db(persist_dir='your_geoevolve_storage',
embedding_model_name='text-embedding-3-large',
llm_model_name='gpt-4.1')
knowledge = '...'
category = '...'
title = '...'
max_length = 1000
docs = []
if knowledge != '':
if len(knowledge) > max_length:
chunks = [knowledge[i:i + max_length] for i in
range(0, len(knowledge), max_length)]
chunked_docs = [Document(page_content=chunk,
metadata={'category': category, 'name': title})
for chunk in chunks]
docs.extend(chunked_docs)
else:
doc = Document(page_content=knowledge,
metadata={'category': category, 'name': title})
docs.append(doc)
rag.add_document_to_db(docs)
GeoEvolve: Automating Geospatial Model Discovery via Multi-Agent Large Language Models
Peng Luo, Xiayin Lou, Yu Zheng, Zhuo Zheng, Stefano Ermon
Metadata
Release files for geoevolve 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| geoevolve-0.2.6.tar.gz | 16.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| geoevolve-0.2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.5 kB
Release files / geoevolve-0.2.6.tar.gz
| Download URL | geoevolve-0.2.6.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11dbee92619162674776200d027781237a75c0629a467d6fa395a2346dfa77d6
|
|
BLAKE2b-256 checksum How to use checksums |
1a06ea02619f04311e60eab25fcc83e1a22b246d6ba5cb9672540636ae03fcba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / geoevolve-0.2.6-py3-none-any.whl
| Download URL | geoevolve-0.2.6-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
707f8383930fc951893a5f81dd6b9f3b121bab2e9bc75f989cba155849d5bf3f
|
|
BLAKE2b-256 checksum How to use checksums |
08af9f98054f2f700088ddd91c7c8a0372467525b077df49561999e06decf636
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for geoevolve 0.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.