https://github.com/ychoi-kr/askwikibook
위키북스 도서 QA
https://github.com/ychoi-kr/askwikibook
flask openai-api sqlite3
Last synced: about 16 hours ago
JSON representation
위키북스 도서 QA
- Host: GitHub
- URL: https://github.com/ychoi-kr/askwikibook
- Owner: ychoi-kr
- Created: 2023-10-27T11:13:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-05T02:56:52.000Z (over 2 years ago)
- Last Synced: 2024-04-05T03:37:09.491Z (over 2 years ago)
- Topics: flask, openai-api, sqlite3
- Language: Python
- Homepage: https://askwikibook.pythonanywhere.com/
- Size: 1.65 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This Flask app allows users to query Wikibooks(https://wikibook.co.kr/)' book information in natural language, which is then converted to SQL to query and display the results.

# How to Setup
1. Clone repository.
```
git clone https://github.com/ychoi-kr/askwikibook.git
```
2. Make folders.
```
cd askwikibook
mkdir databases settings
```
3. Download database
```
./scripts/download_db.sh
```
4. Set OpenAI API Key
```
cat > ./settings/OPENAI_API_KEY
^D
```
5. Install dependencies.
```
pip install -r requirements.txt
```
# How to Run
1. Start server.
```
python mysite/flask_app.py
```
2. Open in a web browser.