lamp_review = f""" Needed a nice lamp for my bedroom, and this one had \ additional storage and not too high of a price point./ Got it fast. The string to our lamp broke during the transit and the company happily sent over a new one.\ Came within a fev days as well. It was easy to put\ together. I had a missing part, so I contacted their \ support and they very quickly got me the missing piece! \ Lumina seems to me to be a great company that cares \ about their customers and products!! """
prompt = f""" Identify the following items from the review text: - Sentiment (positive or negative) - Is the reviewer expressing anger? (true or false) - Item purchased by reviewer - Company that made the item The review is delimited with triple backticks. \ Format your response as a JSON object with \ "Sentiment","Anger","Item" and "Brand" as the keys. If the information isn't present,use "unknown"\ as the value. Make your response as short as possible. Format the Anger value as a boolean. Review text:'''{lamp_review}''' """
story = """In a recent survey conducted by the government, public sector employees were asked to rate their level of satisfaction with the department they work at. The results revealed that NASA was the most popular department with a satisfaction rating of 95%. One NASA employee,John Smith, commented on the findings, stating, "I'm not surprised that NASA came out on top. It's a great place to work with amazing people and incredible opportunities. I'm proud to be a part of such an innovative organization."| The results were also welcomed by NASA's management team, with Director Tom Johnson stating, "we are thrilled to hear that our employees are satisfied with their work at NASA We have a talented and dedicated team who work tirelessly to achieve our goals,and it's fantastic to see that their hard work is paying off." The survey also revealed that the Social Security Administration had the lowest satisfaction rating,with only 458 of employees indicating they were satisfied with their job. The government has pledged to address the concerns raised by employees in the survey and work towards improving job satisfaction across all department """
prompt_2 = f""" Determine five topics that are being discussed in the \ following text, which is delimited by triple backticks. Make each item one or two words long. Format your response as a list of items separated by commas. Text sample:'''{story}''' """
prompt_3 = f""" Determine whether each item in the following list of \ topics is a topic in the text below, which is delimited with triple backticks. Give your answer as list with 0 or 1 for each topic.\ List of topics: {",".join(topic_1ist)} Texi sample: '''{story}''' """
To determine whether each topic in the listis present in the given text, we need to check for mentions or discussions related to each topic. Here's the analysis: 1. **Government survey**: The text begins with "In a recent survey conducted by the government," which directly mentions a government survey. - **Answer**: 1 2. **NASA satisfaction rating**: The text states that "NASA was the most popular department with a satisfaction rating of 95%," and includes comments from a NASA employee and its director. - **Answer**: 1 3. **Social Security Administration satisfaction**: The text mentions that "the Social Security Administration had the lowest satisfaction rating, with only 45% of employees indicating they were satisfied." - **Answer**: 1 4. **Employee comments**: The text includes direct quotes from a NASA employee (John Smith) and NASA's Director (Tom Johnson). - **Answer**: 1
5. **Government improvement plans**: The text states that "the government has pledged to address the concerns raised by employees in the survey and work towards improving job satisfaction across all departments." - **Answer**: 1