luisrh01 / GPTParking

ParkingSucks, maybe we can make it suck a litle less.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ParkingSucks.com

Description

This repo contains 4 micro-services:

  • scraper: Scrapes data from the web and stores it in the DB.
  • parking-api: An apy which retrieves parking information or runs a given SQL query (w/ API key)
  • discord-bot: A simple discord bot that listens for messages and calls the completion manager
  • completion-manager: Checks safety of request, generates a SQL query and returns a human readable final answer Assume all code generated fully, mostly or in part by GPT3.5 or GPT4. Exact prompts used to generate or modify code will be added at a later date.

Sequence Diagram

User              Discord             ParkingSucksBot             CompletionAPI           ModerationEP                    GPT               Parking-API
 |                    |                    |                          |                         |                          |                     |
 |-------Log in------>|                    |                          |                         |                          |                     |
 |---Ask question---->|                    |                          |                         |                          |                     |
 |                    |-Forwards question->|                          |                         |                          |                     |
 |                    |                    |----Call CompletionAPI--->|                         |                          |                     |
 |                    |                    |                          |-->Validate API Key      |                          |                     |
 |                    |                    |                          |<-----------------|      |                          |                     |
 |                    |                    |                          |------Check Moderation-->|                          |                     |
 |                    |                    |                          |------------------Generate SQL Query--------------> |                     |
 |                    |                    |                          |<----------------Return SQL query-------------------|                     |
 |                    |                    |                          |-------------------------------Run SQL Query----------------------------->|
 |                    |                    |                          |<-----------------------------Return query results------------------------|
 |                    |                    |                          |--------------Generate final answer string--------->|                     |
 |                    |                    |                          |<------------Return answer String-------------------|                     |
 |                    |                    |<--Return answer via API--|                         |                          |                     |
 |                    |<--Display Answer---|                          |                         |                          |                     |

Prompts

TODO

Data scraped from SJSU Parking Spots

About

ParkingSucks, maybe we can make it suck a litle less.


Languages

Language:Python 97.3%Language:Dockerfile 2.7%