This repository contains a web application that interacts with a deployed RAG (Retrieval Augmented Generation) pipeline built using the R2R framework and the SciPhi cloud platform. The web application allows users to upload documents, submit queries, and receive AI-generated answers based on the uploaded documents.
Before using the web application, ensure that you have deployed the RAG pipeline using the R2R-local-rag-prebuilt repository. Follow the instructions in the template's README to set up and configure the pipeline.
- User-specific document management: Each user has their own set of uploaded documents.
- Document upload: Users can upload documents through the application interface.
- Query submission: Users can submit queries based on their uploaded documents.
- AI-generated answers: The application communicates with the deployed RAG pipeline to process the uploaded documents and generate answers to user queries.
- Source citations: The generated answers include citations to the relevant documents used to derive the answer.
- Responsive design: The application is designed to be responsive and work well on different screen sizes.
-
Clone this repository:
git clone [email protected]:SciPhi-AI/R2R-App-Demo.git
-
Navigate to the project directory:
cd web
-
Install the dependencies using pnpm:
pnpm install
-
Start the development server:
pnpm dev
This will start the application in development mode and open it in your default browser.
-
Open the application in your browser at
http://localhost:3000
. -
Enter the URL of your deployed RAG pipeline in the "API URL" input box at the top of the page.
-
Upload documents using the "Upload File" button in the sidebar.
-
Submit queries using the search input at the bottom of the main content area.
-
View the generated answers and source citations in the main content area.
-
Build the server:
pnpm build