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