linkml / schema-automator

Automated assistance for the schema development lifecycle
https://linkml.io/schema-automator/
BSD 3-Clause "New" or "Revised" License
36 stars 13 forks source link

Adding LLMAnnotator #126

Closed cmungall closed 8 months ago

cmungall commented 8 months ago

Example:

from schema_automator.utils.schemautils import write_schema
annotator = LLMAnnotator(model_name="gpt-4")
schema = annotator.enrich("tests/resources/biopax3.yaml")
write_schema(schema)