<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Amit Sarkar</title>
    <description>The latest articles on DEV Community by Amit Sarkar (@ameet).</description>
    <link>https://dev.to/ameet</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1592714%2Fbb18307f-70ba-4859-ba91-1dcb85a4a59a.jpg</url>
      <title>DEV Community: Amit Sarkar</title>
      <link>https://dev.to/ameet</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ameet"/>
    <language>en</language>
    <item>
      <title>Building the Foundation: Your Pathway to Mastery in Prompt Engineering.</title>
      <dc:creator>Amit Sarkar</dc:creator>
      <pubDate>Mon, 08 Jul 2024 17:51:27 +0000</pubDate>
      <link>https://dev.to/ameet/building-the-foundation-your-pathway-to-mastery-in-prompt-engineering-oh3</link>
      <guid>https://dev.to/ameet/building-the-foundation-your-pathway-to-mastery-in-prompt-engineering-oh3</guid>
      <description>&lt;p&gt;&lt;strong&gt;Building the Foundation: Your Pathway to Mastery in Prompt Engineering&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Greetings, courageous adventurer! You are about to embark on an intriguing journey through the domain of AI prompt engineering, poised to &lt;br&gt;
learn, experiment, and innovate. This series serves as your compass, a powerful guide that will navigate you from novice to adept. Remember, each stride on this journey is a steppingstone towards mastering prompt engineering, a skill that you are absolutely capable of acquiring. &lt;/p&gt;

&lt;p&gt;Though some of the initial codes are from my book on prompt engineering (revised edition will be released by the end of the month), the basic concepts of prompt engineering remain the same. &lt;br&gt;
&lt;strong&gt;We will apply these principles while using Bedrock and the foundation models to develop real-life products. Follow along with me here and other places where I will share my own product development experience.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I am on a mission to build a tribe of AI product developers so that you rule the job market, not the other way around. A sure path to get a job fast if you follow along with me. I believe in you, and I am thrilled to walk alongside you on this exhilarating journey. Your fundamentals will be solid, your knowledge expansive, and your future as a prompt engineering expert bright. Here's to the journey ahead, and the mastery that awaits at the end!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fngfj8r20izd021hh06aa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fngfj8r20izd021hh06aa.png" alt="Image description" width="800" height="460"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Here's a sneak peek at the treasures awaiting you in this journey!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;1.Super-Basic Prompts: Just like a baby's first words, we will start with the simple, foundational aspects of AI prompts.&lt;br&gt;
2.The Recipe for a Prompt: Discover the ingredients of a successful prompt and how they blend together.&lt;br&gt;
3.Placing Instructions at the Forefront of the Prompt: Understand the importance of clear, upfront instructions for garnering desired responses.&lt;br&gt;
4.Prompts Aimed at Extracting Specific Info: Unleash the power of targeted prompts for precision extraction of information.&lt;br&gt;
5.Zero-Shot Prompting: Delve into the mysterious world of zero-shot prompting and understand its intricacies.&lt;br&gt;
6.One-Shot Prompting: Take a step further into one-shot prompting, witnessing the power of example-driven interactions.&lt;br&gt;
7.Few-Shot Prompting: Traverse the nuanced landscape of few-shot prompting, where multiple examples guide your AI.&lt;br&gt;
8.Setting a Role for ChatGPT: Play director in your own AI movie, setting roles and dictating performances.&lt;br&gt;
9.Encouraging Questions in a Prompt: Discover how to spark curiosity within the AI model, encouraging a more dynamic exchange.&lt;br&gt;
10.Explicit Prompts: Master the art of directness, commanding your AI to provide the exact response you seek.&lt;br&gt;
11.Ambiguous Scenarios: Learn to navigate the foggy waters of ambiguity, drawing clarity from the AI's understanding.&lt;br&gt;
12.Emulating a Dialogue: Step into the theatre of conversation, learning to orchestrate engaging back-and-forth with your AI.&lt;br&gt;
13.Setting Your Own Role in a Prompt: Put yourself into the script, enhancing the personalization and relevance of the AI's responses.&lt;br&gt;
14.And now, for the grand finale - an impressive array of 40 practice assignments, carefully distributed with 5 at the conclusion of each topic. This deliberate arrangement ensures that you thoroughly comprehend and master each topic before progr&lt;br&gt;
essing to the next. These exercises are purposefully designed to cement your burgeoning skills, setting you on the path to true proficiency in the art of prompt engineering.&lt;br&gt;
Feel the buzz of anticipation yet? Let's forge ahead, for this journey is one of discovery, transformation, and immense learning. You're about to become an expert, and we can't wait to see the magic you will create. Onward, prompt engineer!&lt;br&gt;
 &lt;/p&gt;

</description>
      <category>aws</category>
      <category>promptengineering</category>
      <category>genai</category>
      <category>anthropic</category>
    </item>
    <item>
      <title>Innovate! Don't Waste Your Skills. Think Like Wright Brothers!</title>
      <dc:creator>Amit Sarkar</dc:creator>
      <pubDate>Fri, 05 Jul 2024 23:08:01 +0000</pubDate>
      <link>https://dev.to/ameet/innovate-dont-waste-your-skills-think-like-wright-brothers-52o3</link>
      <guid>https://dev.to/ameet/innovate-dont-waste-your-skills-think-like-wright-brothers-52o3</guid>
      <description>&lt;p&gt;*&lt;em&gt;Prioritizing engineering reasoning and critical thinking, akin to the Wright Brothers’ innovative mindset, is crucial for executives and technical managers to drive company-wide innovation. These skills enable the anticipation of trends, the solving of complex problems, and the fostering of a creative, problem-solving culture. By embedding these principles at the core of a company’s ethos, it not only leads to groundbreaking advancements but also secures a competitive market position. *&lt;/em&gt;&lt;/p&gt;

</description>
      <category>innovation</category>
      <category>ai</category>
      <category>genai</category>
      <category>aws</category>
    </item>
    <item>
      <title>Learn AI The Best Way Bite Size</title>
      <dc:creator>Amit Sarkar</dc:creator>
      <pubDate>Fri, 05 Jul 2024 18:37:50 +0000</pubDate>
      <link>https://dev.to/aws-builders/learn-ai-the-best-way-bite-size-460p</link>
      <guid>https://dev.to/aws-builders/learn-ai-the-best-way-bite-size-460p</guid>
      <description>&lt;p&gt;&lt;strong&gt;Learn AI From My Own Product Development Experience.If You Do That The Entire Silicon Valley Will Open For You. I will post  technical articles here and will give you everything you need. I will share my entire git repo with you. Prerequiste: Python Proficiency. I can give you a free book in the future. I am too busy for that now.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What you will learn.&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Prompt Engineering - The real Deep Dive not any Kindle book vodoo " Learn 100 prompts that will make you rich" You have seen such hypes all over. If it is that simple, trust me I would be flying in my private jet by now.&lt;/li&gt;
&lt;li&gt;Lang Chain&lt;/li&gt;
&lt;li&gt;Vector Database. Pinecone as well as MongoDB Atlas&lt;/li&gt;
&lt;li&gt;Amazon Bedrock&lt;/li&gt;
&lt;li&gt;Amazon Q&lt;/li&gt;
&lt;li&gt;Amazon CodeWhisperer&lt;/li&gt;
&lt;li&gt;Amazon Lambda&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Once you learn and master all these then comes how you can build a product. I will share my real life experience on that. Wait Dude, not so fast. You need to have engineering reasoning and critical thinking skills to be an innovator. So, watch this first. I know you are busy but spend next 5 minutes and watch this for an important message. [&lt;a href="https://www.youtube.com/watch?v=_7hIqf7skiQ" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=_7hIqf7skiQ&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;Here is your first lesson on prompt engineering. You can run this on Google Colab or any Jupyter Notebook.&lt;/p&gt;

&lt;p&gt;!pip install openai&lt;/p&gt;

&lt;p&gt;from openai import OpenAI&lt;br&gt;
client = OpenAI(&lt;br&gt;
    api_key = 'your openai apikey',&lt;br&gt;
)&lt;br&gt;
**&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Define the prompt for the language model&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;prompt = 'Write an essay about the History of the Silicon Valley and how this place literally changed the world'&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;# Call the OpenAI API with the specified model, prompt, maximum token length, and temperature&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;output = client.completions.create(&lt;br&gt;
    model="gpt-3.5-turbo-instruct",&lt;br&gt;
    prompt=prompt,&lt;br&gt;
    max_tokens=1000,&lt;br&gt;
    temperature=0.5 )&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;# Print the generated text&lt;/strong&gt;&lt;br&gt;
print(output.choices[0].text)&lt;br&gt;
**&lt;br&gt;
Here is a line-by-line explanation of the code:**&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;“import openai” - This line imports the OpenAI library into your Python environment. This library allows our program to interact with OpenAI's APIs, which include language models like GPT-3.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;“secret_key” = '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'&lt;code&gt;- This line sets your OpenAI API secret key to a variable named&lt;/code&gt;secret_key`. You will need to replace this with your actual secret key. I have used my secret_key here to show you how to use it. I will delete this secret key as soon I publish this here.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;“openai.api_key” = secret_key - This line assigns the secret key to the OpenAI API key. This authenticates your application with OpenAI's servers.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;“prompt” = 'Write an essay about the History of the Silicon Valley and how this place literally changed the world'&lt;code&gt; - This line sets the variable 'prompt&lt;/code&gt; to the text that will be used to prompt the language model.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;“output” = openai.Completion.create( )- This line starts the call to OpenAI's API to create a new text completion. The result of this call will be stored in the &lt;code&gt;output&lt;/code&gt; variable. openai.Completion.create() function generates text based on the provided prompt using the specified engine.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;“model”="gpt-3.5-turbo-instruct",` - This specifies the language model to be used for the text generation task. In this case, the "gpt-3.5-turbo-instruct" model is being used.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;“prompt=prompt” - This feeds in the &lt;code&gt;prompt&lt;/code&gt; variable defined earlier to the language model.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;“max_tokens=1000” - This line tells the API to limit the response to 1000 tokens (a token can be as short as one character or as long as one word).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;“temperature=0.5” - This sets the randomness of the output. Lower values (closer to 0) make the output more deterministic and focused, while higher values (closer to 1) produce more diverse and creative outputs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;“print(output.choices[0].text)” - This line prints the generated text. The API returns a list of choices (though by default it is only one choice). This command prints the text field of the first choice.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;By running this single program, you have achieved many critical tasks. You learned to:&lt;br&gt;
• Import the OpenAI API library&lt;br&gt;
• Assign your API key to a variable&lt;br&gt;
• Set the OpenAI API key for authentication&lt;br&gt;
• Define the prompt for the language model&lt;br&gt;
• Call the OpenAI API with the specified model, prompt, maximum &lt;br&gt;
        token length, and temperature&lt;br&gt;
• Print the generated text&lt;br&gt;
This is a monumental accomplishment!&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Please make your comments. I need your feedback. Stay here for regular new code uploads. Once you master this you can join my tribe of start up entrepreneurs or get a job at Silicon Valley. Who knows! AWS might hire you. *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do you know the famous motivational speaker Tony Robins always says "Live with passion". Hey Tony, with all due respect dude you are wrong! My mantra is "You will have to be obsessed with something to become unstoppable"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I am obsessed with AI and AWS as well. Are you?&lt;/p&gt;

</description>
      <category>aws</category>
      <category>bedrock</category>
      <category>ai</category>
      <category>anthropic</category>
    </item>
    <item>
      <title>Learn Generative AI from Real Product Development Experience</title>
      <dc:creator>Amit Sarkar</dc:creator>
      <pubDate>Tue, 02 Jul 2024 19:16:19 +0000</pubDate>
      <link>https://dev.to/aws-builders/learn-generative-ai-from-real-product-development-experince-1eci</link>
      <guid>https://dev.to/aws-builders/learn-generative-ai-from-real-product-development-experince-1eci</guid>
      <description>&lt;p&gt;&lt;strong&gt;Learn Generative AI from Real Product Development Experience. Yes, you heard that right!&lt;/strong&gt; &lt;a href="https://www.meetup.com/meetup-group-komabzoz/events/301904960/" rel="noopener noreferrer"&gt;https://www.meetup.com/meetup-group-komabzoz/events/301904960/&lt;/a&gt; &lt;br&gt;
Join us every 2nd Thursday of the month to learn Generative AI from actual product development experience. I will share my insights and experiences working on two Generative AI products on the AWS platform using Anthropic, Vector Database, and several other services.&lt;br&gt;
The first product is scheduled to go live by the end of July 2024. This series of hands-on workshops will cover:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generative AI&lt;/li&gt;
&lt;li&gt;Prompt Engineering&lt;/li&gt;
&lt;li&gt;Vector Database&lt;/li&gt;
&lt;li&gt;Building Software with Generative AI&lt;/li&gt;
&lt;li&gt;Generative AI and the Future of Work
Come and join me in this jaw-dropping hands-on session on Generative AI. Each month, you'll learn something new and get closer to developing your own product or starting an exciting career in the rapidly growing field of Generative AI.
Don't miss out on this incredible opportunity to dive into the world of Generative AI!
&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frvnrrawvkn6q6r6u9wko.png" alt="Image description" width="800" height="450"&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>aws</category>
      <category>ai</category>
      <category>genai</category>
      <category>llm</category>
    </item>
  </channel>
</rss>
