Builds PaperTrail from the base skeleton into a full evidence-verification platform for the "Built with Claude: Life Sciences" hackathon (Builder Track). New named-user features (Build Beyond the Bench): - Lab Notebook Companion — rough bench notes -> structured, searchable, grounded experiment records (lib/labNotebook, /console/lab-notebook, migration 0059) - Clinical Trial Matcher — de-identified patient notes -> ranked eligible ClinicalTrials.gov trials with per-criterion inclusion/exclusion reasoning (lib/trialMatcher, /console/trial-matcher, migrations 0060) Platform: - Deterministic verification moat (biostats recompute, exact-span grounding) - 11 biomedical evidence engines (FAERS, GWAS, Open Targets, ChEMBL, ClinVar, PharmGKB, PubTator, DDI, repurposing, biomarker, unified verifier) - Evidence Intelligence (KG, dossier, provenance/export, RWE) + enterprise governance (RBAC, /api/v1 gateway, metering, audit chain, retention) - 17 OSS projects assimilated into native TypeScript on our stack (backend/engines retained + credited in NOTICE) - Multi-format upload (PDF/DOCX/XLSX/CSV/MD/TXT), logo, marketing site - Next.js 16 upgrade, benchmark harness (honest smoke-test caveat) Licensing: Apache-2.0 (LICENSE + NOTICE).
115 lines
3.3 KiB
Markdown
115 lines
3.3 KiB
Markdown
R2R offers an [open-source React+Next.js application](https://github.com/SciPhi-AI/R2R-Application) designed to give developers an administrative portal for their R2R deployment, and users an application to communicate with out of the box.
|
|
|
|
## Setup
|
|
|
|
### Install PNPM
|
|
|
|
PNPM is a fast, disk space-efficient package manager. To install PNPM, visit the [official PNPM installation page](https://pnpm.io/installation) or follow these instructions:
|
|
|
|
<AccordionGroup>
|
|
|
|
<Accordion icon="terminal" title="PNPM Installation">
|
|
For Unix-based systems (Linux, macOS):
|
|
|
|
```zsh
|
|
curl -fsSL https://get.pnpm.io/install.sh | sh -
|
|
```
|
|
|
|
For Windows:
|
|
|
|
```powershell
|
|
iwr https://get.pnpm.io/install.ps1 -useb | iex
|
|
```
|
|
|
|
After installation, you may need to add PNPM to your system's PATH.
|
|
</Accordion>
|
|
|
|
</AccordionGroup>
|
|
|
|
### Installing and Running the R2R Dashboard
|
|
|
|
If you're running R2R with the Docker, you already have the R2R application running! Just navigate to [http://localhost:7273](http://localhost:7273).
|
|
|
|
If you're running R2R outside of Docker, run the following commands to install the R2R Dashboard.
|
|
|
|
1. Clone the project repository and navigate to the project directory:
|
|
|
|
```zsh
|
|
git clone https://github.com/SciPhi-AI/R2R.git
|
|
cd R2R-Application
|
|
```
|
|
|
|
2. Install the project dependencies:
|
|
|
|
```zsh
|
|
pnpm install
|
|
```
|
|
|
|
3. Build and start the application for production:
|
|
|
|
```zsh
|
|
pnpm build
|
|
pnpm start
|
|
```
|
|
|
|
The dashboard will be available at [http://localhost:3000](http://localhost:3000).
|
|
|
|
## Features
|
|
|
|
### Login
|
|
|
|
To interact with R2R with the dashboard, you must first login. If it's your first time logging in, log in with the default credentials shown.
|
|
|
|
By default, an R2R instance is hosted on port 7272. The login page will include this URL by default, but be sure to update the URL if your R2R instance is deployed elsewhere. For information about deploying a local R2R application server, see the [quickstart](/documentation/quickstart).
|
|
|
|

|
|
|
|
|
|
### Documents
|
|
|
|
The documents page provides an overview of uploaded documents and their metadata. You can upload new documents and update, download, or delete existing ones. Additionally, you can view information about each document, including the documents' chunks and previews of PDFs.
|
|
|
|

|
|
|
|
### Collections
|
|
|
|
Collections allow users to create and share sets of documents. The collections page provides a place to manage your existing collections or create new collections.
|
|
|
|

|
|
|
|
### Chat
|
|
|
|
In the chat page, you can stream RAG responses with different models and configurable settings. You can interact with both the RAG Agent and RAG endpoints here.
|
|
|
|

|
|
|
|
### Users
|
|
|
|
Manage your users and gain insight into their interactions.
|
|
|
|

|
|
|
|
### Settings
|
|
|
|
The settings page allows you to view the configuration of and edit the prompts associated with your R2R deployment.
|
|
|
|

|
|

|
|
|
|
## Development
|
|
|
|
To develop the R2R dashboard:
|
|
|
|
1. Start the development server:
|
|
|
|
```zsh
|
|
pnpm dev
|
|
```
|
|
|
|
2. Run pre-commit checks (optional but recommended):
|
|
|
|
```zsh
|
|
pnpm format
|
|
pnpm lint
|
|
```
|