diff --git a/README.md b/README.md index e69de29..1388a48 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,3 @@ +--- +{} +--- \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..ec4b201 --- /dev/null +++ b/config.json @@ -0,0 +1,127 @@ +{ + "model": null, + "signature": { + "description": "Classify the Wikipedia article excerpt into both the top-level (L1) and second-level (L2) DBpedia ontology categories.\nAs you reason, note any uncertainties, ambiguities, and gaps \u2014 both in how the instructions apply to the task at hand and in whether you have the knowledge needed to solve it. Be honest in your reasoning when you are unsure about your answer.", + "properties": { + "text": { + "__dspy_field_type": "input", + "desc": "Wikipedia article excerpt to classify.", + "prefix": "Text:", + "title": "Text", + "type": "string" + }, + "reasoning": { + "__dspy_field_type": "output", + "desc": "Step-by-step reasoning, including uncertainty, ambiguity, or uncertainty in your thought process when relevant.", + "prefix": "Reasoning:", + "title": "Reasoning", + "type": "string" + }, + "l1_class": { + "__dspy_field_type": "output", + "desc": "Top-level DBpedia ontology category. One of: Agent, Device, Event, Place, Species, SportsSeason, TopicalConcept, UnitOfWork, Work.", + "enum": [ + "Agent", + "Device", + "Event", + "Place", + "Species", + "SportsSeason", + "TopicalConcept", + "UnitOfWork", + "Work" + ], + "prefix": "L 1 Class:", + "title": "L1 Class", + "type": "string" + }, + "l2_class": { + "__dspy_field_type": "output", + "desc": "Second-level DBpedia ontology subcategory (must be a valid subcategory of the chosen L1).", + "enum": [ + "Actor", + "AmusementParkAttraction", + "Animal", + "Artist", + "Athlete", + "BodyOfWater", + "Boxer", + "BritishRoyalty", + "Broadcaster", + "Building", + "Cartoon", + "CelestialBody", + "Cleric", + "ClericalAdministrativeRegion", + "Coach", + "Comic", + "ComicsCharacter", + "Company", + "Database", + "EducationalInstitution", + "Engine", + "Eukaryote", + "FictionalCharacter", + "FloweringPlant", + "FootballLeagueSeason", + "Genre", + "GridironFootballPlayer", + "Group", + "Horse", + "Infrastructure", + "LegalCase", + "MotorcycleRider", + "MusicalArtist", + "MusicalWork", + "NaturalEvent", + "NaturalPlace", + "Olympics", + "Organisation", + "OrganisationMember", + "PeriodicalLiterature", + "Person", + "Plant", + "Politician", + "Presenter", + "Race", + "RaceTrack", + "RacingDriver", + "RouteOfTransportation", + "Satellite", + "Scientist", + "Settlement", + "SocietalEvent", + "Software", + "Song", + "SportFacility", + "SportsEvent", + "SportsLeague", + "SportsManager", + "SportsTeam", + "SportsTeamSeason", + "Station", + "Stream", + "Tournament", + "Tower", + "Venue", + "VolleyballPlayer", + "WinterSportPlayer", + "Wrestler", + "Writer", + "WrittenWork" + ], + "prefix": "L 2 Class:", + "title": "L2 Class", + "type": "string" + } + }, + "required": [ + "text", + "reasoning", + "l1_class", + "l2_class" + ], + "title": "DBPediaMediumJudgeSig", + "type": "object" + } +} \ No newline at end of file diff --git a/program.json b/program.json new file mode 100644 index 0000000..c2c39ae --- /dev/null +++ b/program.json @@ -0,0 +1,44 @@ +{ + "traces": [], + "train": [], + "demos": [], + "signature": { + "instructions": "Classify the Wikipedia article excerpt into both the top-level (L1) and second-level (L2) DBpedia ontology categories.\nAs you reason, note any uncertainties, ambiguities, and gaps \u2014 both in how the instructions apply to the task at hand and in whether you have the knowledge needed to solve it. Be honest in your reasoning when you are unsure about your answer.", + "fields": [ + { + "prefix": "Text:", + "description": "Wikipedia article excerpt to classify." + }, + { + "prefix": "Reasoning:", + "description": "Step-by-step reasoning, including uncertainty, ambiguity, or uncertainty in your thought process when relevant." + }, + { + "prefix": "L 1 Class:", + "description": "Top-level DBpedia ontology category. One of: Agent, Device, Event, Place, Species, SportsSeason, TopicalConcept, UnitOfWork, Work." + }, + { + "prefix": "L 2 Class:", + "description": "Second-level DBpedia ontology subcategory (must be a valid subcategory of the chosen L1)." + } + ] + }, + "lm": { + "model": "together_ai/Qwen/Qwen2.5-7B-Instruct-Turbo", + "model_type": "chat", + "cache": true, + "num_retries": 3, + "finetuning_model": null, + "launch_kwargs": {}, + "train_kwargs": {}, + "temperature": null, + "max_tokens": null + }, + "metadata": { + "dependency_versions": { + "python": "3.11", + "dspy": "3.1.3", + "cloudpickle": "3.1" + } + } +} \ No newline at end of file