Skip to content

Commit

Permalink
Linting in the reasoner engine
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh committed Aug 12, 2024
1 parent db7d0bf commit af74677
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/ontogpt/engines/reasoner_engine.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Reasoner engine."""

import logging
import re
from dataclasses import dataclass
Expand Down Expand Up @@ -72,21 +73,21 @@ class ReasonerResultSet(BaseModel):

@dataclass
class ReasonerEngine(KnowledgeEngine):
"""Engine for performing reasoning using GPT.
"""Engine for performing reasoning using an LLM.
This engine takes as input an Ontology, and a query Task,
and then translates this to a GPT prompt that asks GPT to
and then translates this to an LLM prompt that asks the LLM to
perform the task over the ontology after reasoning over it.
The Task is typically a query such as finding superclasses of
a given class.
This is intended primarily for investigation purposes. For practical
scenarios, it is recommended to use a dedicated OWL reasoner. The goal
of this engine is to evaluate the extent to which GPT can perform
of this engine is to evaluate the extent to which the LLM can perform
reasoning-like tasks, including deduction and abduction (explanation).
Due to token-length constraints on GPT models, it is usually necessary
Due to token-length constraints on some models, it is usually necessary
to extract a submodule prior to reasoning. This can be done using the
OntologyExtractor:
Expand Down

0 comments on commit af74677

Please sign in to comment.