poml 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +239 -0
- data/TUTORIAL.md +987 -0
- data/bin/poml +80 -0
- data/examples/101_explain_character.poml +30 -0
- data/examples/102_render_xml.poml +40 -0
- data/examples/103_word_todos.poml +27 -0
- data/examples/104_financial_analysis.poml +33 -0
- data/examples/105_write_blog_post.poml +48 -0
- data/examples/106_research.poml +36 -0
- data/examples/107_read_report_pdf.poml +4 -0
- data/examples/201_orders_qa.poml +50 -0
- data/examples/202_arc_agi.poml +36 -0
- data/examples/301_generate_poml.poml +46 -0
- data/examples/README.md +50 -0
- data/examples/_generate_expects.py +35 -0
- data/examples/assets/101_jerry_mouse.jpg +0 -0
- data/examples/assets/101_tom_and_jerry.docx +0 -0
- data/examples/assets/101_tom_cat.jpg +0 -0
- data/examples/assets/101_tom_introduction.txt +9 -0
- data/examples/assets/103_prompt_wizard.docx +0 -0
- data/examples/assets/104_chart_normalized_price.png +0 -0
- data/examples/assets/104_chart_price.png +0 -0
- data/examples/assets/104_mag7.xlsx +0 -0
- data/examples/assets/107_usenix_paper.pdf +0 -0
- data/examples/assets/201_order_instructions.json +7 -0
- data/examples/assets/201_orderlines.csv +2 -0
- data/examples/assets/201_orders.csv +3 -0
- data/examples/assets/202_arc_agi_data.json +1 -0
- data/examples/expects/101_explain_character.txt +117 -0
- data/examples/expects/102_render_xml.txt +28 -0
- data/examples/expects/103_word_todos.txt +121 -0
- data/examples/expects/104_financial_analysis.txt +86 -0
- data/examples/expects/105_write_blog_post.txt +41 -0
- data/examples/expects/106_research.txt +29 -0
- data/examples/expects/107_read_report_pdf.txt +151 -0
- data/examples/expects/201_orders_qa.txt +44 -0
- data/examples/expects/202_arc_agi.txt +64 -0
- data/examples/expects/301_generate_poml.txt +153 -0
- data/examples/ruby_expects/101_explain_character.txt +17 -0
- data/examples/ruby_expects/102_render_xml.txt +28 -0
- data/examples/ruby_expects/103_word_todos.txt +14 -0
- data/examples/ruby_expects/104_financial_analysis.txt +0 -0
- data/examples/ruby_expects/105_write_blog_post.txt +57 -0
- data/examples/ruby_expects/106_research.txt +5 -0
- data/examples/ruby_expects/107_read_report_pdf.txt +403 -0
- data/examples/ruby_expects/201_orders_qa.txt +41 -0
- data/examples/ruby_expects/202_arc_agi.txt +17 -0
- data/examples/ruby_expects/301_generate_poml.txt +17 -0
- data/lib/poml/components/base.rb +132 -0
- data/lib/poml/components/content.rb +156 -0
- data/lib/poml/components/data.rb +346 -0
- data/lib/poml/components/examples.rb +55 -0
- data/lib/poml/components/instructions.rb +93 -0
- data/lib/poml/components/layout.rb +50 -0
- data/lib/poml/components/lists.rb +82 -0
- data/lib/poml/components/styling.rb +36 -0
- data/lib/poml/components/text.rb +8 -0
- data/lib/poml/components/workflow.rb +63 -0
- data/lib/poml/components.rb +47 -0
- data/lib/poml/components_new.rb +297 -0
- data/lib/poml/components_old.rb +1096 -0
- data/lib/poml/context.rb +53 -0
- data/lib/poml/parser.rb +153 -0
- data/lib/poml/renderer.rb +147 -0
- data/lib/poml/template_engine.rb +66 -0
- data/lib/poml/version.rb +5 -0
- data/lib/poml.rb +53 -0
- data/media/logo-16-purple.png +0 -0
- data/media/logo-64-white.png +0 -0
- metadata +149 -0
@@ -0,0 +1,117 @@
|
|
1
|
+
===== system =====
|
2
|
+
|
3
|
+
# Role
|
4
|
+
|
5
|
+
You are a teacher explaining figures to kids.
|
6
|
+
|
7
|
+
# Task
|
8
|
+
|
9
|
+
Please describe the figure first and then provide background knowledge to help kids understand the figure.
|
10
|
+
|
11
|
+
# Output Format
|
12
|
+
|
13
|
+
Please write your response in a friendly tone.
|
14
|
+
|
15
|
+
# Background Knowledge
|
16
|
+
|
17
|
+
Tom and Jerry
|
18
|
+
|
19
|
+
Tom and Jerry is an American animated media franchise and series of comedy short films created in 1940 by William Hanna and Joseph Barbera. Best known for its 161 theatrical short films by Metro-Goldwyn-Mayer, the series centers on the enmity between the titular characters of a cat named Tom and a mouse named Jerry. Many shorts also feature several recurring characters.
|
20
|
+
|
21
|
+
In its original run, Hanna and Barbera produced 114 Tom and Jerry shorts for MGM from 1940 to 1958.[1] During this time, they won seven Academy Awards for Best Animated Short Film, tying for first place with Walt Disney's Silly Symphonies with the most awards in the category. After the MGM cartoon studio closed in 1957, MGM revived the series with Gene Deitch directing an additional 13 Tom and Jerry shorts for Rembrandt Films in Czechoslovakia from 1961 to 1962. Tom and Jerry became the highest-grossing animated short film series of that time, overtaking Looney Tunes. Chuck Jones produced another 34 shorts with Sib Tower 12 Productions between 1963 and 1967. Five more shorts have been produced since 2001, making a total of 166 shorts.
|
22
|
+
|
23
|
+
A number of spin-offs have been made, including the television series The Tom and Jerry Show (1975), The Tom and Jerry Comedy Show (1980–1982), Tom & Jerry Kids (1990–1993), Tom and Jerry Tales (2006–2008), and The Tom and Jerry Show (2014–2021). In 1992, the first feature-length film based on the series, Tom and Jerry: The Movie, was released. 13 direct-to-video films have been produced since 2002. In 2019, a musical adaptation of the series, titled Tom and Jerry: Purr-Chance to Dream, debuted in Japan, in advance of Tom and Jerry's 80th anniversary. In 2021, a live-action/animated hybrid film was released.
|
24
|
+
|
25
|
+
## Plot
|
26
|
+
|
27
|
+
The series features comic fights between an iconic set of adversaries, a house cat (Tom) and a house mouse (Jerry). The plots of many shorts are often set in the backdrop of a house, centering on Tom (who is often enlisted by a human) trying to capture Jerry, and the mayhem and destruction that follows. Tom rarely succeeds in catching Jerry, mainly because of Jerry's cleverness, cunning abilities, and luck. However, on several occasions, they have displayed genuine friendship and concern for each other's well-being. At other times, the pair set aside their rivalry in order to pursue a common goal, such as when a baby escapes the watch of a negligent babysitter, causing Tom and Jerry to pursue the baby and keep it away from danger, in the shorts Busy Buddies and Tot Watchers respectively. Despite their endless attacks on one another, they have saved each other's lives every time they were truly in danger, except in The Two Mouseketeers, which features an uncharacteristically morbid ending, and Blue Cat Blues, where both sit on a railroad track at the end after being jilted by girlfriends. The cartoon irises out with the whistle of an oncoming steam train.
|
28
|
+
|
29
|
+
The cartoons are known for some of the most violent cartoon gags ever devised in theatrical animation: Tom may use axes, hammers, firearms, firecrackers, explosives, traps and poison to kill Jerry. Jerry's methods of retaliation are far more violent, with frequent success, including slicing Tom in half, decapitating him, shutting his head or fingers in a window or a door, stuffing Tom's tail in a waffle iron or a mangle, kicking him into a refrigerator, getting him electrocuted, pounding him with a mace, club or mallet, letting a tree or electric pole drive him into the ground, sticking matches into his feet and lighting them, tying him to a firework and setting it off, and so on.[2] While Tom and Jerry has often been criticized as excessively violent, there is no blood or gore in any scene.[3]: 42 [4]: 134
|
30
|
+
|
31
|
+
Music plays a very important part in the shorts, emphasizing the action, filling in for traditional sound effects, and lending emotion to the scenes. Musical director Scott Bradley created complex scores that combined elements of jazz, classical, and pop music. Bradley often used contemporary pop songs and songs from other films, including MGM films like The Wizard of Oz and Meet Me in St. Louis.
|
32
|
+
|
33
|
+
Even though Tom and Jerry almost never speak, the shorts also often had dialogue from other characters. Minor characters are not similarly limited, and the two lead characters speak English on rare occasions. For example, the character Mammy Two Shoes has lines in nearly every cartoon in which she appears. Most of the vocal effects used for Tom and Jerry are their high-pitched laughs and gasping screams.
|
34
|
+
|
35
|
+
## Characters
|
36
|
+
|
37
|
+
Tom and Jerry
|
38
|
+
|
39
|
+
Main articles: Tom Cat and Jerry Mouse
|
40
|
+
|
41
|
+
Tom, named "Jasper" in his debut appearance, is a gray and white domestic shorthair cat. "Tom" is a generic name for a male cat. He is usually but not always, portrayed as living a comfortable, or even pampered life, while Jerry, whose name is not explicitly mentioned in his debut appearance, is a small, brown house mouse who always lives in close proximity to Tom. Despite being very energetic, determined and much larger, Tom is no match for Jerry's wits. Jerry possesses surprising strength for his size, approximately the equivalent of Tom's, lifting items such as anvils with relative ease and withstanding considerable impacts.[5]
|
42
|
+
|
43
|
+
Although cats typically chase mice to eat them, it is quite rare for Tom to actually try to eat Jerry. He tries to hurt or compete with him just to taunt Jerry, even as revenge, or to obtain a reward from a human, including his owner(s)/master(s), for catching Jerry, or for generally doing his job well as a house cat. By the final "fade-out" of each cartoon, Jerry usually gets the best of Tom.
|
44
|
+
|
45
|
+
Other results may be reached. On rare occasions, Tom triumphs, usually when Jerry becomes the aggressor or he pushes Tom a little too far. In The Million Dollar Cat, Jerry learns that Tom will lose his newly acquired wealth if he harms any animal, especially mice. He then torments Tom a little too much until he retaliates. In Timid Tabby Tom's look-alike cousin pushes Jerry over the edge. Occasionally and usually ironically, they both lose, usually because Jerry's last trap or attack on Tom backfires on him or he overlooks something. In Chuck Jones' Filet Meow, Jerry orders a shark from the pet store to scare Tom away from eating a goldfish. Afterward, the shark scares Jerry away as well. They occasionally end up being friends, although there is often a last-minute event that ruins the truce. One cartoon that has a friendly ending is Snowbody Loves Me.
|
46
|
+
|
47
|
+
Both characters display sadistic tendencies, in that they are equally likely to take pleasure in tormenting each other, although it is often in response to a triggering event. However, when one character appears to truly be in mortal danger from an unplanned situation or due to actions by a third party, the other will develop a conscience and save him. Occasionally, they bond over a mutual sentiment towards an unpleasant experience and their attacking each other is more play than serious attacks. Multiple shorts show the two getting along with minimal difficulty, and they are more than capable of working together when the situation calls for it, usually against a third party who manages to torture and humiliate them both.
|
48
|
+
|
49
|
+
Sometimes this partnership is forgotten quickly when an unexpected event happens, or when one character feels that the other is no longer necessary. This is the case in Posse Cat, when they agree that Jerry will allow himself to be caught if Tom agrees to share his reward dinner, but Tom then reneges. Other times, Tom keeps his promise to Jerry and the partnerships are not quickly dissolved after the problem is solved.
|
50
|
+
|
51
|
+
Tom changes his love interest many times. The first love interest is Toots who appears in Puss n' Toots, and calls him "Tommy" in The Mouse Comes to Dinner. He is interested in a cat called Toots in The Zoot Cat although she has a different appearance to the original Toots. The most frequent love interest of Tom's is Toodles Galore, who never has any dialogue in the cartoons.
|
52
|
+
|
53
|
+
Despite five shorts ending with a depiction of Tom's apparent death, his demise is never permanent. He even reads about his own death in a flashback in Jerry's Diary. He appears to die in explosions in Mouse Trouble, after which he is seen in heaven, Yankee Doodle Mouse and in Safety Second, while in The Two Mouseketeers he is guillotined offscreen. The short Blue Cat Blues ends with both Tom and Jerry sitting on the railroad tracks with the intent of suicide while the whistle of an oncoming train is heard foreshadowing their imminent death.
|
54
|
+
|
55
|
+
Tom and Jerry speaking
|
56
|
+
|
57
|
+
Although many supporting and minor characters speak, Tom and Jerry rarely do so themselves. One exception is The Lonesome Mouse where they speak several times briefly, primarily Jerry, to contrive to get Tom back into the house. Tom more often sings while wooing female cats. For example, Tom sings Louis Jordan's "Is You Is or Is You Ain't My Baby" in the 1946 short Solid Serenade. In that short and Zoot Cat, Tom woos female cats using a deep, heavily French-accented voice in imitation of then-popular leading man, actor Charles Boyer.
|
58
|
+
|
59
|
+
At the end of The Million Dollar Cat, after beginning to antagonize Jerry he says, "Gee, I'm throwin' away a million dollars... BUT I'M HAPPY!". In Tom and Jerry: The Magic Ring, Jerry says, "No, no, no, no, no." when choosing the shop to remove his ring. In The Mouse Comes to Dinner, Tom speaks to his girlfriend Toots while inadvertently sitting on a stove: "Say, what's cookin'?", to which Toots replies "You are, stupid."
|
60
|
+
|
61
|
+
Another instance of speech comes in Solid Serenade and The Framed Cat, where Tom directs Spike through a few dog tricks in a dog-trainer manner. In Puss Gets the Boot, Jerry prays for his life when Tom catches him by the tail. Jerry has whispered in Tom's ear on several occasions. In Love Me, Love My Mouse, Jerry calls Toots "Mama".
|
62
|
+
|
63
|
+
Co-director William Hanna provided most of the squeaks, gasps, and other vocal effects for the pair, including the most famous sound effects from the series, Tom's leather-lunged scream, created by recording Hanna's scream and eliminating the beginning and ending of the recording, leaving only the strongest part of the scream on the soundtrack, and Jerry's nervous gulp.
|
64
|
+
|
65
|
+
The only other reasonably common vocalization is made by Tom when some external reference claims a certain scenario or eventuality to be impossible, which inevitably thwarts Tom's plans – at which point, a bedraggled and battered Tom appears and says in a haunting, echoing voice "Don't you believe it!", a reference to the then-popular 1940s radio show Don't You Believe It!.[6][7] In Mouse Trouble, Tom says "Don't you believe it!" after being beaten up by Jerry, which also happens in The Missing Mouse. In the 1946 short Trap Happy, Tom hires a cat disguised as a mouse exterminator who, after several failed attempts to dispatch Jerry and suffering a lot of accidents in the process, changes profession to Cat exterminator by crossing out the "Mouse" on his title and writing "CAT", resulting in Tom spelling out the word out loud before reluctantly pointing at himself.
|
66
|
+
|
67
|
+
One short, 1956's Blue Cat Blues, is narrated by Jerry in VoiceOver, voiced by Paul Frees, as they try to win back their ladyfriends. Jerry was voiced by Sara Berner during his appearance in the 1945 MGM musical Anchors Aweigh. Tom and Jerry: The Movie is the first, and so far only installment of the series where the famous cat-and-mouse duo regularly speaks or is able to be understood by humans. In that film, Tom was voiced by Richard Kind, and Jerry was voiced by Dana Hill.
|
68
|
+
|
69
|
+
Spike and Tyke
|
70
|
+
|
71
|
+
Main article: Spike and Tyke (characters)
|
72
|
+
|
73
|
+
In his attempts to catch Jerry, Tom often has to deal with Spike, known as "Killer" and "Butch" in some shorts, an angry, vicious but gullible bulldog who tries to attack Tom for bothering him or his son Tyke while trying to get Jerry. Originally, Spike was unnamed and mute, aside from howls and biting noises as well as attacking indiscriminately, not caring whether it was Tom or Jerry though usually attacking Tom. In later cartoons, Spike spoke often, using a voice and expressions, performed by Billy Bletcher and later Daws Butler, modeled after comedian Jimmy Durante. Spike's coat has altered throughout the years between gray and creamy tan. The addition of Spike's son Tyke in the late 1940s led to both a slight softening of Spike's character and a short-lived spin-off theatrical series called Spike and Tyke.
|
74
|
+
|
75
|
+
Most cartoons with Spike in them conform to a theme: usually, Spike is trying to accomplish something, such as building a dog house or sleeping, when Tom and Jerry's antics stop him doing it. Spike then presumably due to prejudice, singles out Tom as the culprit, and threatens him that if it ever happens again, he will do "something horrible" to him, effectively forcing Tom to take the blame, while Jerry overhears. Afterward, Jerry usually does anything he can to interrupt whatever Spike is doing, while Tom barely manages to stop him, usually getting injured in the process. Usually, Jerry eventually wrecks whatever Spike is doing in spectacular fashion, and leaves Tom to take the blame, forcing him to flee from Spike and inevitably lose.
|
76
|
+
|
77
|
+
Off-screen, Spike does something to Tom, and Tom is generally shown injured or in a bad situation while Jerry smugly cuddles up to Spike unscathed. Tom sometimes gets irritated with Spike. An example is in That's My Pup!, when Spike forces Tom to run up a tree every time his son barked, causing Tom to hang Tyke on a flag pole. At least once, Tom does something that benefits Spike, who promises not to interfere ever again, causing Jerry to frantically leave the house and run into the distance, in Hic-cup Pup. Spike is well known for his famous "Listen pussycat!" catchphrase when he threatens Tom, his other famous catchphrase is "That's my boy!" normally said when he supports or congratulates his son.
|
78
|
+
|
79
|
+
Tyke is described as a cute, sweet-looking, happy and lovable puppy. He is Spike's son. Unlike Spike, Tyke does not speak and only communicates, mostly towards his father, by barking, yapping, wagging his tail, whimpering and growling. Spike would always go out of his way to care and comfort his son and make sure that he is safe from Tom. Tyke loves his father and Spike loves his son and they get along like friends, although most of time they would be taking a nap or Spike would teach Tyke the main facts of life of being a dog. Like Spike, Tyke's appearance has altered throughout the years, from gray, with white paws, to creamy tan. When Tom & Jerry Kids first aired, this was the first time that viewers heard Tyke speak.
|
80
|
+
|
81
|
+
Butch and Toodles Galore
|
82
|
+
|
83
|
+
Butch is a black, cigar-smoking alley cat who also wants to eat Jerry. He is Tom's most frequent adversary. For most of the shorts he appears in, he is usually seen rivaling Tom over Toodles. Butch was Tom's chum as in some cartoons, where Butch is leader of Tom's alley cat buddies, who are mostly Lightning, Topsy, and Meathead. Butch talks more often than Tom or Jerry in most shorts.
|
84
|
+
|
85
|
+
Butch and Toodles were originally introduced in Hugh Harman's 1941 short The Alley Cat, but were integrated into Tom and Jerry rather than continuing in their own series.
|
86
|
+
|
87
|
+
Nibbles
|
88
|
+
|
89
|
+
Main article: Nibbles (Tom and Jerry)
|
90
|
+
|
91
|
+
Nibbles is a small gray mouse who often appears in shorts as an orphan mouse. He is a carefree individual who very rarely understands the danger of the situation, simply following instructions the best he can both to Jerry's command and his own innocent understanding of the situation. This can lead to such results as "getting the cheese" by simply asking Tom to pick it up for him, rather than following Jerry's example of outmaneuvering and sneaking around Tom. Many times Nibbles is an ally of Jerry in fights against Tom, including being the second Mouseketeer. He is given speaking roles in all his appearances as a Mouseketeer, often with a high-pitched French tone. However, during a short in which he rescued Robin Hood, his voice was instead more masculine, gruff, and cockney accented.
|
92
|
+
|
93
|
+
The Housekeeper
|
94
|
+
|
95
|
+
Main article: Mammy Two Shoes
|
96
|
+
|
97
|
+
The housekeeper, usually seen from the torso down, is a heavy-set, middle-aged black woman who often has to deal with the mayhem generated by the lead characters. Voiced by character actress Lillian Randolph, she is often seen as the owner of Tom, and perhaps the homeowner as well. Her face was only shown once, very briefly, in Saturday Evening Puss. Her appearances have often been edited out, dubbed, or re-animated as a slim white woman in later television showings, since her character is a mammy archetype that had been protested as racist by the NAACP and other civil rights groups since the 1940s.[8][9] In a 1975 article in Film Comment she was referred to as "Mammy Two Shoes," a moniker that has been inaccurately attributed to the character ever since, The name "Mammy Two-Shoes" was on the Disney model sheets for a character in a Silly Symphony cartoon, though the name was never spoken in the cartoon. A similar housekeeper then appeared in MGM Bokso cartoons by Harman and Ising, also without a name. At no time, ever, was the name used in any Tom and Jerry cartoon, The author of the 1975 later apologized, but too much time had established the incorrect information, including on the DVD release DVD releases of the cartoons, in which the script read by Whoopi Goldberg on the Tom and Jerry Spotlight Collection: Vol. 2 DVD set, while explaining the importance of African-American representation in the cartoon series, however stereotyped, mentions the incorrect name numerous times.[10]
|
98
|
+
|
99
|
+
===== human =====
|
100
|
+
|
101
|
+
{"type":"image/jpeg","base64":"/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWI...
|
102
|
+
|
103
|
+
===== ai =====
|
104
|
+
|
105
|
+
Hello there! Let's take a look at this picture together. What do you see? That's right, it's Tom from the famous cartoon series "Tom and Jerry"!
|
106
|
+
|
107
|
+
Tom is a gray and white domestic shorthair cat. In this picture, he looks a bit worried or scared, doesn't he? You can tell by his big, wide eyes and the way his mouth is shaped. Maybe Jerry, the clever little mouse, has played another trick on him!
|
108
|
+
|
109
|
+
Now, let's talk a little more about Tom and Jerry so you can understand why Tom might look this way. "Tom and Jerry" is a fun cartoon that has been around since 1940. It was created by William Hanna and Joseph Barbera. The show is all about the funny and sometimes crazy adventures of Tom the cat and Jerry the mouse. Tom is always trying to catch Jerry, but Jerry is very smart and always finds a way to escape or trick Tom.
|
110
|
+
|
111
|
+
Even though Tom and Jerry are often seen fighting, they do care about each other and sometimes work together to solve problems. The cartoon is full of funny moments, and even though they play tricks on each other, it's all in good fun.
|
112
|
+
|
113
|
+
So, whenever you see Tom looking like this, you can imagine that he's probably just been outsmarted by Jerry once again! But don't worry, Tom never gives up and always comes back for more adventures.
|
114
|
+
|
115
|
+
===== human =====
|
116
|
+
|
117
|
+
{"type":"image/jpeg","base64":"/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWI...
|
@@ -0,0 +1,28 @@
|
|
1
|
+
===== human =====
|
2
|
+
|
3
|
+
<role>Senior Systems Architecture Consultant</role>
|
4
|
+
<task>Legacy System Migration Analysis</task>
|
5
|
+
<Context>
|
6
|
+
<item>Fortune 500 retail company</item>
|
7
|
+
<item>Current system: 15-year-old monolithic application</item>
|
8
|
+
<item>500+ daily users</item>
|
9
|
+
<item>99.99% uptime requirement</item>
|
10
|
+
</Context>
|
11
|
+
<RequiredAnalysis>
|
12
|
+
<item>Migration risks and mitigation strategies</item>
|
13
|
+
<item>Cloud vs hybrid options</item>
|
14
|
+
<item>Cost-benefit analysis</item>
|
15
|
+
<item>Implementation roadmap</item>
|
16
|
+
</RequiredAnalysis>
|
17
|
+
<outputFormat>
|
18
|
+
<item>Executive brief (250 words)</item>
|
19
|
+
<item>Technical details (500 words)</item>
|
20
|
+
<item>Risk matrix</item>
|
21
|
+
<item>Timeline visualization</item>
|
22
|
+
<item>Budget breakdown</item>
|
23
|
+
</outputFormat>
|
24
|
+
<Constraints>
|
25
|
+
<item>Must maintain operational continuity</item>
|
26
|
+
<item>Compliance with GDPR and CCPA</item>
|
27
|
+
<item>Maximum 18-month implementation window</item>
|
28
|
+
</Constraints>
|
@@ -0,0 +1,121 @@
|
|
1
|
+
===== system =====
|
2
|
+
|
3
|
+
# Task
|
4
|
+
|
5
|
+
I developed a project called Prompt Wizard and I want to write a blog to publish on the company website. I have already written a draft of the blog. There has been figures, numbers in tables, the key challenges, motivations, as well as some titles and subtitles. I want you to complete the `[TODO]`s in the draft.
|
6
|
+
|
7
|
+
# Output Format
|
8
|
+
|
9
|
+
Your response should be in the following format:
|
10
|
+
|
11
|
+
```
|
12
|
+
- TODO 1:
|
13
|
+
- TODO 2:
|
14
|
+
- ...
|
15
|
+
```
|
16
|
+
|
17
|
+
===== human =====
|
18
|
+
|
19
|
+
PromptWizard: The future of prompt optimization through feedback-driven self-evolving prompts
|
20
|
+
|
21
|
+
{"type":"image/png","base64":"iVBORw0KGgoAAAANSUhEUgAAAfQAAAEZCAYAAABhDNfWAAAACXBIWXMAAAsTAAALEwEAmp...
|
22
|
+
|
23
|
+
# The challenge of effective prompting
|
24
|
+
|
25
|
+
AI is reshaping industries—from education to healthcare—thanks to advancements in large language models (LLMs). These models rely on prompts, carefully crafted inputs that guide them to produce relevant and meaningful outputs. While the impact of prompts is profound, creating prompts that can help with complex tasks is a time-intensive and expertise-heavy process, often involving months of trial and error.
|
26
|
+
|
27
|
+
This challenge grows as new tasks arise and models evolve rapidly, making manual methods for prompt engineering increasingly unsustainable. The question then becomes: How can we make prompt optimization faster, more accessible, and more adaptable across diverse tasks?
|
28
|
+
|
29
|
+
To address this challenge, we developed PromptWizard (PW), a research framework that automates and streamlines the process of prompt optimization. We are open sourcing the PromptWizard codebase(opens in new tab) to foster collaboration and innovation within the research and development community.
|
30
|
+
|
31
|
+
# Introducing PromptWizard
|
32
|
+
|
33
|
+
PromptWizard (PW) is designed to automate and simplify prompt optimization. It combines iterative feedback from LLMs with efficient exploration and refinement techniques to create highly effective prompts within minutes.
|
34
|
+
|
35
|
+
PromptWizard optimizes both the instruction and the in-context learning examples. Central to PW is its self-evolving and self-adaptive mechanism, where the LLM iteratively generates, critiques, and refines prompts and examples in tandem. This process ensures continuous improvement through feedback and synthesis, achieving a holistic optimization tailored to the specific task at hand. By evolving both instructions and examples simultaneously, PW ensures significant gains in task performance.
|
36
|
+
|
37
|
+
# Three key insights behind PromptWizard:
|
38
|
+
|
39
|
+
- Feedback-driven refinement: [TODO 1]
|
40
|
+
- Joint optimization and synthesis of diverse examples: [TODO 2]
|
41
|
+
- Self-generated chain-of-thought (CoT) steps: [TODO 3]
|
42
|
+
|
43
|
+
{"type":"image/png","base64":"iVBORw0KGgoAAAANSUhEUgAAAfQAAACcCAYAAACJBlkJAAAACXBIWXMAAAsTAAALEwEAmp...
|
44
|
+
|
45
|
+
Figure 1. Overview of PromptWizard
|
46
|
+
|
47
|
+
# How PromptWizard works
|
48
|
+
|
49
|
+
PromptWizard begins with a user input: a problem description, an initial prompt instruction, and a few training examples that serve as a foundation for the task at hand.
|
50
|
+
|
51
|
+
Its output is a refined, optimized set of prompt instructions paired with carefully curated in-context few-shot examples. These outputs are enriched with detailed reasoning chains, task intent, and an expert profile that bridges human-like reasoning with the AI’s responses.
|
52
|
+
|
53
|
+
# Stage 1: Refinement of prompt instruction
|
54
|
+
|
55
|
+
[TODO 4]
|
56
|
+
|
57
|
+
{"type":"image/png","base64":"iVBORw0KGgoAAAANSUhEUgAAAfQAAAD4CAYAAAAaYxRFAAAACXBIWXMAAA7DAAAOwwHHb6...
|
58
|
+
|
59
|
+
Figure 2. Refinement of prompt instruction
|
60
|
+
|
61
|
+
# Stage 2: Joint optimization of instructions and examples
|
62
|
+
|
63
|
+
[TODO 5]
|
64
|
+
|
65
|
+
{"type":"image/png","base64":"iVBORw0KGgoAAAANSUhEUgAAAfQAAADfCAYAAAAAyiHLAAAACXBIWXMAAA7DAAAOwwHHb6...
|
66
|
+
|
67
|
+
Figure 3. Joint optimization of instructions and examples
|
68
|
+
|
69
|
+
# Results
|
70
|
+
|
71
|
+
PromptWizard stands out for its feedback-driven refinement and systematic exploration, delivering exceptional results across a wide variety of tasks while maintaining computational efficiency.
|
72
|
+
|
73
|
+
# Comprehensive evaluation across tasks
|
74
|
+
|
75
|
+
PromptWizard was rigorously evaluated on over 45 tasks, spanning both general and domain-specific challenges. Benchmarked against state-of-the-art techniques—including Instinct, InstructZero, APE, PromptBreeder, EvoPrompt, DSPy, APO, and PromptAgent—PW consistently outperformed competitors in accuracy, efficiency, and adaptability. Please see detailed results in our paper.
|
76
|
+
|
77
|
+
[TODO 6]
|
78
|
+
|
79
|
+
{"type":"image/png","base64":"iVBORw0KGgoAAAANSUhEUgAAAfQAAAFiCAIAAACPi72DAAAACXBIWXMAAAsTAAALEwEAmp...
|
80
|
+
|
81
|
+
Figure 4. Performance Profile curve on BBII dataset
|
82
|
+
|
83
|
+
| Methods | API calls | Total tokens |
|
84
|
+
| ------------- | --------- | ------------ |
|
85
|
+
| Instinct | 1730 | 115k |
|
86
|
+
| PromptBreeder | 18600 | 1488k |
|
87
|
+
| EvoPrompt | 5000 | 400k |
|
88
|
+
| PW | 69 | 24k |
|
89
|
+
|
90
|
+
Table 1. Cost analysis on BBII dataset
|
91
|
+
|
92
|
+
# Resilience with limited data
|
93
|
+
|
94
|
+
[TODO 7]
|
95
|
+
|
96
|
+
| Datasets | 5 Examples | 25 Examples |
|
97
|
+
| -------- | ---------- | ----------- |
|
98
|
+
| MMLU | 80.4 | 89.5 |
|
99
|
+
| GSM8k | 94 | 95.4 |
|
100
|
+
| Ethos | 86.4 | 89.4 |
|
101
|
+
| PubMedQA | 68 | 78.2 |
|
102
|
+
| MedQA | 80.4 | 82.9 |
|
103
|
+
| Average | 81.9 | 87 |
|
104
|
+
|
105
|
+
Table 2. PW’s performance with varying number of examples
|
106
|
+
|
107
|
+
# Leveraging smaller models for optimization
|
108
|
+
|
109
|
+
[TODO 8]
|
110
|
+
|
111
|
+
| Dataset | Prompt Gen: Llama-70B | Prompt Gen: GPT4 |
|
112
|
+
| ------- | --------------------- | ---------------- |
|
113
|
+
| GSM8k | 94.6 | 95.4 |
|
114
|
+
| Ethos | 89.2 | 89.4 |
|
115
|
+
| Average | 91.9 | 92.4 |
|
116
|
+
|
117
|
+
Table 3. Performance with smaller LLMs for prompt generation
|
118
|
+
|
119
|
+
# Conclusion
|
120
|
+
|
121
|
+
Whether you are a researcher addressing cutting-edge challenges or an organization looking to streamline workflows, PromptWizard provides a practical, scalable, and impactful solution for enhancing model performance.
|
@@ -0,0 +1,86 @@
|
|
1
|
+
===== system =====
|
2
|
+
|
3
|
+
# Task
|
4
|
+
|
5
|
+
Given the stock ticker, provide a full and up-to-date financial analysis covering the following aspects, cite sources.
|
6
|
+
|
7
|
+
1. Current stock price, recent performance trends, and historical comparison.
|
8
|
+
2. Key financial ratios (e.g., P/E ratio, forward P/E, Price/Free cash flow, EPS growth this year, Return on equity, return on investment, current ratio, net profit margin, debt-to-equity ratio) and what they indicate about the company's financial health.
|
9
|
+
3. Support and resistance prices of the stock and how current indicators may drive the direction of the stock
|
10
|
+
4. Recent earnings reports, revenue growth or decline, and net income trends over the past quarter. Please also include if latest EPS report beat estimates.
|
11
|
+
5. Industry comparison to determine the company's standing relative to its peers.
|
12
|
+
6. Current analyst ratings, target price forecasts, and recent upgrades or downgrades.
|
13
|
+
7. Overall summary on whether the stock is considered a 'buy', 'hold', or 'sell' based on current financial data and market sentiment.
|
14
|
+
|
15
|
+
===== human =====
|
16
|
+
|
17
|
+
| Date | MSFT | AMZN | META | AAPL | GOOG | NVDA | TSLA |
|
18
|
+
| ---------- | ------ | ------ | ------ | ------ | ------ | ------ | ------ |
|
19
|
+
| 2025-02-12 | 409.04 | 228.93 | 725.38 | 236.87 | 185.43 | 131.14 | 336.51 |
|
20
|
+
| 2025-02-11 | 411.44 | 232.76 | 719.8 | 232.62 | 187.07 | 132.8 | 328.5 |
|
21
|
+
| 2025-02-10 | 412.22 | 233.14 | 717.4 | 227.65 | 188.2 | 133.57 | 350.73 |
|
22
|
+
| 2025-02-07 | 409.75 | 229.15 | 714.52 | 227.63 | 187.14 | 129.84 | 361.62 |
|
23
|
+
| 2025-02-06 | 415.82 | 238.83 | 711.99 | 233.22 | 193.31 | 128.68 | 374.32 |
|
24
|
+
| 2025-02-05 | 413.29 | 236.17 | 704.87 | 232.47 | 193.3 | 124.83 | 378.17 |
|
25
|
+
| 2025-02-04 | 412.37 | 242.06 | 704.19 | 232.8 | 207.71 | 118.65 | 392.21 |
|
26
|
+
| 2025-02-03 | 410.92 | 237.42 | 697.46 | 228.01 | 202.64 | 116.66 | 383.68 |
|
27
|
+
| 2025-01-31 | 415.06 | 237.68 | 689.18 | 236 | 205.6 | 120.07 | 404.6 |
|
28
|
+
| 2025-01-30 | 414.99 | 234.64 | 687 | 237.59 | 202.63 | 124.65 | 400.28 |
|
29
|
+
| 2025-01-29 | 442.33 | 237.07 | 676.49 | 239.36 | 197.18 | 123.7 | 389.1 |
|
30
|
+
| 2025-01-28 | 447.2 | 238.15 | 674.33 | 238.26 | 197.07 | 128.99 | 398.09 |
|
31
|
+
| 2025-01-27 | 434.56 | 235.42 | 659.88 | 229.86 | 193.77 | 118.42 | 397.15 |
|
32
|
+
| 2025-01-24 | 444.06 | 234.85 | 647.49 | 222.78 | 201.9 | 142.62 | 406.58 |
|
33
|
+
| 2025-01-23 | 446.71 | 235.42 | 636.45 | 223.66 | 199.58 | 147.22 | 412.38 |
|
34
|
+
| 2025-01-22 | 446.2 | 235.01 | 623.5 | 223.83 | 200.03 | 147.07 | 415.11 |
|
35
|
+
| 2025-01-21 | 428.5 | 230.71 | 616.46 | 222.64 | 199.63 | 140.83 | 424.07 |
|
36
|
+
| 2025-01-17 | 429.03 | 225.94 | 612.77 | 229.98 | 197.55 | 137.71 | 426.5 |
|
37
|
+
| 2025-01-16 | 424.58 | 220.66 | 611.3 | 228.26 | 194.41 | 133.57 | 413.82 |
|
38
|
+
| 2025-01-15 | 426.31 | 223.35 | 617.12 | 237.87 | 196.98 | 136.24 | 428.22 |
|
39
|
+
| 2025-01-14 | 415.67 | 217.76 | 594.25 | 233.28 | 191.05 | 131.76 | 396.36 |
|
40
|
+
| 2025-01-13 | 417.19 | 218.46 | 608.33 | 234.4 | 192.29 | 133.23 | 403.31 |
|
41
|
+
| 2025-01-10 | 418.95 | 218.94 | 615.86 | 236.85 | 193.17 | 135.91 | 394.74 |
|
42
|
+
| 2025-01-08 | 424.56 | 222.13 | 610.72 | 242.7 | 195.39 | 140.11 | 394.94 |
|
43
|
+
| 2025-01-07 | 422.37 | 222.11 | 617.89 | 242.21 | 196.71 | 140.14 | 394.36 |
|
44
|
+
| 2025-01-06 | 427.85 | 227.61 | 630.2 | 245 | 197.96 | 149.43 | 411.05 |
|
45
|
+
| 2025-01-03 | 423.35 | 224.19 | 604.63 | 243.36 | 193.13 | 144.47 | 410.44 |
|
46
|
+
| 2025-01-02 | 418.58 | 220.22 | 599.24 | 243.85 | 190.63 | 138.31 | 379.28 |
|
47
|
+
| 2024-12-31 | 421.5 | 219.39 | 585.51 | 250.42 | 190.44 | 134.29 | 403.84 |
|
48
|
+
| 2024-12-30 | 424.83 | 221.3 | 591.24 | 252.2 | 192.69 | 137.49 | 417.41 |
|
49
|
+
| 2024-12-27 | 430.53 | 223.75 | 599.81 | 255.59 | 194.04 | 137.01 | 431.66 |
|
50
|
+
| 2024-12-26 | 438.11 | 227.05 | 603.35 | 259.02 | 197.1 | 139.93 | 454.13 |
|
51
|
+
| 2024-12-24 | 439.33 | 229.05 | 607.75 | 258.2 | 197.57 | 140.22 | 462.28 |
|
52
|
+
| 2024-12-23 | 435.25 | 225.06 | 599.85 | 255.27 | 195.99 | 139.67 | 430.6 |
|
53
|
+
| 2024-12-20 | 436.6 | 224.92 | 585.25 | 254.49 | 192.96 | 134.7 | 421.06 |
|
54
|
+
| 2024-12-19 | 437.03 | 223.29 | 595.57 | 249.79 | 189.7 | 130.68 | 436.17 |
|
55
|
+
| 2024-12-18 | 437.39 | 220.52 | 597.19 | 248.05 | 190.15 | 128.91 | 440.13 |
|
56
|
+
| 2024-12-17 | 454.46 | 231.15 | 619.44 | 253.48 | 197.12 | 130.39 | 479.86 |
|
57
|
+
| 2024-12-16 | 451.59 | 232.93 | 624.24 | 251.04 | 198.16 | 132 | 463.02 |
|
58
|
+
| 2024-12-13 | 447.27 | 227.46 | 620.35 | 248.13 | 191.38 | 134.25 | 436.23 |
|
59
|
+
| 2024-12-12 | 449.56 | 228.97 | 630.79 | 247.96 | 193.63 | 137.34 | 418.1 |
|
60
|
+
| 2024-12-11 | 448.99 | 230.26 | 632.68 | 246.49 | 196.71 | 139.31 | 424.77 |
|
61
|
+
| 2024-12-10 | 443.33 | 225.04 | 619.32 | 247.77 | 186.53 | 135.07 | 400.99 |
|
62
|
+
| 2024-12-09 | 446.02 | 226.09 | 613.57 | 246.75 | 177.1 | 138.81 | 389.79 |
|
63
|
+
| 2024-12-06 | 443.57 | 227.03 | 623.77 | 242.84 | 176.49 | 142.44 | 389.22 |
|
64
|
+
| 2024-12-05 | 442.62 | 220.55 | 608.93 | 243.04 | 174.31 | 145.06 | 369.49 |
|
65
|
+
| 2024-12-04 | 437.42 | 218.16 | 613.78 | 243.01 | 176.09 | 145.14 | 357.93 |
|
66
|
+
| 2024-12-03 | 431.2 | 213.44 | 613.65 | 242.65 | 173.02 | 140.26 | 351.42 |
|
67
|
+
| 2024-12-02 | 430.98 | 210.71 | 592.83 | 239.59 | 172.98 | 138.63 | 357.09 |
|
68
|
+
| 2024-11-29 | 423.46 | 207.89 | 574.32 | 237.33 | 170.49 | 138.25 | 345.16 |
|
69
|
+
| 2024-11-27 | 422.99 | 205.74 | 569.2 | 234.93 | 170.82 | 135.34 | 332.89 |
|
70
|
+
| 2024-11-26 | 427.99 | 207.86 | 573.54 | 235.06 | 170.62 | 136.92 | 338.23 |
|
71
|
+
| 2024-11-25 | 418.79 | 201.45 | 565.11 | 232.87 | 169.43 | 136.02 | 338.59 |
|
72
|
+
| 2024-11-22 | 417 | 197.12 | 559.14 | 229.87 | 166.57 | 141.95 | 352.56 |
|
73
|
+
| 2024-11-21 | 412.87 | 198.38 | 563.09 | 228.52 | 169.24 | 146.67 | 339.64 |
|
74
|
+
| 2024-11-20 | 415.49 | 202.88 | 565.52 | 229 | 177.33 | 145.89 | 342.03 |
|
75
|
+
| 2024-11-19 | 417.79 | 204.61 | 561.09 | 228.28 | 179.58 | 147.01 | 346 |
|
76
|
+
| 2024-11-18 | 415.76 | 201.7 | 554.4 | 228.02 | 176.8 | 140.15 | 338.74 |
|
77
|
+
| 2024-11-15 | 415 | 202.61 | 554.08 | 225 | 173.89 | 141.98 | 320.72 |
|
78
|
+
| 2024-11-14 | 426.89 | 211.48 | 577.16 | 228.22 | 177.35 | 146.76 | 311.18 |
|
79
|
+
|
80
|
+
The following two charts on a visualization of the table above. One of them shows the absolute price of the stocks, and the other one shows the price normalized by the price of the first day.
|
81
|
+
|
82
|
+
{"type":"image/png","base64":"iVBORw0KGgoAAAANSUhEUgAABxUAAAVWCAYAAABb2OdwAAAACXBIWXMAADLAAAAywAEoZF...
|
83
|
+
|
84
|
+
{"type":"image/png","base64":"iVBORw0KGgoAAAANSUhEUgAABxUAAAVWCAYAAABb2OdwAAAACXBIWXMAADLAAAAywAEoZF...
|
85
|
+
|
86
|
+
**Hint:** The table contains stock tickers of 7 companies. Please analyze and give financial analysis and comparison for them.
|
@@ -0,0 +1,41 @@
|
|
1
|
+
===== human =====
|
2
|
+
|
3
|
+
# Task
|
4
|
+
|
5
|
+
Create a blog post with these specifications:
|
6
|
+
|
7
|
+
# Output Format
|
8
|
+
|
9
|
+
1. Title: [SEO-friendly title]
|
10
|
+
|
11
|
+
2. Introduction (100 words)
|
12
|
+
|
13
|
+
- Hook statement
|
14
|
+
- Context setting
|
15
|
+
- Main points preview
|
16
|
+
|
17
|
+
3. Main body (800 words)
|
18
|
+
|
19
|
+
- 3-4 main points
|
20
|
+
- Each point: [subtitle + 200 words]
|
21
|
+
- Include real examples
|
22
|
+
- Add actionable tips
|
23
|
+
|
24
|
+
4. Conclusion (100 words)
|
25
|
+
|
26
|
+
- Summary of key points
|
27
|
+
- Call to action
|
28
|
+
|
29
|
+
# Style
|
30
|
+
|
31
|
+
- Tone: Professional but conversational
|
32
|
+
- Level: Intermediate audience
|
33
|
+
- Voice: Active, engaging
|
34
|
+
- Format: Scannable, with subheadings
|
35
|
+
|
36
|
+
# Include
|
37
|
+
|
38
|
+
- Practical examples
|
39
|
+
- Statistics or research
|
40
|
+
- Actionable takeaways
|
41
|
+
- Relevant analogies
|
@@ -0,0 +1,29 @@
|
|
1
|
+
===== human =====
|
2
|
+
|
3
|
+
# Task
|
4
|
+
|
5
|
+
You are given various potential options or approaches for a project. Convert these into a well-structured research plan.
|
6
|
+
|
7
|
+
# Stepwise Instructions
|
8
|
+
|
9
|
+
1. Identifies Key Objectives
|
10
|
+
|
11
|
+
- Clarify what questions each option aims to answer
|
12
|
+
- Detail the data/info needed for evaluation
|
13
|
+
|
14
|
+
2. Describes Research Methods
|
15
|
+
|
16
|
+
- Outline how you’ll gather and analyze data
|
17
|
+
- Mention tools or methodologies for each approach
|
18
|
+
|
19
|
+
3. Provides Evaluation Criteria
|
20
|
+
|
21
|
+
- Metrics, benchmarks, or qualitative factors to compare options
|
22
|
+
- Criteria for success or viability
|
23
|
+
|
24
|
+
4. Specifies Expected Outcomes
|
25
|
+
|
26
|
+
- Possible findings or results
|
27
|
+
- Next steps or actions following the research
|
28
|
+
|
29
|
+
Produce a methodical plan focusing on clear, practical steps.
|
@@ -0,0 +1,151 @@
|
|
1
|
+
===== human =====
|
2
|
+
|
3
|
+
Provide a concise executive summary of the following text, highlighting key points, objectives, and outcomes. Keep the summary under 150 words and ensure it is suitable for a professional audience.
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12Esc Power Sleep
|
8
|
+
Wake
|
9
|
+
Up
|
10
|
+
Print
|
11
|
+
Scrn
|
12
|
+
SysRq
|
13
|
+
Scroll
|
14
|
+
Lock
|
15
|
+
Pause
|
16
|
+
Break
|
17
|
+
Insert Home
|
18
|
+
Page
|
19
|
+
Up
|
20
|
+
Delete End
|
21
|
+
Page
|
22
|
+
Down
|
23
|
+
½ 1
|
24
|
+
2
|
25
|
+
3 4 5 6 7 8 9 0 + '
|
26
|
+
Q
|
27
|
+
W
|
28
|
+
E R T Y U I O P Å ^
|
29
|
+
A S D F G H J K L Æ Ø *
|
30
|
+
> Z
|
31
|
+
X C V B N M ; :
|
32
|
+
_
|
33
|
+
Num Lock Caps Lock Scroll Lock
|
34
|
+
Num
|
35
|
+
Lock
|
36
|
+
/
|
37
|
+
*
|
38
|
+
_
|
39
|
+
+
|
40
|
+
Enter
|
41
|
+
Ctrl Alt
|
42
|
+
Caps Lock
|
43
|
+
Alt Gr Ctrl
|
44
|
+
Web E-Mail +Volume-VolumeMutePrevious NextMenuTuner
|
45
|
+
< \
|
46
|
+
§ ! " # ¤ % & / ( ) = ? `
|
47
|
+
|
|
48
|
+
€
|
49
|
+
@ £ $ { [ ] }
|
50
|
+
" ~
|
51
|
+
'
|
52
|
+
-
|
53
|
+
.,
|
54
|
+
7 8 9
|
55
|
+
4 5 6
|
56
|
+
1 2 3
|
57
|
+
0
|
58
|
+
Home PgUp
|
59
|
+
End PgDn
|
60
|
+
Ins Del
|
61
|
+
,
|
62
|
+
Figure 2: This figure floats to the top of the page, spanning both columns.
|
63
|
+
3.1 HTML5
|
64
|
+
This template uses HTML5 elements to aid in rep-
|
65
|
+
resenting the document structure. The section
|
66
|
+
element is used to split the text into sections, and
|
67
|
+
the header element holds the headlines. The
|
68
|
+
figure element is used to include figures and
|
69
|
+
their corrensponding captions live inside the fig-
|
70
|
+
caption element. The cite element holds all ref-
|
71
|
+
erences.
|
72
|
+
A small microformat, based on a convention of
|
73
|
+
class names, is used to encode the name and affili-
|
74
|
+
ation of the authors.
|
75
|
+
3.2 CSS
|
76
|
+
A CSS style sheet describes how to format the
|
77
|
+
HTML document into a PDF file. CSS is a declar-
|
78
|
+
ative language which attaches property values to
|
79
|
+
HTML elements and documents. Many aspects of
|
80
|
+
CSS is used to achieve the presentation of USENIX
|
81
|
+
papers, including:
|
82
|
+
• multi-column layout
|
83
|
+
• footnotes
|
84
|
+
• page and column floats
|
85
|
+
• multi-level counters
|
86
|
+
Some commonly used features are absent from
|
87
|
+
the above list: page numbers and running headers
|
88
|
+
should not be specifed by USENIX authors, these
|
89
|
+
are added by those who compile the Proceedings.
|
90
|
+
3.3 JavaScript
|
91
|
+
This template uses JavaScript to process refer-
|
92
|
+
ences. References are added at the point where
|
93
|
+
they appear, and a script is later used to move the
|
94
|
+
references to the end of the paper, leaving behind
|
95
|
+
a numeric marker.
|
96
|
+
3.4 PDF
|
97
|
+
(This section has been added by Håkon Wium Lie)
|
98
|
+
In order to convert the document to PDF, a for-
|
99
|
+
matter is needed. Common browsers support
|
100
|
+
HTML and CSS, but they do not support all the CSS
|
101
|
+
functionality for page-based formatting. For ex-
|
102
|
+
ample, browsers do not support footnotes or page
|
103
|
+
floats. This paper has been formatted with
|
104
|
+
Prince,
|
105
|
+
[a]
|
106
|
+
a purpose-built program for converting
|
107
|
+
HTML and XML documents into PDF by way of
|
108
|
+
CSS. Prince is a commercial product, but can be
|
109
|
+
downloaded and used for free for non-commercial
|
110
|
+
purposes.
|
111
|
+
In order for Prince to process the script includ-
|
112
|
+
ed in this template, a command line option must
|
113
|
+
be specified:
|
114
|
+
$ prince --javascript example.html
|
115
|
+
4 Tables
|
116
|
+
The table below lists recipients of the USENIX Life-
|
117
|
+
time Achievement Award in the 1900s. Notice how
|
118
|
+
notes inside the table are moved to the end of the
|
119
|
+
table.
|
120
|
+
Year Recipient
|
121
|
+
1999 X Window System*
|
122
|
+
1998 Tim Berners-Lee
|
123
|
+
1997 Brian W. Kernighan
|
124
|
+
[a] www.princexml.com
|
125
|
+
|
126
|
+
1996 The Software Tools Project
|
127
|
+
1995 The Creation of USENET **
|
128
|
+
1994 Networking Technologies
|
129
|
+
1993 Berkeley UNIX
|
130
|
+
* Given to the Community at Large
|
131
|
+
** Given to Jim Ellis and Tom Truscott
|
132
|
+
5 Conclusions
|
133
|
+
Each good paper concludes the most significant
|
134
|
+
findings in the end.
|
135
|
+
Acknowledgments
|
136
|
+
A polite author always includes acknowledgments.
|
137
|
+
Thank everyone, especially those who funded the
|
138
|
+
work.
|
139
|
+
Availability
|
140
|
+
Please include a section at the end of your paper
|
141
|
+
providing availability information. If the system
|
142
|
+
you describe is available to others, and if more in-
|
143
|
+
formation (reports, etc.) may be obtained, indicate
|
144
|
+
terms and contact information.
|
145
|
+
References
|
146
|
+
[1] STRUNK, W. JR., AND WHITE, E.B. The Elements
|
147
|
+
of Style, 4th Ed, Allyn and Bacon, August, 1999,
|
148
|
+
ISBN 020530902X
|
149
|
+
[2] ZOBEL, J. Writing for Computer Science,
|
150
|
+
Springer-Verlag, December 1997, ISBN
|
151
|
+
9813083220
|
@@ -0,0 +1,44 @@
|
|
1
|
+
===== system =====
|
2
|
+
|
3
|
+
# ROLE
|
4
|
+
|
5
|
+
You are a chatbot agent answering customer's questions in a chat.
|
6
|
+
|
7
|
+
# TASK
|
8
|
+
|
9
|
+
Your task is to answer the customer's question using the data provided in the data section.
|
10
|
+
|
11
|
+
1. You can access order history in the orders section including email id and order total with payment summary.
|
12
|
+
2. Refer to orderlines for item level details within each order in orders.
|
13
|
+
|
14
|
+
# DATA
|
15
|
+
|
16
|
+
## ORDERS
|
17
|
+
|
18
|
+
| OrderId | CustomerEmail | CreatedTimestamp | IsCancelled | OrderTotal | PaymentSummary |
|
19
|
+
| ------- | ----------------------------- | ---------------- | ----------- | ---------- | -------------- |
|
20
|
+
| CC10182 | 222larabrown@gmail.com | 2024-01-19 | | 0 | Not available |
|
21
|
+
| CC10183 | baklavainthebalkans@gmail.com | 2024-01-19 | | 0 | Not available |
|
22
|
+
|
23
|
+
## ORDERLINES
|
24
|
+
|
25
|
+
OrderId OrderLineId CreatedTimestamp ItemDescription Quantity FulfillmentStatus ExpectedDeliveryDate ActualDeliveryDate ActualShipDate ExpectedShipDate TrackingInformation ShipToAddress CarrierCode DeliveryMethod UnitPrice OrderLineSubTotal LineShippingCharge TotalTaxes Payments
|
26
|
+
CC10182 1 Shorts 0 unshipped 2024-01-31 2024-02-01 2024-01-30 2024-01-29 ShipToAddress 115.99 0 0 0
|
27
|
+
|
28
|
+
# STEPWISE INSTRUCTIONS
|
29
|
+
|
30
|
+
Instruction 1: If there is no data that can help answer the question, respond with "I do not have this information. Please contact customer service".
|
31
|
+
|
32
|
+
Instruction 2: You are allowed to ask a follow up question if it will help narrow down the data row customer may be referring to.
|
33
|
+
|
34
|
+
Instruction 3: You can only answer questions related to order history and amount charged for it. Include OrderId in the response, when applicable.
|
35
|
+
|
36
|
+
Instruction 4: For everything else, please redirect to the customer service agent.
|
37
|
+
|
38
|
+
Instruction 5: Answer in plain English and no sources are required.
|
39
|
+
|
40
|
+
===== human =====
|
41
|
+
|
42
|
+
**QUESTION:** How much did I pay for my last order?
|
43
|
+
|
44
|
+
**Answer:**
|