From 4c8f0c43f363ac28498de9f867b8cab034ecfc69 Mon Sep 17 00:00:00 2001 From: rodrigoabreu56 Date: Thu, 18 May 2023 13:44:22 -0500 Subject: [PATCH 1/2] Create prompt2.md --- prompt2.md | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 prompt2.md diff --git a/prompt2.md b/prompt2.md new file mode 100644 index 000000000..83f95da6e --- /dev/null +++ b/prompt2.md @@ -0,0 +1,64 @@ +# Revised Political Campaign CRM Program Specification + +## Overview +The purpose of this CRM system is to efficiently manage and track voters, their intentions, referrals, and requests for a political campaign. The back end of this system will be implemented in Python using the SQLite3 database, while the front end will use the Tailwind CSS framework. The system will include an authentication system and will be designed for cloud deployment. + +## Functional Requirements + +### Voters + +1. **Add/Remove/Update Voters:** The system should allow CRUD (Create, Read, Update, Delete) operations on voter records. Each voter record will include the following fields: + - Voter ID (auto-generated) + - Full Name + - Date of Birth + - Phone Number + - Email + - Instagram + - Facebook + - Key Issues (one or more from list: Healthcare, Public Safety, Transportation, Education, Corruption, Jobs, Economy) + - Data Consent (Yes/No) + - Address + - Location (geographic coordinates for map view) + - Referral (the person who referred this voter, if any) + - Vote Intent (Yes, No, Maybe) + +2. **Track Referrals:** The system should allow tracking who referred which voters. This can be done by linking the referrer to the referred voter(s) in the database. + +3. **Voter List View:** The system should provide a list view where users can see all voters and their details. This list should support sorting and filtering options. + +### Voter Requests + +4. **Add/Remove/Update Voter Requests:** The system should allow CRUD operations on voter requests. Each voter request will include the following fields: + - Request ID (auto-generated) + - Name + - Description + - Associated Voter (linked via Voter ID) + - Date Submitted + - Location + - Status (Not Started, In Progress, Completed_Success, Completed_Failure) + +5. **Request List and Kanban View:** Users should be able to see voter requests in a list view as well as in a kanban or pipeline view, sorted by status. + +### Map View + +6. **Map View of Voters:** The system should provide a map view where users can see all voters as points on the map. Users should be able to input a location and a radius and view all voters within that radius. This view should support filtering based on voter attributes. + +### Authentication System + +7. **User Login and Authentication:** The system should have a secure login and authentication system for users. + +## Non-Functional Requirements + +1. **Performance:** The system should be able to handle a large number of voters and requests, with quick response times for database queries. + +2. **Usability:** The interface should be user-friendly, making it easy for users to navigate through different views and perform actions. + +3. **Scalability:** The system should be scalable to support the addition of new voters and requests. + +4. **Cloud Deployment:** The system should be designed for cloud deployment, allowing it to be easily set up and run on a cloud platform. Preferrably Digital Ocean. + +## Technology Stack + +- Back-end: Python, SQLite3 +- Front-end: HTML, CSS (Tailwind), JavaScript (for interactive elements) + From 231968ab6d037c9c6cf28af0eaa5610878f39099 Mon Sep 17 00:00:00 2001 From: rodrigoabreu56 Date: Thu, 18 May 2023 13:47:12 -0500 Subject: [PATCH 2/2] Update main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 402f685e0..b78389ced 100644 --- a/main.py +++ b/main.py @@ -19,7 +19,7 @@ initial_delay=1.0, ), # concurrency_limit=5, - # timeout=120, + timeout=1200, ) def generate_response(system_prompt, user_prompt, *args): import openai