Crandore Hub

ragnar

Retrieval-Augmented Generation (RAG) Workflows

Provides tools for implementing Retrieval-Augmented Generation (RAG) workflows with Large Language Models (LLM). Includes functions for document processing, text chunking, embedding generation, storage management, and content retrieval. Supports various document types and embedding providers ('Ollama', 'OpenAI'), with 'DuckDB' as the default storage backend. Integrates with the 'ellmer' package to equip chat objects with retrieval capabilities. Designed to offer both sensible defaults and customization options with transparent access to intermediate outputs. For a review of retrieval-augmented generation methods, see Gao et al. (2023) "Retrieval-Augmented Generation for Large Language Models: A Survey" <doi:10.48550/arXiv.2312.10997>.

README

## Ragnar Store Inspector

This Shiny app is used to inspect a `RagnarStore` object.

### Updating the CSS

The app uses [TailwindCSS](https://tailwindcss.com). The css is generated by
the TailwindCLI that parses the classes used in the app and generating the
`app.out.css` file.

To update the css file, first download the TailwindCLI. It's recommended to
use the [standalone install](https://tailwindcss.com/blog/standalone-cli), so
you don't need to manage a npm installation.

For arm macs, you can do:

```
# Example for macOS arm64
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-macos-arm64
chmod +x tailwindcss-macos-arm64
mv tailwindcss-macos-arm64 tailwindcss
```

You can then run the below to update the css.

```
./tailwindcss -i www/app.css -o www/app.out.css
```

During development, it's useful to run. So the file watcher keeps re-compiling
the css as you edit the R sources.

```
./tailwindcss -i www/app.css -o www/app.out.css --watch
```

Versions across snapshots

VersionRepositoryFileSize
0.3.0 rolling linux/jammy R-4.5 ragnar_0.3.0.tar.gz 3.0 MiB
0.3.0 rolling linux/noble R-4.5 ragnar_0.3.0.tar.gz 3.0 MiB
0.3.0 rolling source/ R- ragnar_0.3.0.tar.gz 2.7 MiB
0.3.0 latest linux/jammy R-4.5 ragnar_0.3.0.tar.gz 3.0 MiB
0.3.0 latest linux/noble R-4.5 ragnar_0.3.0.tar.gz 3.0 MiB
0.3.0 latest source/ R- ragnar_0.3.0.tar.gz 2.7 MiB
0.3.0 2026-04-26 source/ R- ragnar_0.3.0.tar.gz 2.7 MiB
0.3.0 2026-04-23 source/ R- ragnar_0.3.0.tar.gz 2.7 MiB
0.3.0 2026-04-09 windows/windows R-4.5 ragnar_0.3.0.zip 3.0 MiB

Dependencies (latest)

Imports

Suggests