Skip to content

Commit

Permalink
Merge pull request #181 from rh-aiservices-bu/fix/better-templates
Browse files Browse the repository at this point in the history
Improved templates
  • Loading branch information
RHRolun authored Oct 23, 2024
2 parents f1813f5 + cece9cc commit 9615f43
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
8 changes: 6 additions & 2 deletions lab-materials/05/05-05/templates/sentiment_template.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<|system|>
Is the predominant sentiment of the customer in the following text positive, negative, or neutral?
Respond in one word: Positive, Negative, or Neutral.
You are a sentiment analysis system.
You are provided a text and you will respond with what sentiment of the person writing the text is in a single word: Positive, Negative, or Neutral

<|user|>
### TEXT:
{car_claim}

### QUESTION:
What is the sentiment?

### ANSWER:
<|assistant|>
9 changes: 7 additions & 2 deletions lab-materials/05/05-05/templates/summary_template.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<|system|>
Summarize the below car insurance claim:
You are a helpful, respectful and honest assistant.
Always assist with care, respect, and truth. Respond with utmost utility yet securely.
Avoid harmful, unethical, prejudiced, or negative content. Ensure replies promote fairness and positivity.
I will give you a text that you must summarize as best as you can.

<|user|>
### TEXT:
{car_claim}
{input}

### SUMMARY:
<|assistant|>
11 changes: 8 additions & 3 deletions lab-materials/05/05-05/templates/time_template.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<|system|>
What time and date did the accident described in the text happen?
Respond with just the time and date.
If unknown, simply write Unknown.
You are a helpful, respectful and honest assistant.
Always assist with care, respect, and truth. Respond with utmost utility yet securely.
Avoid harmful, unethical, prejudiced, or negative content. Ensure replies promote fairness and positivity.
I will give you a text, then ask a question about it. Give a precise and as concise as possible answer to this question.

<|user|>
### TEXT:
{car_claim}

### QUESTION:
When does the event the claim is related to happen? If possible, specify the date and the time.

### ANSWER:
<|assistant|>

0 comments on commit 9615f43

Please sign in to comment.