Package: chatcache 0.1.0
chatcache: Persistent Cache for 'ellmer' and 'shinychat' Large Language Model Interactions
Provides a persistent SQLite-based cache for user prompts and large language model (LLM) responses in applications built with the 'ellmer' and 'shinychat' packages. Reduces API (application programming interface) costs and latency by storing and retrieving identical or similar chat interactions across sessions and users.
Authors:
chatcache_0.1.0.tar.gz
chatcache_0.1.0.zip(r-4.7-any)chatcache_0.1.0.zip(r-4.6-any)
chatcache_0.1.0.tar.gz(r-4.7-any)chatcache_0.1.0.tar.gz(r-4.6-any)
chatcache_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
chatcache/json (API)
| # Install 'chatcache' in R: |
| install.packages('chatcache', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/shekharchalwadigrepo-hub/chatcache/issues
Last updated from:50ae4e5d26. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 125 | ||
| source / vignettes | OK | 191 | ||
| linux-release | OK | 173 | ||
| windows-devel | OK | 61 | ||
| windows-release | OK | 65 | ||
| wasm-release | OK | 127 |
Exports:cached_chatcached_shinychat_respondchatcache_clearchatcache_getchatcache_initchatcache_listchatcache_setmake_cache_key
Dependencies:bitbit64blobcachemclicpp11DBIdigestfastmapgluejsonlitelifecyclememoisepkgconfigrlangRSQLitevctrs
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Cached ellmer chat call | cached_chat |
| Cached response helper for shinychat | cached_shinychat_respond |
| Clear the cache | chatcache_clear |
| Retrieve a cached response | chatcache_get |
| Initialize the chat cache | chatcache_init |
| List cached interactions | chatcache_list |
| Store a response in the cache | chatcache_set |
| Generate a cache key | make_cache_key |
