-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #800 from ElishaKay/next-to-root
✅ ready for merge: nextjs to root
- Loading branch information
Showing
105 changed files
with
213 additions
and
434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
OPENAI_API_KEY= | ||
TAVILY_API_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# Frontend Application | ||
|
||
This frontend project aims to enhance the user experience of GPT-Researcher, providing an intuitive and efficient interface for automated research. It offers two deployment options to suit different needs and environments. | ||
|
||
## Option 1: Static Frontend (FastAPI) | ||
|
||
A lightweight solution using FastAPI to serve static files. | ||
|
||
#### Prerequisites | ||
- Python 3.11+ | ||
- pip | ||
|
||
#### Setup and Running | ||
|
||
1. Install required packages: | ||
``` | ||
pip install -r requirements.txt | ||
``` | ||
|
||
2. Start the server: | ||
``` | ||
python -m uvicorn main:app | ||
``` | ||
|
||
3. Access at `http://localhost:8000` | ||
|
||
#### Demo | ||
<iframe height="400" width="700" src="https://github.com/assafelovic/gpt-researcher/assets/13554167/dd6cf08f-b31e-40c6-9907-1915f52a7110" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | ||
|
||
|
||
## Option 2: NextJS Frontend | ||
|
||
A more robust solution with enhanced features and performance. | ||
|
||
#### Prerequisites | ||
- Node.js (v18.17.0 recommended) | ||
- npm | ||
|
||
#### Setup and Running | ||
|
||
1. Navigate to NextJS directory: | ||
``` | ||
cd nextjs | ||
``` | ||
|
||
2. Set up Node.js: | ||
``` | ||
nvm install 18.17.0 | ||
nvm use v18.17.0 | ||
``` | ||
|
||
3. Install dependencies: | ||
``` | ||
npm install --legacy-peer-deps | ||
``` | ||
|
||
4. Start development server: | ||
``` | ||
npm run dev | ||
``` | ||
|
||
5. Access at `http://localhost:3000` | ||
|
||
Note: Requires backend server on `localhost:8000` as detailed in option 1. | ||
|
||
#### Demo | ||
<iframe height="400" width="700" src="https://github.com/user-attachments/assets/092e9e71-7e27-475d-8c4f-9dddd28934a3" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | ||
|
||
## Choosing an Option | ||
|
||
- Static Frontend: Quick setup, lightweight deployment. | ||
- NextJS Frontend: Feature-rich, scalable, better performance and SEO. | ||
|
||
For production, NextJS is recommended. | ||
|
||
## Frontend Features | ||
|
||
Our frontend enhances GPT-Researcher by providing: | ||
|
||
1. Intuitive Research Interface: Streamlined input for research queries. | ||
2. Real-time Progress Tracking: Visual feedback on ongoing research tasks. | ||
3. Interactive Results Display: Easy-to-navigate presentation of findings. | ||
4. Customizable Settings: Adjust research parameters to suit specific needs. | ||
5. Responsive Design: Optimal experience across various devices. | ||
|
||
These features aim to make the research process more efficient and user-friendly, complementing GPT-Researcher's powerful agent capabilities. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Frontend Application | ||
|
||
This frontend project aims to enhance the user experience of GPT-Researcher, providing an intuitive and efficient interface for automated research. It offers two deployment options to suit different needs and environments. | ||
|
||
## Option 1: Static Frontend (FastAPI) | ||
|
||
A lightweight solution using FastAPI to serve static files. | ||
|
||
#### Prerequisites | ||
- Python 3.11+ | ||
- pip | ||
|
||
#### Setup and Running | ||
|
||
1. Install required packages: | ||
``` | ||
pip install -r requirements.txt | ||
``` | ||
|
||
2. Start the server: | ||
``` | ||
python -m uvicorn main:app | ||
``` | ||
|
||
3. Access at `http://localhost:8000` | ||
|
||
#### Demo | ||
https://github.com/assafelovic/gpt-researcher/assets/13554167/dd6cf08f-b31e-40c6-9907-1915f52a7110 | ||
|
||
## Option 2: NextJS Frontend | ||
|
||
A more robust solution with enhanced features and performance. | ||
|
||
#### Prerequisites | ||
- Node.js (v18.17.0 recommended) | ||
- npm | ||
|
||
#### Setup and Running | ||
|
||
1. Navigate to NextJS directory: | ||
``` | ||
cd nextjs | ||
``` | ||
|
||
2. Set up Node.js: | ||
``` | ||
nvm install 18.17.0 | ||
nvm use v18.17.0 | ||
``` | ||
|
||
3. Install dependencies: | ||
``` | ||
npm install --legacy-peer-deps | ||
``` | ||
|
||
4. Start development server: | ||
``` | ||
npm run dev | ||
``` | ||
|
||
5. Access at `http://localhost:3000` | ||
|
||
Note: Requires backend server on `localhost:8000` as detailed in option 1. | ||
|
||
#### Demo | ||
https://github.com/user-attachments/assets/092e9e71-7e27-475d-8c4f-9dddd28934a3 | ||
|
||
## Choosing an Option | ||
|
||
- Static Frontend: Quick setup, lightweight deployment. | ||
- NextJS Frontend: Feature-rich, scalable, better performance and SEO. | ||
|
||
For production, NextJS is recommended. | ||
|
||
## Frontend Features | ||
|
||
Our frontend enhances GPT-Researcher by providing: | ||
|
||
1. Intuitive Research Interface: Streamlined input for research queries. | ||
2. Real-time Progress Tracking: Visual feedback on ongoing research tasks. | ||
3. Interactive Results Display: Easy-to-navigate presentation of findings. | ||
4. Customizable Settings: Adjust research parameters to suit specific needs. | ||
5. Responsive Design: Optimal experience across various devices. | ||
|
||
These features aim to make the research process more efficient and user-friendly, complementing GPT-Researcher's powerful agent capabilities. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.