Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NextAI

NextAI is a full-stack PDF question-answering application. Users can upload a PDF, ask questions about its contents by typing or speaking, and receive text or spoken answers.

Project structure

nextai/
|-- public/                    # Static frontend files
|-- src/
|   |-- components/
|   |   |-- ChatComponent.js   # Text and voice questions
|   |   |-- PdfUploader.js     # PDF upload interface
|   |   `-- RenderQA.js        # Question and answer display
|   `-- App.js                 # Main React application
|-- server/
|   |-- chat.js                # PDF retrieval and question answering
|   |-- server.js              # Express server and upload routes
|   |-- package.json
|   `-- package-lock.json
|-- package.json
`-- package-lock.json

Prerequisites

Setup

Install the frontend dependencies:

npm install

Install the backend dependencies:

cd server
npm install

Create server/.env:

REACT_APP_OPENAI_API_KEY=your_openai_api_key

Create a server/uploads folder.

Run the project

Run the frontend and backend together from the project root:

npm run dev

Run only the frontend:

npm start

Run only the backend:

cd server
npm start

About

Full-stack AI application for PDF question answering with text and voice chat.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages