Package: ragR 0.1.0
ragR: Retrieval-Augmented Generation and RAG Evaluation Tools
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>.
Authors:
ragR_0.1.0.tar.gz
ragR_0.1.0.tar.gz(r-4.7-any)ragR_0.1.0.tar.gz(r-4.6-any)
ragR_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
ragR/json (API)
| # Install 'ragR' in R: |
| install.packages('ragR', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/aimalrehman92/ragr/issues
Last updated from:f01a408bd5. Checks:4 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 129 | ||
| source / vignettes | OK | 197 | ||
| linux-release-x86_64 | OK | 131 | ||
| wasm-release | OK | 149 |
Exports:api_chat_handlerapi_clear_all_handlerapi_clear_handlerapi_ragas_clear_handlerapi_ragas_handlerapi_ragas_report_handlerchunk_text_sentenceclear_qa_logclear_qa_metricscompute_ragas_metricscompute_ragas_metrics_llmgenerate_openai_chatgenerate_ragas_reportgenerate_ragas_report_llmget_openai_embeddingsingest_documentsload_qa_logload_qa_metricsload_rag_configlog_rag_interactionplot_ragas_meansqa_log_emptyqa_metrics_emptyquery_ragsave_qa_logsave_qa_metricssummarize_ragasvectorstore_clear_allvectorstore_delete_collectionvectorstore_loadvectorstore_queryvectorstore_upsert
Dependencies:antiwordaskpassbitopscellrangerclicpp11crayoncurldata.tabledigestdplyrgenericsgluehmshttrhttr2jsonlitelifecyclemagrittrmimemintyndjsonopensslpdftoolspillarpkgconfigprettyunitsprogressqpdfR6RcppRCurlreadODSreadtextreadxlrematchrjsonrlangstreamRstringistringrstriprtfsystibbletidyselecttzdbutf8vctrswithrxml2zip
