Package: BFHllm 0.2.0

Johan Reventlow

BFHllm: LLM Integration Framework for BFH Packages

AI-driven insights and text generation for healthcare quality improvement. Provides LLM chat interface, RAG (Retrieval Augmented Generation) integration with knowledge stores, and SPC-specific improvement suggestions. Designed for standalone use with BFHcharts or integration in Shiny applications.

Authors:Johan Reventlow [aut, cre]

BFHllm_0.2.0.tar.gz
BFHllm_0.2.0.zip(r-4.7)BFHllm_0.2.0.zip(r-4.6)BFHllm_0.2.0.zip(r-4.5)
BFHllm_0.2.0.tgz(r-4.6-any)BFHllm_0.2.0.tgz(r-4.5-any)
BFHllm_0.2.0.tar.gz(r-4.7-any)BFHllm_0.2.0.tar.gz(r-4.6-any)
BFHllm_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
BFHllm/json (API)
NEWS

# Install 'BFHllm' in R:
install.packages('BFHllm', repos = c('https://johanreventlow.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/johanreventlow/bfhllm/issues

On CRAN:

Conda:

2.48 score 29 exports 57 dependencies

Last updated from:f3bfd92a2a. Checks:7 WARNING, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64WARNING143
source / vignettesOK244
linux-release-x86_64WARNING161
macos-release-arm64WARNING97
macos-oldrel-arm64WARNING103
windows-develWARNING130
windows-releaseWARNING98
windows-oldrelWARNING107
wasm-releaseOK128

Exports:bfhllm_build_knowledge_storebfhllm_build_promptbfhllm_cache_createbfhllm_cache_shinybfhllm_chatbfhllm_chat_availablebfhllm_chat_with_ragbfhllm_circuit_breaker_resetbfhllm_circuit_breaker_statusbfhllm_configurebfhllm_create_structured_promptbfhllm_extract_spc_metadatabfhllm_file_cache_createbfhllm_format_rag_contextbfhllm_generate_cache_keybfhllm_get_configbfhllm_interpolatebfhllm_load_knowledge_storebfhllm_map_chart_type_danishbfhllm_query_knowledgebfhllm_rate_limit_resetbfhllm_rate_limit_statusbfhllm_reset_knowledge_store_cachebfhllm_spc_suggestionbfhllm_spc_suggestions_batchbfhllm_validate_setuplist_providersvalidate_responsevalidate_response_length

Dependencies:askpassblobclicommonmarkcorocpp11curlDBIdbplyrdigestdplyrduckdbellmerfastmapgenericsglueherehttrhttr2jsonlitelaterlatticelifecyclemagrittrMatrixmimemirainanonextopensslotelpillarpkgconfigpngpromisespurrrR6ragnarrappdirsRcppRcppTOMLreticulaterlangrprojrootrvestS7selectrstringistringrsystibbletidyrtidyselectutf8vctrswithrxml2yaml

Readme and manuals

Help Manual

Help pageTopics
Build Knowledge Storebfhllm_build_knowledge_store
Build Prompt from Componentsbfhllm_build_prompt
Create Generic In-Memory Cachebfhllm_cache_create
Create Shiny Session Cachebfhllm_cache_shiny
LLM Chat Interfacebfhllm_chat
Check if LLM Chat is Availablebfhllm_chat_available
RAG-Enhanced Chatbfhllm_chat_with_rag
Reset Circuit Breakerbfhllm_circuit_breaker_reset
Get Circuit Breaker Statusbfhllm_circuit_breaker_status
Configure BFHllm Settingsbfhllm_configure
Create Structured Promptbfhllm_create_structured_prompt
Extract SPC Metadata for AI Promptsbfhllm_extract_spc_metadata
Opret fil-baseret cachebfhllm_file_cache_create
Format RAG Context for Promptbfhllm_format_rag_context
Generate Cache Keybfhllm_generate_cache_key
Get BFHllm Configurationbfhllm_get_config
Interpolate Prompt Templatebfhllm_interpolate
Load Ragnar Knowledge Storebfhllm_load_knowledge_store
Map Chart Type to Danish Namebfhllm_map_chart_type_danish
Query Knowledge Storebfhllm_query_knowledge
Reset Rate Limiterbfhllm_rate_limit_reset
Get Rate Limit Statusbfhllm_rate_limit_status
Reset Knowledge Store Cachebfhllm_reset_knowledge_store_cache
Generate SPC Improvement Suggestionbfhllm_spc_suggestion
Batch SPC Analyse for Flere Diagrammerbfhllm_spc_suggestions_batch
Validate BFHllm Setupbfhllm_validate_setup
List Available Providerslist_providers
Print Cache Objectprint.bfhllm_cache
Print Shiny Cache Objectprint.bfhllm_cache_shiny
Validate and Sanitize LLM Responsevalidate_response
Validate Response Lengthvalidate_response_length