Skip to content

Commit

Permalink
Merge pull request #94 from INCATools/llm
Browse files Browse the repository at this point in the history
Added `llm-change-agent`
  • Loading branch information
hrshdhgd authored Sep 5, 2024
2 parents c05a9db + b765354 commit 8f752ba
Show file tree
Hide file tree
Showing 6 changed files with 3,549 additions and 739 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/new-pr-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,23 @@

# // Function to check for the phrase in bodyText and comments
# function checkForPhrase(bodyText, comments) {
# const phrase = 'hey ontobot';
# const regex = /hey\s*[^a-zA-Z0-9]*\s*ontobot/i;

# // Check if bodyText includes the phrase
# let result = bodyText.includes(phrase);
# let result = regex.test(bodyText);

# // If not found in bodyText, check in comments
# if (!result && comments) {
# for (const comment of comments) {
# if (regex.test(comment.body)) {
# result = true;
# break;
# }
# }
# }

# return result;
# }

# // Check each comment

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<img src="https://github.com/INCATools/ontobot-change-agent/raw/main/docs/source/logo.png" height="150">
</p>
-->
## ontobot-change-agent

[![DOI](https://zenodo.org/badge/513320955.svg)](https://zenodo.org/doi/10.5281/zenodo.13693637)

Update ontologies using change language.

Expand Down
35 changes: 35 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,38 @@ To install in development mode, use the following:
$ git clone git+https://github.com/INCATools/ontobot-change-agent.git
$ cd ontobot-change-agent
$ poetry install
New Features
------------

.. important::

In order to make `ontobot-change-agent` capable of using llm models, you could install it with the optional
dependency package `llm-change-agent`. This feature is in early development and is not yet ready for general use.

To install using pip:

.. code-block:: shell
$ pip install ontobot_change_agent[llm]
OR

.. code-block:: shell
$ pip install git+https://github.com/INCATools/ontobot-change-agent.git#egg=ontobot_change_agent[llm]
To install in development mode, use the following:
.. code-block:: shell
$ poetry install --extras llm
.. note::

To leverage the features of `llm-change-agent` package one would need to have any one or all of
the environment variables set:

- `OPENAI_API_KEY`
- `ANTHROPIC_API_KEY`
- `CBORG_API_KEY` (for LBNL users only)
Loading

0 comments on commit 8f752ba

Please sign in to comment.