Skip to content

❗ This is a read-only mirror of the CRAN R package repository. RAGFlowChainR — Retrieval-Augmented Generation (RAG) Workflows in R with Local and Web Search. Homepage: https://github.com/knowusuboaky/RAGFlowChainRhttps://knowusuboaky.github.io/RAGFlowChainR/ Report bugs for this package: https://github. ...

License

Notifications You must be signed in to change notification settings

cran/RAGFlowChainR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAGFlowChainR

License: MIT R-CMD-check Docs CRAN status Total Downloads Last Commit Issues

Overview

RAGFlowChainR is an R package for Retrieval-Augmented Generation (RAG) workflows with local retrieval backends (DuckDB and VectrixDB) plus optional web search.

The README is intentionally short. Full backend workflows are documented in vignettes.


Installation

install.packages("RAGFlowChainR")

Development version

install.packages("remotes")
remotes::install_github("knowusuboaky/RAGFlowChainR")

Backend Guides


Quick Start

library(RAGFlowChainR)

rag <- create_rag_chain(
  llm = function(prompt) "mock answer",
  vector_database_directory = "my_vectors.duckdb",
  method = "DuckDB",
  use_web_search = FALSE
)

rag$invoke("What is RAG?")
rag$disconnect()

For complete ingestion, indexing, and backend-specific setup, use the two backend vignettes above.


Environment Setup

Sys.setenv(TAVILY_API_KEY    = "your-tavily-api-key")
Sys.setenv(OPENAI_API_KEY    = "your-openai-api-key")
Sys.setenv(GROQ_API_KEY      = "your-groq-api-key")
Sys.setenv(ANTHROPIC_API_KEY = "your-anthropic-api-key")

License

MIT (c) Kwadwo Daddy Nyame Owusu Boakye

About

❗ This is a read-only mirror of the CRAN R package repository. RAGFlowChainR — Retrieval-Augmented Generation (RAG) Workflows in R with Local and Web Search. Homepage: https://github.com/knowusuboaky/RAGFlowChainRhttps://knowusuboaky.github.io/RAGFlowChainR/ Report bugs for this package: https://github. ...

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages