Text Generator Brain Text Generator
Text Generator > Blog > Many Shots Are Better Than One

Many Shots Are Better Than One

Wait what is a shot?

Here in Language Generation, by shots we mean inside a single prompt, how many times are you giving an example of doing what you expect?

0 shot

(green is computer generated)

Plot Ideas:
++A few ideas for the plots are:

++Use a set of markers and colors to indicate your desired results. This would be helpful if you want some visual feedback as well.
playground

Here we don't give any shots/examples of how to answer our particular question, we just ask it, it works but results aren't Shakespeare.

Another example of 0 shots is summarization, here although we give a lot of input data we dont show an example of what an answer looks like, so its 0 shot summarization

By far the worst of the crew was William who was unsufferably cruel to everyone around him all of the time, second was jake who was often called jake the snake for his ability to lie and steal without remorse, best was Jack who was indifferent to most of the suffering his crew caused as well as to most things in the world.
In summary:

++Jack is a nice guy
++James' son Jake has been doing really bad stuff since he came back from space.
++William's brother J.B., or rather father (he doesn't even know he's dead) James B. also had no interest whatsoever when it comes down to killing people.
playground

It does okay but introduces a bunch of new characters and confusing relationships between the characters, that's often the case in human language summarization isn't a mathematical operation that excludes new information being added and often details are invented.

1 shot

Plot Ideas:
A woman after loosing her husband in a tragic accident she was blamed for by the community, in time returns to her home town, falls in love again with a bartender, later she finds out he was her husbands best friend.
++Idealistic Plot: A young man is going through his life trying not to let himself be affected but when someone else touches him and then another one. The storyline would go on till it ends happily or tragically depending upon how you feel about that person being touched.
playground

Its hard to know how to strip output relics like "Idealistic Plot:" if you're making a plot ideas generator, also it's not clear if the one plot should just keep going further, so we can be clearer about the output format

Plot Idea
A woman after loosing her husband in a tragic accident she was blamed for by the community, in time returns to her home town, falls in love again with a bartender, later she finds out he was her husbands best friend.
Plot Idea
++The story of this movie revolves around two men who have become separated. One man decides that his wife will not return and starts making phone calls on an unknown number trying desperately find someone else but no one answers him. 
playground

Great results! It's important to note that the writing style and length matches the length of the first example

Having more examples can be used to guide the generation to be more succinct or longer

Plot Idea
A woman looses her husband, falls in love with her husbands best friend, she never knew.
Plot Idea
++The film is a comedy that features the story of two sisters who are friends and work as teachers. In order to get married they decide on getting pregnant but one day their mother comes home from college where he was teaching there for some time now so it would be difficult if not impossible just because his wife had left him before coming back here again or else how could we imagine something like this?
playground

Okay so that didn't work to make the language more succinct, it waffles at the end, this could be controlled with the max_sentences parameter to only generate the first

Or we could keep going to add more succinct examples

4 Shot

Plot Idea
A woman looses her husband, falls in love with her husbands best friend, she never knew.
Plot Idea
Two sisters are friends, work as teachers, fall in love with the same teacher who has a crazy ex wife.
Plot Idea
A woman gets trapped travelling overseas in the pandemic, on her way home she finds love and forgets where home is.
Plot Idea
A man realises his company is hurting people for increased profit and decides to become a whisleblower and fake his own death.
Plot Idea
++The two lovers go out together but realise they have no common ground. They end up staying apart when one of them learns he loves another person.
            
playground

More examples helps with harder to guess details like how long and terse language should be

Caveats

With zero and few shot examples, and simpler formatted prompts, it's less likely for the context of unrelated prompts to spill over, keep the language+topic the same as the expected output, including too much foreign language or code may cause the model to generate that language/code

Plug

Text Generator offers an API for text and code generation. Secure (no PII is stored on our servers), affordable, flexible and accurate.

Note with Text Generator you aren't charged for tokens and can generate up to 100 examples in a single request which adds to diversity of results.

Try examples yourself at: Text Generator Playground