🎓CURSO PROMPT ENGINEERING en Español - GRATIS - 🤖CLASE 04- ESTRUCTURA DE LOS PROMPTS
Introduction to Pro Elements
Overview of the Course
- Joaquín Barberá introduces himself and the course, emphasizing the importance of understanding the fundamental elements that make up a "Pro."
- The session will focus on three essential components: action, modifiers, and data.
Understanding Action
- The first element discussed is "action," which defines what the model should do, typically represented by verbs like "write," "summarize," or "translate."
- Multiple actions can exist within a single Pro; however, it’s crucial to analyze whether to combine them into one Pro or separate them into distinct ones.
Examples of Actions in Pro
Practical Application
- An example provided is for a primary school teacher tasked with summarizing text for 9-year-olds. This illustrates how actions are framed within specific contexts.
- Demonstration using OpenAI's Da Vinci model shows how to set parameters like temperature and maximum length before submitting a prompt.
Modifiers in Pro
Role of Modifiers
- Modifiers are introduced as critical elements that shape and constrain the results produced by the model.
- Examples include specifying word limits or particular formats (e.g., summarizing a poem or post).
Types of Modifiers
- Various types of modifiers are discussed:
- Role Modifier: Defines AI's persona (e.g., “you are an expert copywriter”).
- Subject Modifier: Specifies topics (e.g., “write about relativity”).
- Text Type Modifier: Determines format (e.g., “write a Facebook post”).
Advanced Modifiers
Additional Constraints
- Length modifiers restrict response size (e.g., “300 words”).
- Audience modifiers tailor content for specific age groups (e.g., “for children aged 12”).
Format and Structure Modifiers
- These dictate overall structure, such as creating lists or tables.
Complex Modifiers: Text Insertions
Inserting Text in Prompts
- The concept of text insertions allows users to specify where certain information should be included within generated responses.
Describing a Dog with AI
Introduction to AI Text Modification
- The speaker introduces the concept of using artificial intelligence (AI) to rewrite text, specifically focusing on creating a description of a dog named Rocky.
- Juan, a child who loves animals, particularly dogs, finds Rocky and they become best friends. The narrative emphasizes their daily interactions and companionship.
Inserting Descriptions into Text
- The process involves inserting descriptive text about Rocky at a specified position in the original narrative using an insertion modifier.
- The AI generates a description of Rocky as having black fur and white spots around his eyes, enhancing the initial story provided by Juan.
Utilizing Specific Data in AI Responses
- The speaker discusses how to provide specific data for the AI to incorporate into its responses. This can be done inline or separately from the main text.
- An example is given where the user requests information about Severo Ochoa while ensuring that specific details are included in the response.
Example: Severo Ochoa's School
- The model responds with information about a fictional school named after Severo Ochoa in Torre Pacheco, highlighting its prestige and educational quality.
- It is noted that this school does not actually exist; thus, it illustrates how AI can fabricate details based on user prompts.
Providing Additional Context for Business Plans
- Another scenario presented involves supplying data for an imaginary business plan. Users must provide necessary details for effective output from the AI.
- A structured prompt is shown where users specify genre, character traits, and context for generating creative content like novel titles and plots.
Conclusion: Structuring Effective Prompts
- Emphasizes the importance of clear structuring in prompts when interacting with AI to achieve desired outcomes effectively.
Exploring Potential Titles and Arguments for a Novel
Title 1: Ciudad Desértica
- In a near-future scenario, humanity faces a permanent drought that transforms the world. A renowned scientist in artificial intelligence resides in Cartagena, where access to saltwater is vital for survival.
- The protagonist, Pedro, creates Puzzi, an AI with a robotic body capable of performing various tasks. Together, they embark on a dangerous quest to uncover a hidden sustainable water source within the city.
- As they delve into Cartagena's underbelly, they confront corporate intrigues and rising social unrest that threaten to plunge the city into chaos.
Title 2: Sombras de Neón
- Set in 2030, Cartagena has evolved into a futuristic metropolis illuminated by neon lights and dominated by powerful corporations.
- Pedro's creation of Puzzi leads them to discover a conspiracy involving these corporations aiming to control and manipulate the population through technology.
- Their struggle against this manipulation forces them to question reality and humanity itself as they navigate deeper conspiracies than anticipated.
Title 3: Crónicas del Malecón
- In this dystopian future marked by perpetual drought pushing humanity towards extinction, Pedro lives in Cartagena—a coastal oasis due to its access to saltwater.
- He develops Puzzi to assist him in finding sustainable solutions for water scarcity. However, when a powerful cartel seizes control of the water supply, they are drawn into an undercover war over valuable resources.