doi:10.48550/arXiv.2312.10997>.">

ragnar: Retrieval-Augmented Generation (RAG) Workflows (original) (raw)

Provides tools for implementing Retrieval-Augmented Generation (RAG) workflows with Large Language Models (LLM). Includes functions for document processing, text chunking, embedding generation, storage management, and content retrieval. Supports various document types and embedding providers ('Ollama', 'OpenAI'), with 'DuckDB' as the default storage backend. Integrates with the 'ellmer' package to equip chat objects with retrieval capabilities. Designed to offer both sensible defaults and customization options with transparent access to intermediate outputs. For a review of retrieval-augmented generation methods, see Gao et al. (2023) "Retrieval-Augmented Generation for Large Language Models: A Survey" <doi:10.48550/arXiv.2312.10997>.

Version: 0.2.1
Depends: R (≥ 4.3.0)
Imports: blob, cli, commonmark, curl, DBI, dbplyr, dplyr, duckdb (≥ 1.3.1), glue, httr2, methods, reticulate (≥ 1.42.0), rlang (≥ 1.1.0), rvest, S7, stringi, tidyr, vctrs, withr, xml2
Suggests: connectcreds, ellmer (≥ 0.3.0), gargle, knitr, lifecycle, pandoc, paws.common, rmarkdown, shiny, stringr, tibble, testthat (≥ 3.0.0)
Published: 2025-08-19
DOI: 10.32614/CRAN.package.ragnar
Author: Tomasz Kalinowski [aut, cre], Daniel Falbel [aut], Posit Software, PBC ROR ID [cph, fnd]
Maintainer: Tomasz Kalinowski
BugReports: https://github.com/tidyverse/ragnar/issues
License: MIT + file
URL: https://ragnar.tidyverse.org/, https://github.com/tidyverse/ragnar
NeedsCompilation: yes
Materials: README, NEWS
CRAN checks: ragnar results

Documentation:

Downloads:

Linking:

Please use the canonical formhttps://CRAN.R-project.org/package=ragnarto link to this page.