Skip to content

Commit

Permalink
Add an example workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
maciekbanas committed Dec 27, 2024
1 parent 4b35c55 commit b6fdc4b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions inst/example_workflow.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# remotes::install_github("r-world-devs/GitStats@devel")

gitai_demo <- initialize_project("gitai-demo-2") |>
set_database(index = "gitai-mb") |>
gitai_demo <- initialize_project("gitai-tests") |>
set_database(index = "gitai-mb",
namespace = "gitai-demo-2") |>
set_github_repos(
orgs = "pharmaverse"
orgs = "r-world-devs"
) |>
add_files(files = "\\.md") |>
set_llm() |>
set_prompt("Provide a one-two sentence description of the product based on input.")

process_repos(gitai_demo)

gitai_demo$db$find_records("Find package with which I can plot data.")

gitai_demo$db$read_record("GitStats")

0 comments on commit b6fdc4b

Please sign in to comment.