{
  "_id": "6addbd2605457a8ae838562f",
  "Package": "BFHllm",
  "Title": "LLM Integration Framework for BFH Packages",
  "Version": "0.2.1",
  "Authors@R": "person(\"Johan\", \"Reventlow\", , \"johan.reventlow@regionh.dk\", role = c(\"aut\", \"cre\"))",
  "Description": "AI-driven insights and text generation for healthcare\nquality improvement. Provides LLM chat interface, RAG\n(Retrieval Augmented Generation) integration with knowledge\nstores, and SPC-specific improvement suggestions. Designed for\nstandalone use with BFHcharts or integration in Shiny\napplications.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/johanreventlow/BFHllm",
  "BugReports": "https://github.com/johanreventlow/BFHllm/issues",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Remotes": [
    "johanreventlow/BFHcharts"
  ],
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libicu-dev libpng-dev libxml2-dev libssl-dev\npython3",
  "Repository": "https://johanreventlow.r-universe.dev",
  "Date/Publication": "2026-09-25 06:58:17 UTC",
  "RemoteUrl": "https://github.com/johanreventlow/BFHllm",
  "RemoteRef": "HEAD",
  "RemoteSha": "7bbb7145d625d151508495541afd10511456bf71",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-25 08:22:02 UTC",
    "User": "root"
  },
  "Author": "Johan Reventlow [aut, cre]",
  "Maintainer": "Johan Reventlow <johan.reventlow@regionh.dk>",
  "_user": "johanreventlow",
  "_type": "src",
  "_file": "BFHllm_0.2.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/08ad7effc1013c824b423126a2c01548ae8d955ebf80e30caf747e69ba340e3f",
  "_filesize": 1692562,
  "_sha256": "08ad7effc1013c824b423126a2c01548ae8d955ebf80e30caf747e69ba340e3f",
  "_expires": "2027-02-02T08:26:12.000Z",
  "_created": "2026-10-25T08:22:02.000Z",
  "_published": "2026-10-25T08:26:14.490Z",
  "_upstream": "https://github.com/johanreventlow/BFHllm",
  "_status": "success",
  "_maintainer": {
    "name": "Johan Reventlow",
    "email": "johan.reventlow@regionh.dk",
    "login": "johanreventlowbfh",
    "description": "",
    "uuid": 276887448
  },
  "_jobs": [
    {
      "job": 121117746847,
      "time": 136,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "12592216520"
    },
    {
      "job": 121117746832,
      "time": 130,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "12592550936"
    },
    {
      "job": 121117746920,
      "time": 162,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "12592666027"
    },
    {
      "job": 121117746931,
      "time": 207,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "12592970553"
    },
    {
      "job": 121116554116,
      "time": 363,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12592341220"
    },
    {
      "job": 121117746861,
      "time": 112,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12592925495"
    },
    {
      "job": 121117746851,
      "time": 81,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "12593025347"
    },
    {
      "job": 121117746835,
      "time": 86,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "12592535867"
    },
    {
      "job": 121117746863,
      "time": 77,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "12592616066"
    }
  ],
  "_buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/40175935096",
  "_commit": {
    "id": "7bbb7145d625d151508495541afd10511456bf71",
    "author": "Johan Reventlow <johanreventlow@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #12 from johanreventlow/docs/fix-dead-rule-refs\n\ndocs(claude): ret døde henvisninger til ~/.claude/rules/",
    "time": 1790319497
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "ellmer",
      "version": ">= 0.4.0",
      "role": "Imports"
    },
    {
      "package": "ragnar",
      "version": ">= 0.1.0",
      "role": "Imports"
    },
    {
      "package": "digest",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "yaml",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "shiny",
      "version": ">= 1.7.0",
      "role": "Suggests"
    },
    {
      "package": "mockery",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    },
    {
      "package": "BFHcharts",
      "version": ">= 0.4.0",
      "role": "Suggests"
    }
  ],
  "_owner": "johanreventlow",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-49",
      "n": 18
    },
    {
      "week": "2026-12",
      "n": 28
    },
    {
      "week": "2026-13",
      "n": 3
    },
    {
      "week": "2026-16",
      "n": 1
    },
    {
      "week": "2026-19",
      "n": 2
    },
    {
      "week": "2026-23",
      "n": 1
    },
    {
      "week": "2026-33",
      "n": 1
    },
    {
      "week": "2026-39",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2025-12-02"
    },
    {
      "name": "v0.1.1",
      "date": "2026-03-27"
    },
    {
      "name": "v0.2.0",
      "date": "2026-05-09"
    },
    {
      "name": "v0.2.1",
      "date": "2026-06-04"
    },
    {
      "name": "v0.2.2",
      "date": "2026-08-12"
    },
    {
      "name": "v0.2.3",
      "date": "2026-09-25"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "johanreventlow",
      "count": 40,
      "uuid": 366572
    },
    {
      "user": "johanreventlowbfh",
      "count": 19,
      "uuid": 276887448
    }
  ],
  "_userbio": {
    "uuid": 366572,
    "type": "user",
    "name": "Johan Reventlow",
    "followers": 1
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/BFHllm"
  },
  "_devurl": "https://github.com/johanreventlow/bfhllm",
  "_searchresults": 1,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/BFHllm.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_exports": [
    "bfhllm_build_knowledge_store",
    "bfhllm_build_prompt",
    "bfhllm_cache_create",
    "bfhllm_cache_shiny",
    "bfhllm_chat",
    "bfhllm_chat_available",
    "bfhllm_chat_with_rag",
    "bfhllm_circuit_breaker_reset",
    "bfhllm_circuit_breaker_status",
    "bfhllm_configure",
    "bfhllm_create_structured_prompt",
    "bfhllm_extract_spc_metadata",
    "bfhllm_file_cache_create",
    "bfhllm_format_rag_context",
    "bfhllm_generate_cache_key",
    "bfhllm_get_config",
    "bfhllm_interpolate",
    "bfhllm_load_knowledge_store",
    "bfhllm_map_chart_type_danish",
    "bfhllm_query_knowledge",
    "bfhllm_rate_limit_reset",
    "bfhllm_rate_limit_status",
    "bfhllm_reset_knowledge_store_cache",
    "bfhllm_spc_suggestion",
    "bfhllm_spc_suggestions_batch",
    "bfhllm_validate_setup",
    "list_providers",
    "validate_response",
    "validate_response_length"
  ],
  "_help": [
    {
      "page": "bfhllm_build_knowledge_store",
      "title": "Build Knowledge Store",
      "topics": [
        "bfhllm_build_knowledge_store"
      ]
    },
    {
      "page": "bfhllm_build_prompt",
      "title": "Build Prompt from Components",
      "topics": [
        "bfhllm_build_prompt"
      ]
    },
    {
      "page": "bfhllm_cache_create",
      "title": "Create Generic In-Memory Cache",
      "topics": [
        "bfhllm_cache_create"
      ]
    },
    {
      "page": "bfhllm_cache_shiny",
      "title": "Create Shiny Session Cache",
      "topics": [
        "bfhllm_cache_shiny"
      ]
    },
    {
      "page": "bfhllm_chat",
      "title": "LLM Chat Interface",
      "topics": [
        "bfhllm_chat"
      ]
    },
    {
      "page": "bfhllm_chat_available",
      "title": "Check if LLM Chat is Available",
      "topics": [
        "bfhllm_chat_available"
      ]
    },
    {
      "page": "bfhllm_chat_with_rag",
      "title": "RAG-Enhanced Chat",
      "topics": [
        "bfhllm_chat_with_rag"
      ]
    },
    {
      "page": "bfhllm_circuit_breaker_reset",
      "title": "Reset Circuit Breaker",
      "topics": [
        "bfhllm_circuit_breaker_reset"
      ]
    },
    {
      "page": "bfhllm_circuit_breaker_status",
      "title": "Get Circuit Breaker Status",
      "topics": [
        "bfhllm_circuit_breaker_status"
      ]
    },
    {
      "page": "bfhllm_configure",
      "title": "Configure BFHllm Settings",
      "topics": [
        "bfhllm_configure"
      ]
    },
    {
      "page": "bfhllm_create_structured_prompt",
      "title": "Create Structured Prompt",
      "topics": [
        "bfhllm_create_structured_prompt"
      ]
    },
    {
      "page": "bfhllm_extract_spc_metadata",
      "title": "Extract SPC Metadata for AI Prompts",
      "topics": [
        "bfhllm_extract_spc_metadata"
      ]
    },
    {
      "page": "bfhllm_file_cache_create",
      "title": "Opret fil-baseret cache",
      "topics": [
        "bfhllm_file_cache_create"
      ]
    },
    {
      "page": "bfhllm_format_rag_context",
      "title": "Format RAG Context for Prompt",
      "topics": [
        "bfhllm_format_rag_context"
      ]
    },
    {
      "page": "bfhllm_generate_cache_key",
      "title": "Generate Cache Key",
      "topics": [
        "bfhllm_generate_cache_key"
      ]
    },
    {
      "page": "bfhllm_get_config",
      "title": "Get BFHllm Configuration",
      "topics": [
        "bfhllm_get_config"
      ]
    },
    {
      "page": "bfhllm_interpolate",
      "title": "Interpolate Prompt Template",
      "topics": [
        "bfhllm_interpolate"
      ]
    },
    {
      "page": "bfhllm_load_knowledge_store",
      "title": "Load Ragnar Knowledge Store",
      "topics": [
        "bfhllm_load_knowledge_store"
      ]
    },
    {
      "page": "bfhllm_map_chart_type_danish",
      "title": "Map Chart Type to Danish Name",
      "topics": [
        "bfhllm_map_chart_type_danish"
      ]
    },
    {
      "page": "bfhllm_query_knowledge",
      "title": "Query Knowledge Store",
      "topics": [
        "bfhllm_query_knowledge"
      ]
    },
    {
      "page": "bfhllm_rate_limit_reset",
      "title": "Reset Rate Limiter",
      "topics": [
        "bfhllm_rate_limit_reset"
      ]
    },
    {
      "page": "bfhllm_rate_limit_status",
      "title": "Get Rate Limit Status",
      "topics": [
        "bfhllm_rate_limit_status"
      ]
    },
    {
      "page": "bfhllm_reset_knowledge_store_cache",
      "title": "Reset Knowledge Store Cache",
      "topics": [
        "bfhllm_reset_knowledge_store_cache"
      ]
    },
    {
      "page": "bfhllm_spc_suggestion",
      "title": "Generate SPC Improvement Suggestion",
      "topics": [
        "bfhllm_spc_suggestion"
      ]
    },
    {
      "page": "bfhllm_spc_suggestions_batch",
      "title": "Batch SPC Analyse for Flere Diagrammer",
      "topics": [
        "bfhllm_spc_suggestions_batch"
      ]
    },
    {
      "page": "bfhllm_validate_setup",
      "title": "Validate BFHllm Setup",
      "topics": [
        "bfhllm_validate_setup"
      ]
    },
    {
      "page": "list_providers",
      "title": "List Available Providers",
      "topics": [
        "list_providers"
      ]
    },
    {
      "page": "print.bfhllm_cache",
      "title": "Print Cache Object",
      "topics": [
        "print.bfhllm_cache"
      ]
    },
    {
      "page": "print.bfhllm_cache_shiny",
      "title": "Print Shiny Cache Object",
      "topics": [
        "print.bfhllm_cache_shiny"
      ]
    },
    {
      "page": "validate_response",
      "title": "Validate and Sanitize LLM Response",
      "topics": [
        "validate_response"
      ]
    },
    {
      "page": "validate_response_length",
      "title": "Validate Response Length",
      "topics": [
        "validate_response_length"
      ]
    }
  ],
  "_readme": "https://github.com/johanreventlow/BFHllm/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "blob",
    "cli",
    "commonmark",
    "coro",
    "cpp11",
    "curl",
    "DBI",
    "dbplyr",
    "digest",
    "dplyr",
    "duckdb",
    "ellmer",
    "fastmap",
    "generics",
    "glue",
    "here",
    "httr",
    "httr2",
    "jsonlite",
    "later",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "mime",
    "mirai",
    "nanonext",
    "openssl",
    "otel",
    "pillar",
    "pkgconfig",
    "png",
    "promises",
    "purrr",
    "R6",
    "ragnar",
    "rappdirs",
    "Rcpp",
    "RcppTOML",
    "reticulate",
    "rlang",
    "rprojroot",
    "rvest",
    "S7",
    "selectr",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr",
    "xml2",
    "yaml"
  ],
  "_score": 2.6020599913279625,
  "_indexed": true,
  "_nocasepkg": "bfhllm",
  "_universes": [
    "johanreventlow",
    "johanreventlowbfh"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-10-25T08:24:17.000Z",
      "distro": "resolute",
      "commit": "7bbb7145d625d151508495541afd10511456bf71",
      "fileid": "https://r2.ropensci.org/675b48d4242fd32db7199563f65f649383db040b2134d91de62e38566ef877db",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/40175935096"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-10-25T08:24:11.000Z",
      "distro": "resolute",
      "commit": "7bbb7145d625d151508495541afd10511456bf71",
      "fileid": "https://r2.ropensci.org/623eb909f92d5456ef996d4e619137444ce5233aca806faf1946a91e7cf332cf",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/40175935096"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.1",
      "date": "2026-10-25T08:24:23.000Z",
      "commit": "7bbb7145d625d151508495541afd10511456bf71",
      "fileid": "https://r2.ropensci.org/9419b202f2a5c049c47a573ef71ca7a7f74982d32637096401bae8b501266a24",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/40175935096"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.1",
      "date": "2026-10-25T08:24:45.000Z",
      "commit": "7bbb7145d625d151508495541afd10511456bf71",
      "fileid": "https://r2.ropensci.org/74623ae827f999aff248b4a702af3a8b99192d136ee898d9dd3b8cc4558c687b",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/40175935096"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.1",
      "date": "2026-10-25T08:24:09.000Z",
      "commit": "7bbb7145d625d151508495541afd10511456bf71",
      "fileid": "https://r2.ropensci.org/13a79ebe32844952d83e6d51aca19e1b163d3edca203393d9bfd6aee1490b873",
      "status": "success",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/40175935096"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.1",
      "date": "2026-10-25T08:23:08.000Z",
      "commit": "7bbb7145d625d151508495541afd10511456bf71",
      "fileid": "https://r2.ropensci.org/9b998086d8e712036312b3b37ece36750cf8e30fa7f87025bc76e998a8df5ca2",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/40175935096"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.1",
      "date": "2026-10-25T08:23:14.000Z",
      "commit": "7bbb7145d625d151508495541afd10511456bf71",
      "fileid": "https://r2.ropensci.org/b3c3cccde1a6bf508ce88834377dccde9d16dce75354ef25871a857e90560ef8",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/40175935096"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.1",
      "date": "2026-10-25T08:23:09.000Z",
      "commit": "7bbb7145d625d151508495541afd10511456bf71",
      "fileid": "https://r2.ropensci.org/d6ae8b328610049bba1c5bc327377e1c55c053c65fa74c82fb91b7048bc923ba",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/40175935096"
    }
  ]
}