ragR: Retrieval-Augmented Generation and RAG Evaluation Tools in R

Provides tools for document ingestion, embedding storage, retrieval-augmented generation (RAG), and RAG evaluation for question answering systems. The package includes an R-native vector store, wrappers for OpenAI embedding and chat-completion APIs, QA logging utilities, and LLM-scored RAGAS-style evaluation metrics.

Version: 0.1.1
Depends: R (≥ 4.1.0)
Imports: dplyr, httr2, jsonlite, pdftools, readtext, tibble
Suggests: plumber, stringr, yaml, testthat (≥ 3.0.0)
Published: 2026-10-25
DOI: 10.32614/CRAN.package.ragR
Author: Muhammad Aimal Rehman [aut, cre], Zhili Lu [aut], Seoyoung Kim [aut], Chi-Kuang Yeh [aut]
Maintainer: Muhammad Aimal Rehman <rehman.aimal at gmail.com>
BugReports: https://github.com/aimalrehman92/ragR/issues
License: GPL-3
URL: https://github.com/aimalrehman92/ragR
NeedsCompilation: no
Language: en-US
Materials: README, NEWS
CRAN checks: ragR results

Documentation:

Reference manual: ragR.html , ragR.pdf

Downloads:

Package source: ragR_0.1.1.tar.gz
Windows binaries: r-devel: ragR_0.1.0.zip, r-release: ragR_0.1.0.zip, r-oldrel: ragR_0.1.0.zip
macOS binaries: r-release (arm64): ragR_0.1.1.tgz, r-oldrel (arm64): ragR_0.1.1.tgz, r-release (x86_64): ragR_0.1.1.tgz, r-oldrel (x86_64): ragR_0.1.1.tgz
Old sources: ragR archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=ragR to link to this page.