{
  "_id": "6a60a1e6c766cc6deb6a9f6e",
  "Package": "ragR",
  "Title": "Retrieval-Augmented Generation and RAG Evaluation Tools",
  "Version": "0.1.0",
  "Authors@R": "c(\nperson(\ngiven = \"Muhammad Aimal\",\nfamily = \"Rehman\",\nemail = \"rehman.aimal@gmail.com\",\nrole = c(\"aut\", \"cre\")\n),\nperson(\ngiven = \"Zhili\",\nfamily = \"Lu\",\nrole = \"aut\"\n),\nperson(\ngiven = \"Chi-Kuang\",\nfamily = \"Yeh\",\nrole = \"aut\"\n)\n)",
  "Description": "Provides tools for document ingestion, embedding storage,\nretrieval-augmented generation (RAG), and evaluation of\nquestion-answering systems. The package includes an R-native\nvector store, wrappers for OpenAI embedding and chat-completion\napplication programming interfaces (APIs), question-answering\nlogging utilities, and large language model (LLM)-based\nevaluation metrics for context precision, context recall,\nanswer relevance, and faithfulness. These metrics are based on\nthe Retrieval-Augmented Generation Assessment (RAGAS)\nframework. The retrieval-augmented generation methodology is\ndescribed by Lewis et al. (2020) \"Retrieval-Augmented\nGeneration for Knowledge-Intensive NLP Tasks\"\n<doi:10.48550/arXiv.2005.11401>. The evaluation metrics are\nbased on Es et al. (2024) \"RAGAS: Automated Evaluation of\nRetrieval Augmented Generation\"\n<doi:10.18653/v1/2024.eacl-demo.16>.",
  "License": "GPL-3",
  "URL": "https://github.com/aimalrehman92/ragR",
  "BugReports": "https://github.com/aimalrehman92/ragR/issues",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.0.0",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-22 10:53:27 UTC",
    "User": "root"
  },
  "Author": "Muhammad Aimal Rehman [aut, cre], Zhili Lu [aut], Chi-Kuang Yeh\n[aut]",
  "Maintainer": "Muhammad Aimal Rehman <rehman.aimal@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-07-22 07:40:02 UTC",
  "RemoteUrl": "https://github.com/cran/ragR",
  "RemoteRef": "HEAD",
  "RemoteSha": "f01a408bd5d8935e6500b18833e581ed89998b6e",
  "_user": "cran",
  "_type": "src",
  "_file": "ragR_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/10483bd4e8b0d7df1bb00fcb7f523abfc33c51d53afad977553262af49b4dd1e",
  "_filesize": 218950,
  "_sha256": "10483bd4e8b0d7df1bb00fcb7f523abfc33c51d53afad977553262af49b4dd1e",
  "_expires": "2026-10-30T10:56:36.000Z",
  "_created": "2026-07-22T10:53:27.000Z",
  "_published": "2026-07-22T10:56:38.359Z",
  "_jobs": [
    {
      "job": 88902278258,
      "time": 129,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8526981566"
    },
    {
      "job": 88902278252,
      "time": 131,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8526982339"
    },
    {
      "job": 88901591139,
      "time": 197,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8526923777"
    },
    {
      "job": 88902278221,
      "time": 149,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8526986694"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/29913410473",
  "_status": "success",
  "_upstream": "https://github.com/cran/ragR",
  "_commit": {
    "id": "f01a408bd5d8935e6500b18833e581ed89998b6e",
    "author": "Muhammad Aimal Rehman <rehman.aimal@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1784706002
  },
  "_maintainer": {
    "name": "Muhammad Aimal Rehman",
    "email": "rehman.aimal@gmail.com",
    "login": "aimalrehman92",
    "twitter": "@aimal_rehman",
    "description": "Data Scientist.\n",
    "uuid": 37048817
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "httr2",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "pdftools",
      "role": "Imports"
    },
    {
      "package": "readtext",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "plumber",
      "role": "Suggests"
    },
    {
      "package": "stringr",
      "role": "Suggests"
    },
    {
      "package": "yaml",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-30",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2026-07-22"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "aimalrehman92",
      "count": 1,
      "uuid": 37048817
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 622,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ragR"
  },
  "_devurl": "https://github.com/aimalrehman92/ragr",
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/ragR.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-07-22"
    }
  ],
  "_exports": [
    "api_chat_handler",
    "api_clear_all_handler",
    "api_clear_handler",
    "api_ragas_clear_handler",
    "api_ragas_handler",
    "api_ragas_report_handler",
    "chunk_text_sentence",
    "clear_qa_log",
    "clear_qa_metrics",
    "compute_ragas_metrics",
    "compute_ragas_metrics_llm",
    "generate_openai_chat",
    "generate_ragas_report",
    "generate_ragas_report_llm",
    "get_openai_embeddings",
    "ingest_documents",
    "load_qa_log",
    "load_qa_metrics",
    "load_rag_config",
    "log_rag_interaction",
    "plot_ragas_means",
    "qa_log_empty",
    "qa_metrics_empty",
    "query_rag",
    "save_qa_log",
    "save_qa_metrics",
    "summarize_ragas",
    "vectorstore_clear_all",
    "vectorstore_delete_collection",
    "vectorstore_load",
    "vectorstore_query",
    "vectorstore_upsert"
  ],
  "_help": [
    {
      "page": "ragR-package",
      "title": "ragR: Retrieval-Augmented Generation and Evaluation Tools",
      "topics": [
        "ragR-package",
        "ragR"
      ]
    },
    {
      "page": "api_chat_handler",
      "title": "API handler: chat with the RAG pipeline",
      "topics": [
        "api_chat_handler"
      ]
    },
    {
      "page": "api_clear_all_handler",
      "title": "API handler: clear the entire vector store",
      "topics": [
        "api_clear_all_handler"
      ]
    },
    {
      "page": "api_clear_handler",
      "title": "API handler: clear a vector-store collection",
      "topics": [
        "api_clear_handler"
      ]
    },
    {
      "page": "api_ragas_clear_handler",
      "title": "API handler: clear RAG evaluation files",
      "topics": [
        "api_ragas_clear_handler"
      ]
    },
    {
      "page": "api_ragas_handler",
      "title": "API handler: compute RAG evaluation metrics",
      "topics": [
        "api_ragas_handler"
      ]
    },
    {
      "page": "api_ragas_report_handler",
      "title": "API handler: generate a RAG evaluation performance report",
      "topics": [
        "api_ragas_report_handler"
      ]
    },
    {
      "page": "chunk_text_sentence",
      "title": "Chunk text into sentences (strict)",
      "topics": [
        "chunk_text_sentence"
      ]
    },
    {
      "page": "clear_qa_log",
      "title": "Clear the QA log on disk",
      "topics": [
        "clear_qa_log"
      ]
    },
    {
      "page": "clear_qa_metrics",
      "title": "Clear QA metrics on disk",
      "topics": [
        "clear_qa_metrics"
      ]
    },
    {
      "page": "compute_ragas_metrics",
      "title": "Compute RAGAS metrics",
      "topics": [
        "compute_ragas_metrics"
      ]
    },
    {
      "page": "compute_ragas_metrics_llm",
      "title": "Compute RAGAS-style metrics (LLM scored)",
      "topics": [
        "compute_ragas_metrics_llm"
      ]
    },
    {
      "page": "generate_openai_chat",
      "title": "Generate a chat completion from OpenAI",
      "topics": [
        "generate_openai_chat"
      ]
    },
    {
      "page": "generate_ragas_report",
      "title": "Generate a RAG evaluation performance report",
      "topics": [
        "generate_ragas_report"
      ]
    },
    {
      "page": "generate_ragas_report_llm",
      "title": "Generate a RAG evaluation report using large language model scoring",
      "topics": [
        "generate_ragas_report_llm"
      ]
    },
    {
      "page": "get_openai_embeddings",
      "title": "Get embeddings from OpenAI",
      "topics": [
        "get_openai_embeddings"
      ]
    },
    {
      "page": "ingest_documents",
      "title": "Ingest documents into the vector store",
      "topics": [
        "ingest_documents"
      ]
    },
    {
      "page": "load_qa_log",
      "title": "Load a QA log from disk",
      "topics": [
        "load_qa_log"
      ]
    },
    {
      "page": "load_qa_metrics",
      "title": "Load QA metrics from disk",
      "topics": [
        "load_qa_metrics"
      ]
    },
    {
      "page": "load_rag_config",
      "title": "Load RAG configuration",
      "topics": [
        "load_rag_config"
      ]
    },
    {
      "page": "log_rag_interaction",
      "title": "Append one RAG interaction to the QA log",
      "topics": [
        "log_rag_interaction"
      ]
    },
    {
      "page": "plot_ragas_means",
      "title": "Plot mean RAG evaluation metrics to a PNG",
      "topics": [
        "plot_ragas_means"
      ]
    },
    {
      "page": "qa_log_empty",
      "title": "Create an empty QA log tibble",
      "topics": [
        "qa_log_empty"
      ]
    },
    {
      "page": "qa_metrics_empty",
      "title": "Create an empty QA metrics tibble",
      "topics": [
        "qa_metrics_empty"
      ]
    },
    {
      "page": "query_rag",
      "title": "Query the RAG pipeline",
      "topics": [
        "query_rag"
      ]
    },
    {
      "page": "save_qa_log",
      "title": "Save a QA log to disk",
      "topics": [
        "save_qa_log"
      ]
    },
    {
      "page": "save_qa_metrics",
      "title": "Save QA metrics to disk",
      "topics": [
        "save_qa_metrics"
      ]
    },
    {
      "page": "summarize_ragas",
      "title": "Summarize RAGAS metrics across QA pairs",
      "topics": [
        "summarize_ragas"
      ]
    },
    {
      "page": "vectorstore_clear_all",
      "title": "Delete all collections from the R-native vector store",
      "topics": [
        "vectorstore_clear_all"
      ]
    },
    {
      "page": "vectorstore_delete_collection",
      "title": "Delete a collection from the R-native vector store",
      "topics": [
        "vectorstore_delete_collection"
      ]
    },
    {
      "page": "vectorstore_load",
      "title": "Load the R-native vector store",
      "topics": [
        "vectorstore_load"
      ]
    },
    {
      "page": "vectorstore_query",
      "title": "Query the R-native vector store for nearest neighbors",
      "topics": [
        "vectorstore_query"
      ]
    },
    {
      "page": "vectorstore_upsert",
      "title": "Upsert embeddings into the R-native vector store",
      "topics": [
        "vectorstore_upsert"
      ]
    }
  ],
  "_readme": "https://github.com/cran/ragR/raw/HEAD/README.md",
  "_rundeps": [
    "antiword",
    "askpass",
    "bitops",
    "cellranger",
    "cli",
    "cpp11",
    "crayon",
    "curl",
    "data.table",
    "digest",
    "dplyr",
    "generics",
    "glue",
    "hms",
    "httr",
    "httr2",
    "jsonlite",
    "lifecycle",
    "magrittr",
    "mime",
    "minty",
    "ndjson",
    "openssl",
    "pdftools",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "qpdf",
    "R6",
    "Rcpp",
    "RCurl",
    "readODS",
    "readtext",
    "readxl",
    "rematch",
    "rjson",
    "rlang",
    "streamR",
    "stringi",
    "stringr",
    "striprtf",
    "sys",
    "tibble",
    "tidyselect",
    "tzdb",
    "utf8",
    "vctrs",
    "withr",
    "xml2",
    "zip"
  ],
  "_score": 1.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "ragr",
  "_universes": [
    "cran",
    "aimalrehman92"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-22T10:55:39.000Z",
      "distro": "resolute",
      "commit": "f01a408bd5d8935e6500b18833e581ed89998b6e",
      "fileid": "https://r2.ropensci.org/9adc0e895c253b7cb8f1e75c3a4ccc10845ad4920ff3c1208856d850c6792976",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/29913410473"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-22T10:55:40.000Z",
      "distro": "resolute",
      "commit": "f01a408bd5d8935e6500b18833e581ed89998b6e",
      "fileid": "https://r2.ropensci.org/0fbe576d0f93a87be6b8ad60ec80c15baaca033f34633c2cf8cccbe4c6c9635e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/29913410473"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-07-22T10:56:03.000Z",
      "commit": "f01a408bd5d8935e6500b18833e581ed89998b6e",
      "fileid": "https://r2.ropensci.org/861e84b03a9dbdae6e91ad770046337210dc462a8ee33faa2e21cbdc0d6172ee",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/29913410473"
    }
  ]
}