# Recipe # Zero to Hero with Gen AI iniciative ### Setup <hr style="border:2px solid gold"> 1. limpiar cache (si no quieres perder todo tu historial igual usar modo incognito ) 1.1 si mejor usar chrome, si usar en ingles todo. 3. abrir el console en incognito mode: click derecho sobre este [link](https://console.cloud.google.com/vertex-ai/studio/saved-prompts?project=qwiklabs-gcp-00-fa0403aa0bf0) y darle en abrir en incognito mode en caso de ser necesario editar el link y agregar solo el username del laboratorio. ![image](https://hackmd.io/_uploads/rkSjw1rs1g.png) ==**si**== pide login account debe ser la del manual : ![image](https://hackmd.io/_uploads/rkF6wyHoyx.png) ==<ins>**no** la personal **no** la de los creditos **no** nada</ins>== la que aparece en el lab ver la imagen de ejemplo: ![image](https://hackmd.io/_uploads/rynxdJHjkg.png) de esta imagen puede verse el *<ins>Username</ins>* que se utiliza **NO ES LA MISMA QUE LA DE LA IMAGEN EN CADA LAB PUEDE VARIAR** lo mismo el password. luego aceptar: ![image](https://hackmd.io/_uploads/B1kgFkSo1e.png) tick en el checkbox primero: ![image](https://hackmd.io/_uploads/Sy2-tySikg.png) luego click en agree and continue: ![image](https://hackmd.io/_uploads/H1sMY1Sjye.png) buscar el prompt manager en la barra de busqueda superior: ![image](https://hackmd.io/_uploads/rJYrt1Soke.png) ## TASK 1 <hr style="border:2px solid gold"> create new Freeform. ![image](https://hackmd.io/_uploads/S1HCiyHiyg.png) ![image](https://hackmd.io/_uploads/H1we21Ho1l.png) ![image](https://hackmd.io/_uploads/rJy-n1Sj1g.png) ![image](https://hackmd.io/_uploads/BkYbn1Ssye.png) ![image](https://hackmd.io/_uploads/r1F7n1ro1g.png) ![image](https://hackmd.io/_uploads/HJUE2kHi1e.png) Experiment with different prompts to generate the following: Short, descriptive text inspired by the image. Catchy phrases suitable for advertisements. A poetic description for a nature-focused campaign. ![image](https://hackmd.io/_uploads/ByOqnkHskg.png) ## TASK 2 <hr style="border:2px solid gold"> **Freeform** prompt with the ```gemini-2.0-flash-001``` **System instructions** `` Cymbal Direct is partnering with an outdoor gear retailer. They're launching a new line of products designed to encourage young people to explore the outdoors. Help them create catchy taglines for this product line. `` Include 2 Examples ![image](https://hackmd.io/_uploads/r1lH01Sokg.png) | Input | Output | |---|---| | Write a tagline for a durable backpack designed for hikers that makes them feel prepared. Consider styles like minimalist. | Built for the Journey: Your Adventure Essentials. | | Write a tagline for an eco-friendly rain jacket designed for families that makes them feel connected. Consider styles like playful, with a touch of humor. | Explore More, Worry Less. Weather the fun together! | "Develop a tagline for a sustainable rain jacket for families, aiming for a lighthearted and connection-focused message."| Puddle Jumpers United: Eco-Friendly Fun, Together! **Note: no need to be an expert, just ask for help in gemini** ![image](https://hackmd.io/_uploads/rkWQJxSskl.png) in the test box use this: Generate a tagline for a seasoned explorer's lightweight tent, using poetic style to evoke a feeling of liberation. ![image](https://hackmd.io/_uploads/r1O8Jeroyl.png) ![image](https://hackmd.io/_uploads/rJJOkgHiyx.png) ![image](https://hackmd.io/_uploads/HyMoygSo1e.png) pueden pasar cosas: ![image](https://hackmd.io/_uploads/HJXxglHiye.png) ![image](https://hackmd.io/_uploads/r1uQxeHoJe.png) ![image](https://hackmd.io/_uploads/SJdKxxHi1g.png) ## TASK 3 <hr style="border:2px solid gold"> open workbench then _JUPYTER LAB_ siempre usar python kernel ![image](https://hackmd.io/_uploads/BkKkWlHokx.png) el jupyter notebook se creara a partir de los prompts que se crearon en ==TASK1== y ==TASK2== regresamos al prompt manager y seleccionamos el de Cymbal Product Analisys luego : ![image](https://hackmd.io/_uploads/rkya-gHs1e.png) ![image](https://hackmd.io/_uploads/rydBGeBiJg.png) copiar y pegar el codigo en el jupyterlab del workbench: ![image](https://hackmd.io/_uploads/ryMNMgBjkg.png) eliminar esta linea del primer bloque: ```gcloud auth application-default login``` recuerden revisar este : ![image](https://hackmd.io/_uploads/SkJwXxSs1e.png) ![image](https://hackmd.io/_uploads/HJF_mgriyl.png) ![image](https://hackmd.io/_uploads/BJrsExSiJe.png) el kernel debe estar en idle ![image](https://hackmd.io/_uploads/rygcXgBjke.png) enseguida modificar el segundo bloque buscar esto """ algo """ y colocarle un nuevo wording ![image](https://hackmd.io/_uploads/S1-07eHiJl.png) ya despues se ejecuta y solo se tiene un output: ![image](https://hackmd.io/_uploads/Byfn7lBo1e.png) renomb rar a este ```image-analysis.ipynb``` para que cuente en el task y hagan check en avances: ![image](https://hackmd.io/_uploads/S1HHExSi1l.png) ## TASK 4 <hr style="border:2px solid gold"> ![image](https://hackmd.io/_uploads/SkNESxrj1l.png) ![image](https://hackmd.io/_uploads/Hy3Yrlroyl.png) ![image](https://hackmd.io/_uploads/rJsABlBs1x.png) yo termine en este tiempo: ![image](https://hackmd.io/_uploads/BJx8Lerike.png) ## EOF <hr style="border:2px solid red">