# howardisme/rag-wm architecture

> Architecture diagram of the GitHub repository howardisme/rag-wm, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/howardisme/rag-wm
- Repository: https://github.com/howardisme/rag-wm

## Overview

RAG-WM is presented as an implementation of a black-box watermarking approach for retrieval-augmented generation. The repository contains a main notebook, dataset artifacts, and a persisted Chroma database. No source excerpts or workflow details are available, so their runtime relationships and the notebook’s internal stages cannot be established from the evidence provided.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_implementation["Implementation"]
  node_notebook["Main notebook<br/>[main.ipynb]"]
end

subgraph group_artifacts["Data artifacts"]
  node_dataset["Dataset artifacts"]
  node_paper["RAG-WM paper<br/>[RAG_WM.pdf]"]
  node_chroma[("Chroma database<br/>[chroma.db]")]
end

click node_notebook "https://github.com/howardisme/rag-wm/blob/main/main.ipynb"
click node_dataset "https://github.com/howardisme/rag-wm/tree/main/dataset"
click node_paper "https://github.com/howardisme/rag-wm/blob/main/dataset/RAG_WM.pdf"
click node_chroma "https://github.com/howardisme/rag-wm/tree/main/chroma.db"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_notebook toneBlue
class node_dataset,node_paper,node_chroma toneAmber
```

## Components

### Implementation

- [Main notebook](https://github.com/howardisme/rag-wm/blob/main/main.ipynb): `main.ipynb`

### Data artifacts

- [Dataset artifacts](https://github.com/howardisme/rag-wm/tree/main/dataset): `dataset`
- [RAG-WM paper](https://github.com/howardisme/rag-wm/blob/main/dataset/RAG_WM.pdf): `dataset/RAG_WM.pdf`
- [Chroma database](https://github.com/howardisme/rag-wm/tree/main/chroma.db): `chroma.db`
