Skip to content

Commit 9071045

Browse files
committed
Added option to provide RAG docs
1 parent 2100409 commit 9071045

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ python = ">=3.9,<4.0.0"
1313
oaklib = ">=0.5.0"
1414
PyGithub = "^2.3.0"
1515
setuptools = ">=70.1.1"
16-
llm-change-agent = {version = "^0.0.7", extras = ["llm"], optional = true}
16+
llm-change-agent = {version = "^0.0.8", extras = ["llm"], optional = true}
1717

1818

1919
[tool.poetry.group.dev.dependencies]

src/ontobot_change_agent/cli.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,12 @@ def main(verbose: int, quiet: bool):
149149
llm_model_option = click.option(
150150
"--model", type=click.Choice(ALL_AVAILABLE_MODELS), help="Model to use for generation."
151151
)
152-
153-
152+
rag_docs_option = click.option(
153+
"--rag-docs",
154+
multiple=True,
155+
default=[],
156+
help=f"Paths to the docs directories, URLs, or lowercased ontology names.",
157+
)
154158
@main.command()
155159
@repo_option
156160
@state_option
@@ -216,6 +220,7 @@ def get_labels(repo: str, token: str):
216220
@use_llm_option
217221
@llm_provider_option
218222
@llm_model_option
223+
@rag_docs_option
219224
def process_issue(
220225
input: str,
221226
repo: str,
@@ -230,6 +235,7 @@ def process_issue(
230235
use_llm: bool = False,
231236
provider: str = None,
232237
model: str = None,
238+
rag_docs: tuple[str] = None,
233239
):
234240
"""Run processes based on issue label.
235241
@@ -281,6 +287,7 @@ def process_issue(
281287
ctx.params["prompt"] = issue[BODY]
282288
ctx.params["provider"] = provider
283289
ctx.params["model"] = model
290+
ctx.params["docs"] = rag_docs
284291
response = extract_commands(execute.invoke(ctx))
285292
KGCL_COMMANDS = [
286293
command.replace('"', "'") for command in ast.literal_eval(response)

0 commit comments

Comments
 (0)