-
Notifications
You must be signed in to change notification settings - Fork 1
Staging #161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Staging #161
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -17,21 +17,27 @@ | |||||
| ### ER Diagram | ||||||
|
|
||||||
| <center> | ||||||
| <img src="./readme/demo/ERD.png"/> | ||||||
| <img src="./readme/demo/Diagrams/ERD.png"/> | ||||||
| </center> | ||||||
|
|
||||||
| ### Component Diagram | ||||||
|
|
||||||
| <center> | ||||||
| <img src="./readme/demo/Component Diagram 2.0.png"/> | ||||||
| <img src="./readme/demo/Diagrams/Component Diagram.png"/> | ||||||
| </center> | ||||||
|
|
||||||
| ### Flow Diagram | ||||||
|
|
||||||
| <center> | ||||||
| <img src="./readme/demo/Flow Diagram.png"/> | ||||||
| <img src="./readme/demo/Diagrams/Flow Diagram.png"/> | ||||||
| </center> | ||||||
|
|
||||||
| ### Project Box Design | ||||||
|
|
||||||
| | Power Box 1 | Power Box 2 | Power Box 3 | | ||||||
| | --------------------------------------- | ------------------------------------- | ------------------------------------- | | ||||||
| |  |  |  | | ||||||
|
|
||||||
| <br><br> | ||||||
|
|
||||||
| <!-- Project Highlights --> | ||||||
|
|
@@ -50,11 +56,20 @@ | |||||
| <!-- Demo --> | ||||||
| <img src="./readme/title5.svg"/> | ||||||
|
|
||||||
| ### User Screens (Mobile) | ||||||
| ### Client Screens (Web) | ||||||
|
|
||||||
| | Login screen | Register screen | | ||||||
| | --------------------------------------- | ------------------------------------- | | ||||||
| |  |  | | ||||||
|
|
||||||
|
|
||||||
|
|
||||||
| ### Provider Screens (Web) | ||||||
|
|
||||||
| | Login screen | Register screen | | ||||||
| | --------------------------------------- | ------------------------------------- | | ||||||
| |  |  | | ||||||
|
|
||||||
| | Login screen | Register screen | Register screen | | ||||||
| | --------------------------------------- | ------------------------------------- | ------------------------------------- | | ||||||
| |  |  |  | | ||||||
|
|
||||||
|
|
||||||
| ### Admin Screens (Web) | ||||||
|
|
@@ -69,27 +84,59 @@ | |||||
| <!-- Development & Testing --> | ||||||
| <img src="./readme/title6.svg"/> | ||||||
|
|
||||||
| ### Add Title Here | ||||||
| ### Code Test Cases | ||||||
|
|
||||||
|
|
||||||
| | Services | Validation | Testing | | ||||||
| | Test Case | Test Case | Test Case | | ||||||
| | --------------------------------------- | ------------------------------------- | ------------------------------------- | | ||||||
| |  |  |  | | ||||||
| |  |  |  | | ||||||
|
|
||||||
| ### GitHub Testing Pull Request | ||||||
|
|
||||||
| | GitHub Testing Pipeline | GitHub Pull Request | Testing Output | | ||||||
| | --------------------------------------- | ------------------------------------- | ------------------------------------- | | ||||||
| |  |  |  | | ||||||
|
|
||||||
| <br><br> | ||||||
|
|
||||||
| <!-- Deployment --> | ||||||
| <!-- AI-Power APP --> | ||||||
| <img src="./readme/title7.svg"/> | ||||||
|
|
||||||
| ### Add Title Here | ||||||
| ### OpenAI Intengration | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (typo): Typo in heading. Change "Intengration" to "Integration".
Suggested change
|
||||||
|
|
||||||
| - Description here. | ||||||
|
|
||||||
| | Prism Function Call | Prism Client Prompt | Prism Provider Prompt | | ||||||
| | --------------------------------------- | ------------------------------------- | ------------------------------------- | | ||||||
| |  |  |  | | ||||||
|
|
||||||
| ### Server Response with Database Indexing | ||||||
|
|
||||||
| - Provider user response time difference | ||||||
|
|
||||||
| | Postman API Before Indexing | Postman API After Indexing | | ||||||
| | --------------------------------------- | ------------------------------------- | | ||||||
| |  |  | | ||||||
|
|
||||||
| ### Server Response with Database Indexing | ||||||
|
|
||||||
| - Client user response time difference | ||||||
|
|
||||||
| | Postman API Before Indexing | Postman API After Indexing | | ||||||
| | --------------------------------------- | ------------------------------------- | | ||||||
| |  |  | | ||||||
|
|
||||||
| <br><br> | ||||||
|
|
||||||
| <!-- Deployment --> | ||||||
| <img src="./readme/title8.svg"/> | ||||||
|
|
||||||
| ### EC2 Docker containers deployment | ||||||
|
|
||||||
| - You can check the full API documentation using this [link](). | ||||||
|
|
||||||
| | Postman API 1 | Postman API 2 | Postman API 3 | | ||||||
| | Deployment Pipeline Sample | GitHub Deployment Pipeline Success | EC2 Instance docker deployed | | ||||||
| | --------------------------------------- | ------------------------------------- | ------------------------------------- | | ||||||
| |  |  |  | | ||||||
| |  |  |  | | ||||||
|
|
||||||
| <br><br> | ||||||
|
|
||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,24 +45,6 @@ public static function providerBuildPromptFromMetrics(): string | |
| $metricsText | ||
| EOT; | ||
|
|
||
|
|
||
| // $prompt = <<<EOT | ||
| // You are an AI assistant that analyzes monthly energy usage metrics collected from all devices and generates structured, high-level, and **detailed** reports. | ||
|
|
||
| // Based on the following aggregated readings from multiple devices, provide a **rich and insightful** analysis including: | ||
|
|
||
| // - **Performance Summary** — An extended overview highlighting cross-device trends, seasonal variations, and overall energy behaviors. | ||
| // - **Voltage Insights** — Examine voltage range stability across all devices, flag irregularities, and suggest potential issues or improvements. | ||
| // - **Power Usage Insights** — Detect usage intensity trends, major consumption periods, and possible inefficiencies. | ||
| // - **Energy Usage Insights** — Highlight general usage profiles, identify spikes, valleys, and time-based variations across devices. | ||
| // - **Actionable Recommendations** — List meaningful, technical, and scalable actions to optimize energy usage and monitoring (each starting on a new line with a bullet point), and **do not refer to specific device IDs**. | ||
|
Comment on lines
-49
to
-58
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (bug_risk): Prompt template removed, losing context instructions Restore or adjust the template to include the AI assistant instructions; if returning only metrics was intentional, please confirm it still meets requirements. |
||
|
|
||
| // Be as detailed as possible. This report is meant for energy analysts and system operators. | ||
|
|
||
| // Data: | ||
| // $metricsText | ||
| // EOT; | ||
|
|
||
| return $prompt; | ||
| } | ||
| } | ||
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: Placeholder or unclear alt text for image.
Update the
![fsdaf]alt text to something descriptive like![Register screen]. Also update the corresponding entry in the 'Provider Screens (Web)' section.