0% found this document useful (0 votes)
4 views

Prompt Engineering Assignment - Weather Application

Uploaded by

harshal ingle
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Prompt Engineering Assignment - Weather Application

Uploaded by

harshal ingle
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Prompt Engineering Assignment: Weather Application

Objective:
The goal of this assignment is to practice prompt engineering by developing a simple Weather application
using an LLM (preferably ChatGPT 4o). You will follow the provided guidelines to write prompts
sequentially, generate the required code, and build a functional application. The application can be run on
your local host or deployed using Render for cloud deployment.

Problem Statement:
You are tasked with developing a simple Weather application. The application should provide the following
functionalities:

- User Input: Allow users to input the name of a city.


- Weather Data Retrieval: Fetch current weather data for the specified city using a weather API.
- Display Weather Information: Display the weather information, including temperature, humidity,
wind speed, and weather conditions.
- Responsive Design: Ensure the application is responsive and works well on different devices.
- Error Handling: Handle cases where the city name is invalid or the weather data cannot be
retrieved.

Assignment Tasks:

1. Problem Statement Definition:


- Clearly define the main objective of the Weather application.
- Be specific about the problem you are solving (e.g., providing real-time weather information to
users).
- Identify the target users and their needs (e.g., users who want to check the weather for any
city).

2. Research Prompt:
- Use AI tools and other resources to gather necessary information and tools.
- Identify the key resources required for the project (e.g., weather APIs, libraries, frameworks).
- Use AI tools like ChatGPT for preliminary research and gathering information.
- Ensure the sources are reliable and up-to-date.

3. Coding - Functionality Prompts:


- Detail the core functionalities and technical requirements of the project.
- Break down the project into smaller manageable coding tasks.
- Specify any APIs or libraries to be used (e.g., OpenWeatherMap API for weather data).
- Ensure code optimization for performance and efficiency.

4. Coding - Interface and UX Prompts:


- Ensure the application has a user-friendly interface and follows good UX practices.
- Follow design standards and guidelines (e.g., Material Design, Human Interface Guidelines).
- Ensure the application is intuitive and easy to use.
- Incorporate responsive design to support various devices.

5. Testing and Validation Prompts:


- Ensure the application is thoroughly tested and free of major bugs.
- Create comprehensive test cases covering all functionalities.
- Implement both manual and automated testing.
- Validate data and handle errors gracefully.

6. Performance Optimization Prompts:


- Ensure the application performs efficiently under various conditions.
- Identify performance bottlenecks.
- Optimize API calls and data handling.
- Use caching and other performance enhancement techniques.

7. Scalability Planning Prompts:


- Ensure the application can scale to meet increasing demand.
- Plan for horizontal and vertical scaling.
- Implement load balancing.
- Use cloud services for scalable infrastructure.

8. Deployment and Maintenance Prompts:


- Guide the deployment and ongoing maintenance of the application.
- Choose an appropriate platform for deployment (e.g., Render for cloud deployment).
- Plan for regular updates and maintenance.
- Monitor application performance and user feedback for continuous improvement.

9. Security and Compliance Prompts:


- Ensure the application meets security and compliance standards.
- Implement secure coding practices.
- Ensure compliance with relevant regulations.
- Conduct regular security audits.

10. Documentation and Reporting Prompts:


- Ensure comprehensive documentation and regular reporting on the project's progress.
- Document the codebase, APIs, and user guides.
- Create regular progress reports and updates.
- Use documentation tools and platforms for collaboration.

11. User Feedback and Iteration Prompts:


- Continuously improve the application based on user feedback.
- Collect user feedback regularly.
- Prioritize feature requests and bug fixes.
- Iterate on the application design and functionality.

Submission Requirements:
- Prompts Document: A detailed document for each prompt section, explaining your thought
process, decisions made, and the prompts you created.
- Application Code: A working prototype of the Weather application with the core
functionalities implemented.
- Deployment: The application running on your local host or deployed using Render.

Evaluation Criteria:
- Completeness and Clarity: The clarity and comprehensiveness of the problem statement.
- Research and Resource Gathering: The effectiveness of research and the quality of
resources gathered.
- Functional Prompts: The precision and functionality of coding prompts.
- User Interface and UX: The quality of user interface and adherence to UX best practices.
- Testing and Validation: The thoroughness of testing and validation prompts.
- Performance Optimization: The efficiency of performance optimization prompts.
- Scalability Planning: The robustness of scalability planning prompts.
- Deployment and Maintenance: The soundness of deployment and maintenance prompts.
- Security and Compliance: Adherence to security and compliance standards.
- Documentation and Reporting: The quality and comprehensiveness of documentation and
reporting prompts.
- User Feedback and Iteration: The responsiveness to user feedback and iteration prompts.

Prompt Writing
Guidelines

1. Be specific about the problem you are


trying to solve.
Problem Statement Clearly define the main 2. Ensure the statement is clear and
Definition objective of the project. concise.
3. Identify the target users and their
needs.
1. Identify the key resources required for
the project (APIs, libraries, frameworks).
Utilize AI tools and other
2. Use AI tools like ChatGPT for
resources to gather
Research Prompt preliminary research and gathering
necessary information
information.
and tools.
3. Ensure the sources are reliable and
up-to-date.
1. Break down the project into smaller,
Detail the core manageable coding tasks.
Coding - Functionality functionalities and 2. Specify any APIs or libraries to be
Prompts technical requirements of used.
the project. 3. Ensure code optimization for
performance and efficiency.
1. Follow design standards and
guidelines (e.g., Material Design, Human
Ensure the application
Interface Guidelines).
Coding - Interface and has a user-friendly
2. Ensure the application is intuitive and
UX Prompts interface and follows
easy to use.
good UX practices.
3. Incorporate responsive design to
support various devices.
1. Create comprehensive test cases
covering all functionalities.
Ensure the application is
Testing and Validation 2. Implement both manual and
thoroughly tested and
Prompts automated testing.
free of major bugs.
3. Validate data and handle errors
gracefully.
1. Identify performance bottlenecks.
Ensure the application 2. Optimize database queries and data
Performance
performs efficiently under handling.
Optimization Prompts
various conditions. 3. Use caching and other performance
enhancement techniques.
1. Plan for horizontal and vertical scaling.
Ensure the application
Scalability Planning 2. Implement load balancing.
can scale to meet
Prompts 3.Use cloud services for scalable
increasing demand.
infrastructure.
1. Choose an appropriate platform for
deployment (e.g., AWS, Heroku, Render).
Guide the deployment 2. Plan for regular updates and
Deployment and
and ongoing maintenance maintenance.
Maintenance Prompts
of the application. 3. Monitor application performance and
user feedback for continuous
improvement.
1. Implement secure coding practices.
Ensure the application
Security and Compliance 2. Ensure compliance with relevant
meets security and
Prompts regulations (e.g., GDPR, HIPAA).
compliance standards.
3. Conduct regular security audits.
1. Document the codebase, APIs, and
Ensure comprehensive user guides.
Documentation and documentation and 2. Create regular progress reports and
Reporting Prompts regular reporting on the updates.
project's progress. 3. Use documentation tools and
platforms for collaboration.
1. Collect user feedback regularly.
Continuously improve the 2. Prioritize feature requests and bug
User Feedback and
application based on user fixes.
Iteration Prompts
feedback. 3. Iterate on the application design and
functionality.

You might also like