Skip to content

ragR

0.1.0

Retrieval-Augmented Generation and RAG Evaluation Tools

0packages depend
244downloads / year
30.9%test coverage
13/13checks pass

Overview

About
Maintained by Muhammad Aimal RehmanFirst published 2026-07-221 releasesCRAN page ↗GitHub ↗

Provides tools for document ingestion, embedding storage, retrieval-augmented generation (RAG), and evaluation of question-answering systems. The package includes an R-native vector store, wrappers for OpenAI embedding and chat-completion application programming interfaces (APIs), question-answering logging utilities, and large language model (LLM)-based evaluation metrics for context precision, context recall, answer relevance, and faithfulness. These metrics are based on the Retrieval-Augmented Generation Assessment (RAGAS) framework. The retrieval-augmented generation methodology is described by Lewis et al. (2020) "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks" doi:10.48550/arXiv.2005.11401. The evaluation metrics are based on Es et al. (2024) "RAGAS: Automated Evaluation of Retrieval Augmented Generation" doi:10.18653/v1/2024.eacl-demo.16.

Install

Health

CRAN checks
13OK
Slowest check: 1.4 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.14
30.9%
Coverage · measured lines
100%
Documentation · exports
6
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-23
    7 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,176 wordsVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
98%
Return-value docs
100%
References docs
0%

Downloads

244
CRAN downloads in the past year
Rank #24,341 · ~1/day · ~20/mo
Daily download trend is not available in this view yet.
24430 days
24490 days
2441 year
Compare downloads with other packages →
Also on5 r2u

Repository

Repository
3Stars
0Forks
0Open issues
0Open PRs
0Releases
51Commits
1Contributors
51 commits · Last activity 2026-06-08 · +50% stars, 30d

Stars over time

2026-07-22 · 22026-08-08 · 3

Repository practices

Upstream repositoryBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/aimalrehman92/ragr on 2026-08-09.

Reproducibility and dev environment (1)
renv
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author
Package Timeline

1 release. R releases are shown for context.

  • 0.1.0Latest
    2026-07-22 · current release
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-07-22
Total releases
1 / 1 yrs
License
GPL-3 OSI
Minimum R
≥ 4.1.0
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("ragR")
Rehman, M. A., Lu, Z., & Yeh, C. (2026). ragR: Retrieval-Augmented Generation and RAG Evaluation Tools (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.ragR

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for ragR version 0.1.0 [Data set]. HJJB, LLC. Data release v2026-08-15. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-15, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy