Skip to content

cindyhu2023/news-q-and-a

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


News QA

A news question-answering app powered by Open AI GPT.

The news QA app is live at https://newsq.knightlab.com

image
Table of Contents
  1. About The Project
  2. Getting Started
  3. Contact

About The Project

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)

(back to top)

Built With

  • React
  • Flask
  • OpenSearch
  • OpenAI GPT

(back to top)

Getting Started

This app has two parts: client (/web) and server (/api)

Here's how to set up if you want to run the repo locally:

Server

  • 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

Client

  • install packages
    cd /web
    npm i
    
  • start the app client
    npm run start
    

(back to top)

Contact

Cindy - cindyhu2023@u.northwestern.edu

(back to top)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published