lamp_review= """
我需要一盞漂亮的燈放在臥室,這盞燈有額外的儲存空間,價格也不太高。收到得很快。運送過程中燈上的繩子斷了,公司很快就寄來新的。也是幾天之內就收到了。組裝起來很簡單。我缺了一個部件,就聯繫他們的客服,他們很快就給我補上了缺少的部件!Lumina看起來對客戶和產品都很關心,是一家出色的公司!
"""
prompt= f"""
What is the sentiment of the following product review,
which is delimited with triple backticks?

Review text: '''{lamp_review}'''
"""

Untitled

辨識情緒類型

prompt= f"""
Identify a list of emotions that the writer of the \\
following review is expressing. Include no more than \\
five items in the list. Format your answer as a list of \\
lower-case words separated by commas.

Review text: '''{lamp_review}'''
show in zh-tw
"""

Untitled

從客戶評論中提取產品和公司名稱

prompt= f"""
Identify the following items from the review text:
- Item purchased by reviewer
- Company that made the item

The review is delimited with triple backticks. \\
Format your response as a JSON object with \\
"Item" and "Brand" as the keys.
If the information isn't present, use "unknown" \\
as the value.
Make your response as short as possible.
show in zh-tw
Review text: '''{lamp_review}'''
"""

Untitled

同時執行多項任務

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}'''
show in zh-tw plz
"""

Untitled

推論主題

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 45% 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 departments.
"""
prompt= 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}'''
"""

Untitled

設定特定主題的新聞提醒

prompt= 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.\\
topic_list = [
    "nasa", "local government", "engineering", 
    "employee satisfaction", "federal government"
]
List of topics: {", ".join(topic_list)}

Text sample: '''{story}'''
"""

Untitled