Solution: Techniques of Prompting
Understand the solutions to the prompting techniques challenges.
We'll cover the following...
Extracting product specifications
This task requires us to extract information in a specific format. We know that few-shot prompting is a great way to guide the model to respond to our expectations. A one-shot prompt will be sufficient as the format is CSV, and LLMs can easily understand it.
Prompt |
Description: The phone's storage is 64GB. The memory is 6GB. The camera is 24MP. The battery life is 24 hours. The display is 6 inches. Output: camera,storage,ram,battery,display 24,64,6,24,6 Description: The smartphone is equipped with an exceptional 48MP camera that captures stunning photos and videos with remarkable clarity and detail. With a battery life of up to 48 hours, you can confidently go through your day without worrying about running out of power. The ample storage space of 128GB ensures you have plenty of room for your apps, photos, and files. Coupled with 8GB of RAM, this smartphone offers smooth multitasking and responsive performance. The immersive 7-inch display brings your content to life with vibrant colors and sharp visuals. Output: |
Explanation:
We first create a new product description. It is simple and ...