Package: ragR 0.0.0.9000

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

Tools for data ingestion, embedding storage, retrieval-augmented generation (RAG), and LLM-scored RAGAS-style evaluation for question answering systems using OpenAI models and a simple R-native vector store.

Authors:Muhammad Aimal Rehman [aut, cre], Zhili Lu [aut], Chi-Kuang Yeh [aut]

ragR_0.0.0.9000.tar.gz
ragR_0.0.0.9000.zip(r-4.7-any)ragR_0.0.0.9000.zip(r-4.6-any)ragR_0.0.0.9000.zip(r-4.5-any)
ragR_0.0.0.9000.tgz(r-4.6-any)ragR_0.0.0.9000.tgz(r-4.5-any)
ragR_0.0.0.9000.tar.gz(r-4.7-any)ragR_0.0.0.9000.tar.gz(r-4.6-any)
ragR_0.0.0.9000.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://aimalrehman92.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/aimalrehman92/ragr/issues

On CRAN:

Conda:

4.15 score 2 stars 32 exports 51 dependencies

Last updated from:b81068fc08. Checks:7 ERROR, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64ERROR128
source / vignettesOK180
linux-release-x86_64ERROR131
macos-release-arm64ERROR110
macos-oldrel-arm64ERROR134
windows-devel-x86_64ERROR108
windows-release-x86_64ERROR82
windows-oldrel-x86_64ERROR113
wasm-releaseOK120

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

Readme and manuals

Help Manual

Help pageTopics
ragR: Retrieval-Augmented Generation + RAGAS Evaluation in RragR-package ragR
API handler: chat with the RAG pipelineapi_chat_handler
API handler: clear the entire vector storeapi_clear_all_handler
API handler: clear one vector-store collectionapi_clear_handler
API handler: clear RAGAS/QA evaluation filesapi_ragas_clear_handler
API handler: compute RAGAS metrics and summary from saved QA logapi_ragas_handler
API handler: generate RAGAS performance reportapi_ragas_report_handler
Chunk text into sentences (strict)chunk_text_sentence
Clear the QA log on diskclear_qa_log
Clear QA metrics on diskclear_qa_metrics
Compute RAGAS metricscompute_ragas_metrics
Compute RAGAS-style metrics (LLM scored)compute_ragas_metrics_llm
Generate a chat completion from OpenAIgenerate_openai_chat
Generate a RAGAS performance reportgenerate_ragas_report
Generate RAGAS report using LLM scoringgenerate_ragas_report_llm
Get embeddings from OpenAIget_openai_embeddings
Ingest documents into the vector storeingest_documents
Load a QA log from diskload_qa_log
Load QA metrics from diskload_qa_metrics
Load RAG configurationload_rag_config
Append one RAG interaction to the QA loglog_rag_interaction
Plot mean RAGAS metrics to a PNGplot_ragas_means
Create an empty QA log tibbleqa_log_empty
Create an empty QA metrics tibbleqa_metrics_empty
Query the RAG pipelinequery_rag
Save a QA log to disksave_qa_log
Save QA metrics to disksave_qa_metrics
Summarize RAGAS metrics across QA pairssummarize_ragas
Delete ALL collections from the vector storevectorstore_clear_all
Delete a collection from the R-native vector storevectorstore_delete_collection
Load the R-native vector storevectorstore_load
Query the R-native vector store for nearest neighborsvectorstore_query
Upsert embeddings into the R-native vector storevectorstore_upsert