A news question-answering app powered by Open AI GPT.
The news QA app is live at https://newsq.knightlab.com
Table of Contents
Screen.Recording.2023-11-30.at.10.45.15.PM.mov
This is a news question-answering app with CNN news articles as references. Currently, the database only includes articles published during January 2022 - March 2022, so questions about news outside of that time period might not be answerable. (CNN news dataset source)
This app has two parts: client (/web
) and server (/api
)
Here's how to set up if you want to run the repo locally:
- pip install (you may want to create a virtual env with python first)
cd /api pip install -r requirements.txt
- Create a
.env
file in/api
and include your keys for OpenSearch and Open AI
OPEN_AI_KEY =
OPENSEARCH_URL =
OPENSEARCH_USERNAME =
OPENSEARCH_PASSWORD =
- initialize document store with news article data (you can swap with your own data)
cd /util
python docStoreInit_cnn.py
- start the server
cd ..
flask run
- install packages
cd /web npm i
- start the app client
npm run start
Cindy - cindyhu2023@u.northwestern.edu