Artificial Intelligence (Previously "Chat GPT")
-
-
@voodoo think of tokens as words or symbols. The idea being you prompt the language model rather than give it full context (or an entire sentence), providing freedom for the model to generate a response in a certain manner.
Example from chatgpt itself:
Let's say we have a language model trained on various texts, including cooking recipes. The user wants to generate a new recipe for chocolate cake, but they want to ensure that the recipe includes specific ingredients like cocoa powder and vanilla extract.
Instead of providing the entire recipe context, the user could provide a token prompt like this:
Chocolate cake recipe: Ingredients: [Cocoa powder], [Vanilla extract], ...
In this prompt, the user has highlighted the key ingredients they want to include in the recipe by enclosing them in square brackets. The model can then generate the rest of the recipe based on this prompt, incorporating the provided ingredients while also adding its own language generation to complete the recipe instructions.
The model might generate something like:
Chocolate Cake Recipe: Ingredients: - 2 cups all-purpose flour - 1 3/4 cups granulated sugar - 3/4 cup unsweetened cocoa powder - 1 1/2 teaspoons baking powder - 1 1/2 teaspoons baking soda - 1 teaspoon salt - 2 eggs - 1 cup milk - 1/2 cup vegetable oil - 2 teaspoons vanilla extract - 1 cup boiling water Instructions: 1. Preheat oven to 350°F (175°C). Grease and flour two 9-inch round cake pans. 2. In a large bowl, mix together flour, sugar, cocoa powder, baking powder, baking soda, and salt. 3. Add eggs, milk, oil, and vanilla extract to the dry ingredients and beat on medium speed for 2 minutes. 4. Stir in boiling water until the batter is well combined. 5. Pour the batter evenly into the prepared pans. 6. Bake in preheated oven for 30 to 35 minutes, or until a toothpick inserted into the center comes out clean. 7. Allow cakes to cool in pans for 10 minutes, then remove from pans and cool completely on wire racks before frosting. Enjoy your delicious chocolate cake!
Or another example. You prompt:
[Token Prompt] The detective walked into the dimly lit room and saw ________.
And it takes that and responds with the following:
[Generated Text] The detective walked into the dimly lit room and saw a shadowy figure lurking in the corner.
-
Short version is you give it some information, like a book on war world 2, and you can ask questions about it. ChatGPT could have an article length, Gemini could have multiple large books.
More information for it to undestand context and give better answers.
-
-
Chat GPT4 response:
Title: Hard Justice
Genre: Action, Comedy, Crime
Tagline: They're not partners. They're enemies. But they have to work together to stop a ruthless crime boss.Plot: Michael Ironside plays Jack Stone, a tough-as-nails detective who doesn't play by the rules. Kurtwood Smith plays Frank Wilson, a by-the-book FBI agent who is assigned to work with Stone on a high-profile case. The two men hate each other and constantly clash over their methods and personalities. But they have to put aside their differences when they discover that the case involves a notorious crime boss named Victor Mancini (played by Joe Pesci), who is planning to pull off the biggest heist in history. Stone and Wilson have to infiltrate Mancini's gang, dodge bullets, crack jokes, and survive explosions as they race against time to stop the heist and bring Mancini to justice.
-
Can someone who's good at prompts please try out something like this?
Generate an outline of an 80s buddy cop movie starring Michael Ironside and Kurtwood Smith.
Title: Hard Justice
Genre: Action, Comedy, Crime
Tagline: They're not partners. They're enemies. But they have to work together to stop a ruthless drug lord.
Plot: Michael Ironside plays Jack Stone, a tough-as-nails LAPD detective who doesn't play by the rules. Kurtwood Smith plays Frank Wilson, a by-the-book FBI agent who is sent to Los Angeles to oversee a major drug bust. When their paths cross, they immediately clash over their methods and personalities. But they soon realize that they have a common enemy: Carlos Mendez, a notorious drug lord who is planning to unleash a new synthetic drug on the streets of LA. Mendez has a personal vendetta against Stone, who killed his brother in a previous encounter. Mendez also has a mole inside the FBI, who is feeding him information and sabotaging the operation. Stone and Wilson have to put aside their differences and work together to stop Mendez before he kills them and destroys the city.
Cast:
- Michael Ironside as Jack Stone
- Kurtwood Smith as Frank Wilson
- Edward James Olmos as Carlos Mendez
- Ally Sheedy as Lisa Stone, Jack's estranged wife
- Ernie Hudson as Captain Jones, Jack's boss
- John Cusack as Danny, a young hacker who helps Stone and Wilson
- Brion James as Max, Mendez's right-hand man
- Grace Jones as Zara, Mendez's girlfriend and assassin
-
More 80s excess!
Title: Hard Justice
Genre: Action, Comedy, Crime
Tagline: They're not partners. They're enemies. But they have to work together to stop a ruthless drug lord.
Plot: Michael Ironside plays Jack Stone, a tough-as-nails LAPD detective who doesn't play by the rules. Kurtwood Smith plays Frank Wilson, a by-the-book FBI agent who is sent to Los Angeles to oversee a major drug bust. When their paths cross, they immediately clash over their methods and personalities. But they soon realize that they have a common enemy: Carlos Mendez, a notorious drug lord who is planning to unleash a new synthetic drug on the streets of LA. Mendez has a personal vendetta against Stone, who killed his brother in a previous encounter. Mendez also has a mole inside the FBI, who is feeding him information and sabotaging the operation. Stone and Wilson have to put aside their differences and work together to stop Mendez before he kills them and destroys the city.
Cast:
- Michael Ironside as Jack Stone
- Kurtwood Smith as Frank Wilson
- Edward James Olmos as Carlos Mendez
- Ally Sheedy as Lisa Stone, Jack's estranged wife
- Ernie Hudson as Captain Jones, Jack's boss
- John Cusack as Danny, a young hacker who helps Stone and Wilson
- Brion James as Max, Mendez's right-hand man
- Grace Jones as Zara, Mendez's girlfriend and assassin
New additions:
- The movie opens with a violent shootout between Stone and Mendez's men at a nightclub, where Stone kills Mendez's brother and barely escapes with his life. The scene is set to a synth-pop song by Depeche Mode.
- Wilson arrives in LA and meets Stone at the airport, where they have a heated argument over their luggage, badges, and guns. Wilson insults Stone's leather jacket and mullet, while Stone mocks Wilson's suit and glasses. They are interrupted by a car bomb planted by Mendez, who calls Stone and taunts him.
- Stone and Wilson track down Danny, a young hacker who has access to Mendez's network. They find him at a video arcade, where he is playing Pac-Man. They convince him to help them by offering him money and pizza. Danny hacks into Mendez's system and reveals the location of his drug lab.
- Stone and Wilson raid the drug lab, where they encounter Zara, Mendez's girlfriend and assassin. Zara is a femme fatale who wears a leather catsuit and wields a whip. She fights with Stone and Wilson, but escapes after setting the lab on fire. Stone and Wilson manage to blow up the lab and steal a sample of the new drug.
- Stone and Wilson analyze the drug sample and discover that it is a highly addictive and lethal substance that causes hallucinations and paranoia. They realize that Mendez is planning to distribute the drug to the gangs of LA and start a war. They also learn that Mendez has a mole inside the FBI who is leaking information to him.
- Stone and Wilson confront the mole, who turns out to be Wilson's partner, who has been working with Mendez for money and power. The mole shoots Wilson in the shoulder and escapes with the drug sample. Stone and Wilson chase him in a car, but the mole crashes into a gas station and explodes.
- Stone and Wilson receive a call from Mendez, who tells them that he has kidnapped Lisa, Stone's estranged wife, and is holding her hostage at his penthouse. He gives Stone an ultimatum: either he surrenders himself and the drug sample, or he kills Lisa and blows up the city. Stone agrees to the deal, but Wilson refuses to let him go alone.
- Stone and Wilson infiltrate Mendez's penthouse, where they face off against Zara, Max, and dozens of henchmen. They fight their way through the building, using guns, knives, and fists. They reach the roof, where Mendez is waiting for them with Lisa and a helicopter. Mendez reveals that he has planted bombs all over the city, and that he will detonate them unless Stone gives him the drug sample. Stone pretends to comply, but then throws the drug sample at Mendez, causing him to drop his detonator. Stone and Wilson shoot Mendez and his men, while Lisa kicks Zara off the roof. Stone and Wilson jump into the helicopter and fly away, while the penthouse explodes behind them.
- The movie ends with Stone and Wilson becoming friends and partners, and Stone reconciling with Lisa. They fly over the city, while a rock song by Bon Jovi plays in the background. The credits roll.