Skip to content

Commit

Permalink
mixs_environments_extensions_to_envo_envirnmental_materials_by_claude…
Browse files Browse the repository at this point in the history
….py works
  • Loading branch information
turbomam committed Mar 21, 2024
1 parent f216e54 commit 9be8f44
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@

from anthropic import Anthropic

# Set up the Anthropic API client
from dotenv import load_dotenv

load_dotenv("../local/.env")

api_key = os.environ["ANTHROPIC_API_KEY"]

# Set up the Anthropic API client
# api_key = os.environ["ANTHROPIC_API_KEY"]
MODEL_NAME = "claude-3-opus-20240229"

client = Anthropic(api_key=api_key)
Expand Down Expand Up @@ -35,9 +41,11 @@ def get_completion(client, prompt):
completion = get_completion(client,
f"""Here are the definitions of environments, according to MIxS: {mixs_environments}
and the definitions of environmental materials, according to EnvO: {envo_materials}.
Generate an exhasutive YAML-formatted report of all environmental materials that could reasonalby be found in the Soil environment.
Generate an exhaustive YAML-formatted report of all environmental materials
that could reasonably be found in the Soil environment.
When associating an environmental material with an environment,
report both the environmental material id and the environmental material label for every associated environmental material.
report both the environmental material id
and the environmental material label for every associated environmental material.
"""
)

Expand Down
16 changes: 15 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ python = "^3.10"
oaklib = "^0.5.25"
pyarrow = "^15.0.0"
anthropic = "^0.21.1"
python-dotenv = "^1.0.1"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 9be8f44

Please sign in to comment.