{
  "_id": "6a218906cd65a98ecbd3747d",
  "Package": "BFHllm",
  "Title": "LLM Integration Framework for BFH Packages",
  "Version": "0.2.0",
  "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": "cmake libicu-dev libpng-dev libxml2-dev libssl-dev\npython3 xz-utils",
  "Repository": "https://johanreventlow.r-universe.dev",
  "Date/Publication": "2026-06-04 11:41:19 UTC",
  "RemoteUrl": "https://github.com/johanreventlow/BFHllm",
  "RemoteRef": "HEAD",
  "RemoteSha": "f3bfd92a2ad423eb443efbe4a6c8b6a48fe5822b",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-04 14:14:24 UTC",
    "User": "root"
  },
  "Author": "Johan Reventlow [aut, cre]",
  "Maintainer": "Johan Reventlow <johan.reventlow@regionh.dk>",
  "MD5sum": "b287157a0cd1b46a19af2e57b321a2ec",
  "_user": "johanreventlow",
  "_type": "src",
  "_file": "BFHllm_0.2.0.tar.gz",
  "_fileid": "7b624f63238ba13c820818f204d451da6b55ac6d5b26c37494390ff2a7f43677",
  "_filesize": 1693909,
  "_sha256": "7b624f63238ba13c820818f204d451da6b55ac6d5b26c37494390ff2a7f43677",
  "_created": "2026-06-04T14:14:24.000Z",
  "_published": "2026-06-04T14:17:42.423Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79538234752,
      "time": 143,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7413853136"
    },
    {
      "job": 79538234523,
      "time": 161,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7413860358"
    },
    {
      "job": 79538234745,
      "time": 103,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7413834907"
    },
    {
      "job": 79538234663,
      "time": 97,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7413831730"
    },
    {
      "job": 79537386133,
      "time": 244,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7413789032"
    },
    {
      "job": 79538234489,
      "time": 128,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7413846583"
    },
    {
      "job": 79538234704,
      "time": 130,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7413847333"
    },
    {
      "job": 79538234541,
      "time": 107,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7413836749"
    },
    {
      "job": 79538234680,
      "time": 98,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7413833557"
    }
  ],
  "_buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/26957148671",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/johanreventlow/BFHllm",
  "_commit": {
    "id": "f3bfd92a2ad423eb443efbe4a6c8b6a48fe5822b",
    "author": "Johan Reventlow <johanreventlow@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #10 from johanreventlow/docs/readme-revision-v0.2.0\n\ndocs(readme): grundig revision mod faktisk kode (v0.2.0)",
    "time": 1780573279
  },
  "_maintainer": {
    "name": "Johan Reventlow",
    "email": "johan.reventlow@regionh.dk",
    "login": "johanreventlowbfh",
    "description": "",
    "uuid": 276887448
  },
  "_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
    }
  ],
  "_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"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "johanreventlow",
      "count": 35,
      "uuid": 366572
    },
    {
      "user": "johanreventlowbfh",
      "count": 19,
      "uuid": 276887448
    }
  ],
  "_userbio": {
    "uuid": 366572,
    "type": "user",
    "name": "Johan Reventlow"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/BFHllm"
  },
  "_devurl": "https://github.com/johanreventlow/bfhllm",
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/BFHllm.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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.4771212547196626,
  "_indexed": true,
  "_nocasepkg": "bfhllm",
  "_universes": [
    "johanreventlow",
    "johanreventlowbfh"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-06-04T14:16:48.000Z",
      "distro": "noble",
      "commit": "f3bfd92a2ad423eb443efbe4a6c8b6a48fe5822b",
      "fileid": "ecede78d016ae9af03c0dd1bae8cff7b8ec155ce606d46dac7d638ff04866153",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/26957148671"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-06-04T14:17:01.000Z",
      "distro": "noble",
      "commit": "f3bfd92a2ad423eb443efbe4a6c8b6a48fe5822b",
      "fileid": "b5771ac9979f4446df18d22f751627ffdc8e799501b22dc35dd7493a6f9581c2",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/26957148671"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-06-04T14:16:12.000Z",
      "commit": "f3bfd92a2ad423eb443efbe4a6c8b6a48fe5822b",
      "fileid": "26c3586d628943c7fd9c7cbb8df52bb69fcbdbed68c5c884409d6272c1a4f124",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/26957148671"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-06-04T14:16:02.000Z",
      "commit": "f3bfd92a2ad423eb443efbe4a6c8b6a48fe5822b",
      "fileid": "5c46ca73e9f5d92c947864f7afb5b47390bb1c1aa3b32f79fb4d511bf5c80f44",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/26957148671"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-06-04T14:16:50.000Z",
      "commit": "f3bfd92a2ad423eb443efbe4a6c8b6a48fe5822b",
      "fileid": "d6b2c8c49bcab2c19c01ba842c7a938fd8c43a2f5d9300e43488c28e0136a272",
      "status": "success",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/26957148671"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-06-04T14:16:05.000Z",
      "commit": "f3bfd92a2ad423eb443efbe4a6c8b6a48fe5822b",
      "fileid": "43834a1459c909f5a1006235c12d875120ac9c1d43daec0f06ff5fb578174f41",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/26957148671"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-06-04T14:15:52.000Z",
      "commit": "f3bfd92a2ad423eb443efbe4a6c8b6a48fe5822b",
      "fileid": "c2f5820a7a7e4efd972fbd2de01e8a1c1971bdaeccadce16d1a426c56fcf5ed3",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/26957148671"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-06-04T14:15:53.000Z",
      "commit": "f3bfd92a2ad423eb443efbe4a6c8b6a48fe5822b",
      "fileid": "490c0174a78beff7866de39bc8f03854bb5a71e25bc4d86433a7a672da54209a",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/johanreventlow/actions/runs/26957148671"
    }
  ]
}