Upload 2 files
Browse files- Review Duel.txt +41 -0
- Sentence Duel.txt +43 -0
Review Duel.txt
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[Prompt]
|
| 2 |
+
|
| 3 |
+
Generate a webapp for doing a metaphor battle with an LLM (Gemini 1.5 Flash) through poetry review.
|
| 4 |
+
A human user writes a critical summary of a poem and the model also comments on it. Finally, the model assesses which analysis is more attractive. Below are specific guidelines for the page on the webapp:
|
| 5 |
+
(1) The tile of the page: “Enhance Your Metaphorical Imagination through
|
| 6 |
+
Poetry Review Battle”
|
| 7 |
+
(2) Craft four input text boxes: Be careful with the order of the workflow:
|
| 8 |
+
“Input a Poem”--> (Submit)
|
| 9 |
+
“Human Review” -->(Submit)
|
| 10 |
+
“AI Review“-->(The model auto-generates)
|
| 11 |
+
”AI Judgment.“ (The model auto-generates)
|
| 12 |
+
(3) Add each ”Submit“ button directly below the ”Input a Poem“ and ”Human
|
| 13 |
+
Review“ buttons.
|
| 14 |
+
(4) Make two additional buttons at the center bottom of the page: Right
|
| 15 |
+
below the last text box “AI Judgment,” create the “New Start” button on
|
| 16 |
+
the left and the “Reset Scores” button on the right. (Clicking the “Reset
|
| 17 |
+
Scores” button results in all inputs being cleared.)
|
| 18 |
+
(5) Generate scoring records: “Human Wins,” “AI Wins,” and “Ties”
|
| 19 |
+
(6) Guidelines for AI’s review:
|
| 20 |
+
(a) The model’s criticism is composed of four sentences where two out of
|
| 21 |
+
them should be non-metaphorical, prosaic explanations and the rest
|
| 22 |
+
should include metaphorical expressions.
|
| 23 |
+
(b) Metaphorical words should be written in uppercase.
|
| 24 |
+
(c) The maximum number of words for each sentence is 20.
|
| 25 |
+
(d) While writing a poetry analysis, the model should not know about the human competitor’s writing
|
| 26 |
+
to preserve impartiality.
|
| 27 |
+
(7) Writing Principles for the model’s judgment:
|
| 28 |
+
(a) The model ought to evaluate which comment is more persuasive based
|
| 29 |
+
on how well it conveys appropriate analysis and creative metaphor.
|
| 30 |
+
(b) The model’s assessment should be written in three concise sentences
|
| 31 |
+
to explain why it makes such a decision.
|
| 32 |
+
(8) Temperature Setting: Set temperature to 0.7 for the model’s review and
|
| 33 |
+
to 0.3 for its judgment.
|
| 34 |
+
(9) Color Specifications:
|
| 35 |
+
Background of the page: Light Green
|
| 36 |
+
Title: Blue
|
| 37 |
+
Four input text boxes:
|
| 38 |
+
“Human Review”-> Light Yellow; “AI Review”->Light Gray; “AI Judgment->
|
| 39 |
+
Light Pink->“New Start”->Purple
|
| 40 |
+
“New Round”: Red
|
| 41 |
+
Scoring: “Human Wins”->Violet, “AI Wins”->Mustard, “Ties”->Ivory
|
Sentence Duel.txt
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
[Prompt]
|
| 3 |
+
|
| 4 |
+
Generate a webapp for doing a metaphor battle with an LLM (GPT-3.5
|
| 5 |
+
Turbo). A human user comes up with a metaphorical sentence and then the
|
| 6 |
+
model creates another one. Finally, the model assesses which one is more
|
| 7 |
+
attractive. Below are specific guidelines for the page at the webapp:
|
| 8 |
+
(1) The tile of the page: “Metaphor Battle Game: Boost Your Metaphorical
|
| 9 |
+
Creativity”
|
| 10 |
+
(2) Craft four input text boxes: “Topic,” “Human,” “AI, “ and ”AI Judgment.“
|
| 11 |
+
(Position each ‘Submit’ button directly below the ”Topic“ and ”Human“ input
|
| 12 |
+
boxes.)
|
| 13 |
+
(3) Add two additional buttons: “New Battle” and “Reset Scores.“ Directly
|
| 14 |
+
below the last text box “AI Judgment,” build the “New Battle” button on
|
| 15 |
+
the left and “Reset Scores” on the right.
|
| 16 |
+
(4) Generate scoring records: “Human Wins,” “AI Wins,” and “Ties”
|
| 17 |
+
(5) Guidelines for the model’s sentence generation:
|
| 18 |
+
(a) Limit the number of words in the range of 12 to 15.
|
| 19 |
+
(b) While writing a metaphorical sentence, the model should not know
|
| 20 |
+
about what sentence a human participant has suggested to maintain
|
| 21 |
+
fairness.
|
| 22 |
+
(6) Temperature Setting: Set temperature to 0.7 for the model’s sentence
|
| 23 |
+
generation and to 0.3 for the model’s judgment.
|
| 24 |
+
(7) Color Specifications:
|
| 25 |
+
Background of the page: Light Blue
|
| 26 |
+
Title: Cyan
|
| 27 |
+
Four Input Text Boxes:
|
| 28 |
+
“Topic”->White, “Human”->Light Yellow, “AI”->Light Gray
|
| 29 |
+
“Submit” button: Green
|
| 30 |
+
“AI Judgment”: Light Pink
|
| 31 |
+
“New Battle” Button->Purple; “Reset Scores” Button->Red
|
| 32 |
+
Scoring: “Human Wins”->Yellow, “AI Wins”->Teal, “Ties”->Orange
|
| 33 |
+
|
| 34 |
+
----Notes---------------
|
| 35 |
+
*(6) Temperature setting:
|
| 36 |
+
Considering API key pricing, it is recommended to opt for GPT 3.5-Turbo rather than GPT 4.0,
|
| 37 |
+
as it is extremely cheaper. GPT 3.5-Turbo was open to the public on January 2024. Its key is available through the OpenAI API Service.
|
| 38 |
+
|
| 39 |
+
*To make an instant-response duel possible, you ought to issue one of LLM API keys, so I selected GPT-3.5 Turbo.
|
| 40 |
+
You should also be careful to limit the number of words in an input sentence, preferably 15.
|
| 41 |
+
If you do not set this word limit, the model would respond verbosely. Here is the screenshot of my webapp page.
|
| 42 |
+
|
| 43 |
+
*In building a webapp for this exercise, it could be beneficial to make good use of coding tools for making a webapp. I used Claude Code.
|