<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chaitanya Korupathi on Medium]]></title>
        <description><![CDATA[Stories by Chaitanya Korupathi on Medium]]></description>
        <link>https://medium.com/@chaitanya.korupathi?source=rss-38ae23939546------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bDeMBQb1KlQ1q4J_.jpg</url>
            <title>Stories by Chaitanya Korupathi on Medium</title>
            <link>https://medium.com/@chaitanya.korupathi?source=rss-38ae23939546------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:00:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chaitanya.korupathi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Serverless E-learning App with Amazon Bedrock Knowledge Base and AWS Lambda]]></title>
            <link>https://medium.com/@chaitanya.korupathi/building-a-serverless-e-learning-app-with-amazon-bedrock-knowledge-base-and-aws-lambda-f7c519311b35?source=rss-38ae23939546------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7c519311b35</guid>
            <dc:creator><![CDATA[Chaitanya Korupathi]]></dc:creator>
            <pubDate>Thu, 28 Nov 2024 06:03:30 GMT</pubDate>
            <atom:updated>2024-11-28T06:03:30.394Z</atom:updated>
            <content:encoded><![CDATA[<p>This guide will walk you through creating a serverless E-learning app using AWS services like Amazon S3, Amazon Bedrock’s Knowledge Base, AWS Lambda, and API Gateway. The goal is to allow users to ask questions and receive responses based on a knowledge base that references documents stored in Amazon S3.</p><h3>Overview</h3><p>Imagine an E-learning platform where users can query specific AWS migration details. By uploading AWS service documents to an S3 bucket and creating a knowledge base in Amazon Bedrock, the app can retrieve information using Bedrock’s Claude foundational model and serve responses through a Lambda function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-mS1rSIAfYuJgSnUn6sE9w.png" /></figure><h3>Step 1: Set Up Amazon S3 and Knowledge Base</h3><ol><li><strong>Create an S3 Bucket</strong></li></ol><ul><li>Go to the <strong>S3 Console</strong> and select <strong>Create bucket</strong>.</li><li>Name the bucket (e.g., knowledgebase), choose a region, and keep default settings.</li><li>After creation, upload documents related to AWS services into this bucket to serve as your knowledge base data source.</li></ul><p><strong>2. Create and Test Amazon Bedrock Knowledge Base</strong></p><ul><li>Go to <strong>Amazon Bedrock</strong> Console and select <strong>Knowledge Base</strong> &gt; <strong>Create Knowledge Base</strong>.</li><li>Name the knowledge base, add a description, and under <strong>IAM permissions</strong>, select <strong>Create and use a new service role</strong>.</li><li>Under <strong>Data Source</strong>, click <strong>Browse S3</strong> and select the bucket you created. For chunking and embedding, use default settings.</li><li>Choose <strong>Quick create a new vector store</strong> to set up an Amazon OpenSearch vector store for storing embeddings.</li><li>Complete the setup by reviewing and creating the knowledge base. Then click <strong>Sync</strong> to populate the knowledge base.</li></ul><p><strong>3. Test the Knowledge Base</strong></p><ul><li>Once the sync is complete, use the <strong>Test Knowledge Base</strong> option to verify that the setup is functional:<br>- Click <strong>Select Model</strong> and choose the Claude foundational model (e.g., Claude Instant 1.2 v1.2).<br>- In the query box, input a sample question (e.g., “Which EBS volume to use for high IOPS?”).<br>- Click <strong>Run</strong> to confirm the model’s response is based on your uploaded documents.</li><li><em>Note</em>: After testing, remember to delete both the Knowledge Base and associated vector store if they’re no longer needed to avoid incurring charges.</li></ul><h3>Step 2: Set Up and Configure the Lambda Function</h3><ol><li><strong>Create a Lambda Function</strong></li></ol><ul><li>Go to the <strong>Lambda Console</strong> and select <strong>Create Function</strong>.</li><li>Choose <strong>Author from scratch</strong>, name the function (e.g., E-learningAppFunction), select <strong>Python 3.12</strong> as the runtime, and then click <strong>Create Function</strong>.</li></ul><p><strong>2. Configure the Lambda Function</strong></p><ul><li>After creation, navigate to <strong>Configuration</strong> &gt; <strong>General Configuration</strong> and click <strong>Edit</strong>. Increase the timeout to 1 minute and save.</li><li>Go to <strong>Permissions</strong> &gt; <strong>Role Name</strong> (which links to your function’s role), and under <strong>Add permissions</strong>, select <strong>Attach Policies</strong>. Search for and attach the AmazonBedrockFullAccess policy to grant access to Bedrock services.</li></ul><p><strong>3. Add Code for the RetrieveAndGenerate API</strong></p><ul><li>In the <strong>Code</strong> tab of the Lambda function, add the following code to handle the retrieval of knowledge base information using the RetrieveAndGenerate API. This code enables Lambda to pass the prompt to Bedrock, fetch the relevant content, and return it to the user.</li></ul><pre>import json<br>#1. import boto3<br>import boto3<br>#2 create client connection with bedrock<br>client_bedrock_knowledgebase = boto3.client(&#39;bedrock-agent-runtime&#39;)<br>def lambda_handler(event, context):<br>    #3 Store the user prompt<br>    print(event[&#39;prompt&#39;])<br>    user_prompt=event[&#39;prompt&#39;]<br>    # 4. Use retrieve and generate API<br>    client_knowledgebase = client_bedrock_knowledgebase.retrieve_and_generate(<br>    input={<br>        &#39;text&#39;: user_prompt<br>    },<br>    retrieveAndGenerateConfiguration={<br>        &#39;type&#39;: &#39;KNOWLEDGE_BASE&#39;,<br>        &#39;knowledgeBaseConfiguration&#39;: {<br>            &#39;knowledgeBaseId&#39;: &#39;O41RCIQ46A&#39;,<br>            &#39;modelArn&#39;: &#39;arn:aws:bedrock:us-west-2::foundation-model/anthropic.claude-instant-v1&#39;<br>                }<br>            })<br>            <br>    # print(client_knowledgebase)     <br>    #print(client_knowledgebase[&#39;output&#39;][&#39;text&#39;])<br>    #print(client_knowledgebase[&#39;citations&#39;][0][&#39;generatedResponsePart&#39;][&#39;textResponsePart&#39;])<br>    response_kbase_final=client_knowledgebase[&#39;output&#39;][&#39;text&#39;]<br>    return {<br>        &#39;statusCode&#39;: 200,<br>        &#39;body&#39;: response_kbase_final<br>    }</pre><p>4. <strong>Deploy and Test Lambda</strong></p><ul><li>Click <strong>Deploy</strong> to save and deploy the code.</li><li>To test, go to <strong>Test</strong> &gt; <strong>Configure Test Event</strong> and create a test event with a JSON payload, such as:</li></ul><pre>{<br>  &quot;prompt&quot;: &quot;Which EBS volume for high IOPS?&quot;<br>}</pre><ul><li>Run the test and check <strong>CloudWatch Logs</strong> for any output or errors. The response should include the answer within the text field. If you see additional data like citations, modify the code to display only the relevant text response.</li></ul><h3>Step 3: Configure API Gateway for REST API Access</h3><p>To make the Lambda function accessible via an API, set up an API Gateway.</p><ol><li><strong>Create a REST API</strong></li></ol><ul><li>In the <strong>API Gateway Console</strong>, go to <strong>REST API</strong> &gt; <strong>Build</strong>. Provide a name for the API (e.g., E-learningAppAPI) and click <strong>Create API</strong>.</li></ul><p><strong>2. Configure the GET Method</strong></p><ul><li>In <strong>Resources</strong>, select <strong>Create Method</strong> and choose <strong>GET</strong>. Link this method to the Lambda function by specifying its name.</li></ul><p><strong>3. Add Query Parameters and Mapping Template</strong></p><ul><li>In <strong>Method Request</strong>, add a query string parameter named prompt and save.</li><li>Under <strong>Integration Request</strong> &gt; <strong>Mapping Templates</strong>, select <strong>application/json</strong> and paste the following JSON template:</li></ul><pre>{<br>  &quot;prompt&quot;: &quot;$input.params(&#39;prompt&#39;)&quot;<br>}</pre><p>4. <strong>Deploy the API</strong></p><ul><li>Click <strong>Deploy API</strong>, choose <strong>New Stage</strong>, give it a name (e.g., Prod), and deploy.</li><li>Test the API by going to <strong>API Gateway</strong> &gt; <strong>Resources</strong> &gt; <strong>Test</strong>. Enter a sample query like prompt=Which is the best compute resource? and check the response.</li></ul><h3>Step 4: Debugging Lambda Function Errors</h3><p>If you encounter an error like &quot;Unknown service: &#39;bedrock-agent-runtime&#39;&quot; when testing the Lambda function, follow these debugging steps:</p><ol><li><strong>Upgrade </strong><strong>boto3 Library Version in Lambda</strong></li></ol><ul><li>Create a Lambda Layer with an upgraded version of boto3:</li></ul><pre>mkdir -p boto3-layer/python<br>pip install boto3 -t boto3-layer/python<br>cd boto3-layer<br>zip -r boto3-layer.zip .</pre><ul><li>Go to <strong>Lambda Console</strong> &gt; <strong>Layers</strong> &gt; <strong>Create Layer</strong>. Upload boto3-layer.zip and add the layer to your function.</li></ul><p><strong>2. Update the Lambda Function’s Layers</strong></p><ul><li>Go to your Lambda function, click <strong>Layers</strong> &gt; <strong>Add a layer</strong>, and specify the ARN for the newly created boto3 layer.</li></ul><p><strong>3. Verify Output in CloudWatch</strong></p><ul><li>Check <strong>CloudWatch Logs</strong> for the specific error message and update the code or configurations as necessary.</li></ul><h3>Step 5: Clean Up Resources</h3><p>To avoid incurring charges after testing, clean up the resources:</p><ol><li><strong>Delete Knowledge Base and Vector Store</strong></li></ol><ul><li>In the Bedrock Console, select the Knowledge Base you created and delete it.</li><li>Go to <strong>Amazon OpenSearch Console</strong>, select the vector store associated with the knowledge base, and delete it.</li></ul><p><strong>2. Verify S3 and Lambda Deletions</strong></p><ul><li>Double-check the S3 bucket and Lambda function are no longer needed, then delete them if necessary.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7c519311b35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build a Multimodal Application with Amazon Bedrock and AWS Lambda]]></title>
            <link>https://medium.com/@chaitanya.korupathi/how-to-build-a-multimodal-application-with-amazon-bedrock-and-aws-lambda-74f00f6093f5?source=rss-38ae23939546------2</link>
            <guid isPermaLink="false">https://medium.com/p/74f00f6093f5</guid>
            <dc:creator><![CDATA[Chaitanya Korupathi]]></dc:creator>
            <pubDate>Sat, 26 Oct 2024 12:26:36 GMT</pubDate>
            <atom:updated>2024-10-26T12:26:36.730Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Step 1: Set Up IAM Role for Lambda and Bedrock Access</strong></h3><ol><li><strong>Create IAM Role</strong></li></ol><ul><li>Go to the IAM Console and click on <strong>Roles</strong> &gt; <strong>Create Role</strong>.</li><li>Choose <strong>AWS Service</strong> as the trusted entity, select <strong>Lambda</strong> as the use case, and click <strong>Next</strong>.</li></ul><p><strong>2. Attach Permissions</strong></p><ul><li>Search for and attach the following policies to grant your Lambda function access:<br>- AmazonS3FullAccess<br>- AmazonBedrockFullAccess</li><li>Name your role, e.g., BedrockLambdaRole, and click <strong>Create role</strong>.</li></ul><h3>Step 2: Configure S3 Bucket for Image Storage</h3><ol><li><strong>Create Bucket</strong></li></ol><ul><li>In the S3 Console, click <strong>Create bucket</strong> and name it (e.g., multimodal-app-images).</li><li>Select a region and keep default settings.</li></ul><h3>Step 3: Create the Lambda Function</h3><ol><li><strong>Create Function</strong></li></ol><ul><li>In the Lambda Console, click <strong>Create function</strong>, choose <strong>Author from scratch</strong>, and name the function MultimodalProcessingFunction.</li><li>Select Python 3.x as the runtime, Under <strong>Permissions</strong>, choose the option <strong>Use an existing role</strong> and select the role BedrockLambdaRole that is created earlier.</li></ul><h3>Step 4: Grant S3 Access to Lambda</h3><p>To ensure that your Lambda function can access and interact with the S3 bucket where images are stored, you need to configure the S3 bucket policy to allow Lambda permissions</p><ol><li><strong>Navigate to Your S3 Bucket</strong></li></ol><ul><li>Open the S3 Console, locate the bucket you created (e.g., multimodal-app-images), and select it.</li></ul><p><strong>2. Open the Permissions Tab</strong></p><ul><li>Go to the <strong>Permissions</strong> tab, scroll down to the <strong>Bucket Policy</strong> section, and click <strong>Edit</strong>. Here, you’ll define the specific actions that Lambda can perform on objects in this bucket.</li></ul><p><strong>3. Add a Bucket Policy for Lambda Access</strong></p><ul><li>Copy and paste the following JSON policy into the editor. Be sure to replace &quot;your-account-id&quot; with your actual AWS account ID, IAM role name with your IAM role name and &quot;bucket-name&quot; with the name of your bucket:</li></ul><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: {<br>        &quot;AWS&quot;: &quot;arn:aws:iam::137360334857:role/BedrockLambdaRole&quot;<br>      },<br>      &quot;Action&quot;: &quot;s3:GetObject&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:s3:::multimodal-app-images/*&quot;<br>    },<br>    {<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: {<br>        &quot;AWS&quot;: &quot;arn:aws:iam::137360334857:role/BedrockLambdaRole&quot;<br>      },<br>      &quot;Action&quot;: &quot;s3:PutObject&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:s3:::multimodal-app-images/*&quot;<br>    }<br>  ]<br>}</pre><ul><li>This policy allows the Lambda function assigned to BedrockLambdaRole to retrieve (GetObject) and store (PutObject) images in your S3 bucket.</li><li>Click <strong>Save</strong> to apply the policy to your bucket.</li></ul><p>This configuration enables the Lambda function to seamlessly interact with the S3 bucket, ensuring that it can retrieve images for processing and store any modified images or other output as required.</p><h3><strong>Step 5: Set Up Lambda Function for Multimodal Processing</strong></h3><p>Copy the following code to the Lambda function (MultimodalProcessingFunction) that we created earlier to process both text and images:</p><pre># Lambda Code for Text and Image Processing<br>import json<br>import boto3<br>import base64<br><br>s3_client = boto3.client(&#39;s3&#39;)<br><br>def lambda_handler(event, context):<br>    try:<br>        # Assuming &#39;image_s3_bucket&#39; and &#39;image_s3_key&#39; are provided in the event<br>        bucket = event[&#39;image&#39;][&#39;s3_bucket&#39;]<br>        key = event[&#39;image&#39;][&#39;s3_key&#39;]<br>        <br>        # Get the S3 object<br>        response = s3_client.get_object(Bucket=bucket, Key=key)<br>        <br>        # Read the StreamingBody of the S3 object<br>        image_content = response[&#39;Body&#39;].read()  # This converts StreamingBody to bytes<br>        <br>        # If you need to handle the image as base64 (for sending to Bedrock model)<br>        image_base64 = base64.b64encode(image_content).decode(&#39;utf-8&#39;)<br>        <br>        # Construct the payload for the Bedrock model<br>        model_payload = {<br>            &quot;modelId&quot;: &quot;anthropic.claude-3-sonnet-20240229-v1:0&quot;,<br>            &quot;contentType&quot;: &quot;application/json&quot;,<br>            &quot;accept&quot;: &quot;application/json&quot;,<br>            &quot;body&quot;: {<br>                &quot;anthropic_version&quot;: &quot;bedrock-2023-05-31&quot;,<br>                &quot;max_tokens&quot;: 1000,<br>                &quot;messages&quot;: [<br>                    {<br>                        &quot;role&quot;: &quot;user&quot;,<br>                        &quot;content&quot;: [<br>                            {<br>                                &quot;type&quot;: &quot;image&quot;,<br>                                &quot;source&quot;: {<br>                                    &quot;type&quot;: &quot;base64&quot;,<br>                                    &quot;media_type&quot;: &quot;image/jpeg&quot;,<br>                                    &quot;data&quot;: image_base64<br>                                }<br>                            },<br>                            {<br>                                &quot;type&quot;: &quot;text&quot;,<br>                                &quot;text&quot;: &quot;What&#39;s in this image?&quot;<br>                            }<br>                        ]<br>                    }<br>                ]<br>            }<br>        }<br>        <br>        # Invoke the Bedrock model with the payload<br>        bedrock_client = boto3.client(&#39;bedrock-runtime&#39;)<br>        text_response = bedrock_client.invoke_model(<br>            modelId=model_payload[&quot;modelId&quot;],<br>            contentType=model_payload[&quot;contentType&quot;],<br>            accept=model_payload[&quot;accept&quot;],<br>            body=json.dumps(model_payload[&quot;body&quot;])<br>        )<br>        <br>        # Process the response<br>        response_payload = json.loads(text_response[&#39;body&#39;].read().decode(&#39;utf-8&#39;))<br>        return {<br>            &#39;statusCode&#39;: 200,<br>            &#39;body&#39;: response_payload<br>        }<br><br>    except Exception as e:<br>        return {<br>            &#39;statusCode&#39;: 500,<br>            &#39;errorMessage&#39;: str(e)<br>        }</pre><p>The code processes both text and images using Amazon Bedrock’s language and vision models.</p><p><em>Note</em>: Replace bedrock-model-id with the correct ID for your Bedrock model.</p><p>Click <strong>Deploy</strong> to save the changes to your function</p><h3>Step 6: Test the Lambda Function</h3><ol><li><strong>Upload an Image</strong>: Upload a sample image to your S3 bucket to use in testing.</li><li><strong>Run a Manual Test</strong>: In the Lambda Console, test the function by creating a new test event with a following JSON payload that includes s3 bucket name, a sample image file and prompt.</li></ol><pre>{<br>  &quot;prompt&quot;: &quot;This product is damaged. Please assist.&quot;,<br>  &quot;image&quot;: {<br>    &quot;s3_bucket&quot;: &quot;multimodal-app-images&quot;,<br>    &quot;s3_key&quot;: &quot;damaged_product.jpg&quot;<br>  }<br>}</pre><p>Run the test and check the output in the <strong>Logs</strong> section of Lambda function.</p><h3>Step 7 (Optional): Set Up an S3 Trigger for Lambda</h3><p>If you want the Lambda function to automatically process images upon upload, follow these steps:</p><ol><li><strong>Enable Event Notifications</strong>: In the S3 bucket’s <strong>Properties</strong> tab, go to <strong>Event notifications</strong> and create a new event notification (e.g., “ImageUploadTrigger”) for <strong>All object create events</strong>.</li><li><strong>Assign Lambda as the Destination</strong>: Select your Lambda function as the destination for this event and save.</li></ol><h3>Streamlit Interface for a User-Friendly UI</h3><p>For a more interactive experience, you can deploy a Streamlit app that allows users to upload images and input text prompts. The app sends these inputs to the Lambda function, which processes the data and returns the result.</p><pre>import streamlit as st<br>import boto3<br>import requests<br>import base64<br>import json<br><br># AWS Lambda configuration<br>AWS_REGION = &#39;eu-central-1&#39;<br>LAMBDA_FUNCTION_NAME = &#39;MultimodalProcessingFunction&#39;<br><br># Initialize Boto3 client for Lambda<br>lambda_client = boto3.client(&#39;lambda&#39;, region_name=AWS_REGION)<br><br># Streamlit app<br>st.title(&quot;Multimodal Image &amp; Text Processing App&quot;)<br><br># Image Upload Section<br>uploaded_image = st.file_uploader(&quot;damaged_product.jpg&quot;, type=[&quot;jpg&quot;, &quot;jpeg&quot;, &quot;png&quot;])<br><br># Text Input Section<br>user_input_text = st.text_area(&quot;How many dogs are in this picture?&quot;)<br><br># Button to trigger processing<br>if st.button(&#39;Process&#39;):<br>    if uploaded_image and user_input_text:<br>        try:<br>            # Convert image to base64 for sending to Lambda<br>            image_bytes = uploaded_image.read()<br>            image_base64 = base64.b64encode(image_bytes).decode(&#39;utf-8&#39;)<br><br>            # Lambda payload<br>            payload = {<br>                &quot;image&quot;: {<br>                    &quot;s3_bucket&quot;: &quot;multimodal-app-images&quot;,  # Your S3 bucket name<br>                    &quot;s3_key&quot;: &quot;damaged_product.jpg&quot;  # Path to your image in S3<br>                },<br>                &quot;text_input&quot;: user_input_text<br>            }<br><br>            # Invoke Lambda function<br>            response = lambda_client.invoke(<br>                FunctionName=LAMBDA_FUNCTION_NAME,<br>                InvocationType=&#39;RequestResponse&#39;,<br>                Payload=json.dumps(payload)<br>            )<br><br>            # Read and decode the response<br>            response_payload = json.loads(response[&#39;Payload&#39;].read().decode(&#39;utf-8&#39;))<br><br>            # Display the response in the app<br>            st.success(&quot;Response from the model:&quot;)<br>            st.write(response_payload)<br><br>        except Exception as e:<br>            st.error(f&quot;Error: {e}&quot;)<br>    else:<br>        st.warning(&quot;Please upload an image and enter some text.&quot;)</pre><h4>Process: Deploying Streamlit on SageMaker</h4><ol><li><strong>Open SageMaker Studio</strong></li></ol><ul><li>Navigate to <strong>AWS SageMaker Console</strong> &gt; <strong>Domain</strong> and select an existing domain.</li><li>Under <strong>User Profiles</strong>, pick the user profile you want to work with, then launch SageMaker Studio.</li></ul><p><strong>2. Create a New Jupyter Space</strong></p><ul><li>In SageMaker Studio, select <strong>Jupyter Lab</strong> and create a new Jupyter Space if one isn’t already set up.</li></ul><p><strong>3. Set Up Streamlit Application in SageMaker</strong></p><ul><li>Inside Jupyter Lab, create a new Python file (e.g., app.py) and paste the Streamlit code provided above.</li></ul><p><strong>4. Install Necessary Libraries</strong></p><ul><li>Open a terminal within SageMaker Studio and install the required libraries:</li></ul><pre>pip install streamlit boto3</pre><p><strong>5. Run the Streamlit App</strong></p><ul><li>In the terminal, start the Streamlit server with the following command, adjusting app.py if you used a different file name:</li></ul><pre>streamlit run app.py --server.enableXsrfProtection false</pre><p><strong>6. Retrieve the Streamlit URL for Access</strong></p><ul><li>Copy the SageMaker Studio URL from the browser. Adjust the URL as follows: <br>- Replace everything after /default/ with proxy/8501/ (assuming 8501 is the port Streamlit uses).<br>- Your final URL might look like:<br>https://your-sagemaker-studio-url/proxy/8501/</li></ul><p><strong>7. Access and Test the App</strong></p><ul><li>Open this URL in your browser, and you’ll be able to upload an image and enter a text prompt to test the Lambda function via the Streamlit interface.</li></ul><h4>Below is how the Streamlit app finally looks like:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*dELAwbrsFDyJaGjT-2Uo2g.png" /></figure><p>Below is how the response looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*6OlQOZfJ5LTBBW-SzT7VIA.png" /></figure><p>Note: We have used the Image name (“damaged_product.jpg”) multiple times. Make sure to replace the Image name at all the places as per the Image name you use.</p><h3>Final Recap</h3><p>In this guide, we created a multimodal application capable of processing images and text inputs using Amazon Bedrock and AWS Lambda. This setup enables you to automate image and text recognition tasks, making it applicable to various industries.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74f00f6093f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Important things to know about Digital Marketing]]></title>
            <link>https://medium.com/@chaitanya.korupathi/5-important-things-to-know-about-digital-marketing-4cfbd7a4197b?source=rss-38ae23939546------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cfbd7a4197b</guid>
            <category><![CDATA[content-marketing]]></category>
            <category><![CDATA[digital-marketing]]></category>
            <dc:creator><![CDATA[Chaitanya Korupathi]]></dc:creator>
            <pubDate>Sun, 27 Feb 2022 13:52:34 GMT</pubDate>
            <atom:updated>2022-02-28T06:23:10.680Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you starting you journey in Digital Marketing? If yes, then this article is for you.</p><p>In this article we will learn about the following topics:</p><ul><li>The fundamentals of marketing</li><li>Digital marketing vs. Traditional marketing.</li><li><a href="https://healthyfarm.live/5-important-things-to-know-about-digital-marketing/">CATT</a> Marketing <a href="https://betashippers.com/how-to-start-using-marketing/">Funnel</a></li><li>Integrated Digital Marketing</li><li>Personal Branding: Mass Trust Blueprint</li></ul><p>This article will be useful for Digital Marketers, Digital Freelancers etc.</p><p>Let us start our learning with the first topic which is regarding understanding few things about Marketing.</p><h4>The fundamentals of marketing</h4><p>Before we understand more about marketing, let us try to understand some Misconceptions that people have about Marketing.</p><p>Many people have a misconception that Marketing is <strong>something that we do after creating the product</strong> and they firstly create the product. Later they try to market the product and hence they may fail miserably in marketing and generating enough leads.</p><p>If this is not the right way of how to do the marketing, then what is the right way of Marketing?</p><p>Let us understand the right way of Marketing.</p><p>Marketing begins way before creating the product and it involves everything <strong>from doing market research to creating content</strong> that sells our product.</p><p>Marketing is all about creating successful strategies that we use to promote our products and services to consumers which involves various things like</p><ul><li>Understanding if there is a need for our Product/service in the market.</li><li>Understanding who our target customer is.</li><li>Understanding consumer behavior.</li><li>Coming up with tactics based on consumer behavior.</li></ul><p><strong>Purpose of Marketing:</strong></p><p>The purpose of marketing can be explained using below 4 Ps as follow:</p><ol><li>Product: Marketers should be clear on what product are they selling, along with all the product specifications. Depending on product they should think of how they creatively package and showcase to customers.</li><li>Price: We should be able to decide a competitive price for our product based on various factors like market research and competitor pricing.</li><li>Promotion: Marketers should be able to decide the right marketing channel among various marketing channels available based on the product.</li><li>Place: We should also think if we want to set up an offline store or an online store for our product. In case of offline stores, we should be able to decide the amount of inventory to maintain as we could get into losses if don’t maintain required amount of inventory.</li></ol><h4>Digital marketing vs. Traditional marketing</h4><p>Now we will understand difference between Digital marketing and Traditional marketing.</p><p>The main difference between digital and traditional marketing is the <strong>medium through which a consumer encounters a marketing message</strong>. While traditional marketing uses traditional media like magazines and newspapers, digital marketing uses digital media, such as social media or websites.</p><p>Below are the key differences between traditional marketing and digital marketing.</p><p>Traditional Marketing:</p><ol><li>Traditional Marketing Channel includes:</li></ol><ul><li>Broadcasting: Tv, Radio</li><li>Outdoor: Billboards, bus/taxi wraps, posters</li><li>Print Media: Newspaper, magazine, brochures, pamphlet.</li><li>Direct Mail: Fliers, Catalogues</li><li>Telemarketing: Calls, messages</li><li>Referral Marketing: Word of mouth</li></ul><p>2. Effectiveness and expensiveness: Less effective more expensive</p><p>3. Difficult to measure return on investment.</p><p>4. Cannot do targeted Marketing, hence it involves mass marketing.</p><p>5. Low Customer Engagement.</p><p>6. Tweaking is not possible once the ad is placed.</p><p>7. Printed marketing materials are more permanent.</p><p>Digital Marketing:</p><ol><li>Digital Marketing Channel includes:</li></ol><ul><li>Social Media marketing: This is the process of promoting our products/services using social media platforms like Facebook, Instagram etc</li><li>Content Marketing: It involves Developing, publishing and promoting contents for the targeted group.</li><li>Email Marketing: This is the process of sharing the information to consumers about latest offers, new products, events etc.</li><li>Pay per click: It is an advertising model used to drive traffic to websites, in which an advertiser pays a publisher when the ad is clicked</li><li>Search Engine Optimization: It Involves optimizing our websites so that it ranks at top in search results.</li></ul><p>2. Effectiveness and expensiveness: Less expensive more effective</p><p>3. Can measure return on investment using tools.</p><p>4. Can do targeted Marketing as we show our ads to only those people who has shown interest in our product/services recently.</p><p>5. High Customer engagement as customers can view our product/service details by a single click.</p><p>6. Tweaking is possible anytime, even after the ad is placed.</p><p>7. Digital Marketing is less permanent, meaning the ad will be gone once the target audience keeps scrolling or goes to the next page.</p><p>Both traditional marketing and digital marketing have pros and cons. But, it’s important to understand what are our marketing needs, the budget we have and our target customers. These are the few things that will help us in deciding which type of marketing to choose among traditional marketing and digital marketing.</p><p>Now that we have understood basics of marketing, the right way to do marketing and difference between traditional and digital marketing, we will now try to understand a <strong>secret formula for wealth</strong>. This formula is Called as <strong>CATT</strong> formula.</p><h4>CATT Marketing Funnel</h4><p><strong>WEALTH = N CATT</strong></p><p>Let us try to break this formula to understand individual part of it.</p><p><strong>N = Niche Selection</strong></p><p>We need to pick a niche based on a simple framework which satisfies below three points i.e., we need to select a niche such that</p><ol><li>We are passionate about it.</li><li>It has good demand in the market.</li><li>We have relevant talent and skills already (Or we are ready to work hard to get the required talent)</li></ol><p>We need to select a <strong>micro niche</strong> which means to select a <strong>specialized field rather than a general field</strong>. People think that being a generalist is better than being a specialist as we have a greater number of target customer for a generalist. This is not the right way of thinking as specialist can charge more money even if he has less customers.</p><p>Example: People pay less to a general Physician compared to a special doctors like dermatologist who is an expert in a particular field.</p><p>Note: Niche selection is the most important component in wealth creation. If you select a wrong niche, you tend to easily give up on your business whenever you face any challenges in your journey.</p><p><strong>C: Content Creation</strong></p><p>Once we have selected the niche, next step is to start creating useful content in the form of articles, making videos, conducting webinars, publishing eBooks, short courses etc. This will attract the people from our niche to keep following us.</p><p><strong>A: Attention</strong></p><p>Now that we have created the content, we must make sure that a greater number of people can see our content which helps us to grab the attention. Hence, it’s important to do some activities that drive attention like SEO, Social Media marketing, paid ads, Giving offers for referrals etc.</p><p><strong>T: Trust</strong></p><p>The next step in the process is to gain the trust of our target customers as trust is the most important thing that helps to convert a lead into a happy customer. Trust is all about communication, hence it’s important that we keep communicating with the customers regularly by sharing informative tips that can make their life easier, being transparent in our communication, patiently listening to their feedback etc.</p><p><strong>T: Transaction</strong></p><p>Once we are in this stage where the consumer has gone through the product/service specifications and he/she has started to trust our brand, this is the stage where we convert him from lead to customers easily with the help of natural sales methods.</p><p>This is the step-by-step process of how can become wealthy.</p><h4>Integrated Digital Marketing</h4><p>By now we all know that digital marketing involves multiple things for ex. Search Engine Marketing, Email marketing etc to name a few. Who does not want to become an expert in everything? If that was possible. But we all know that no one can become an expert in all the subjects that comes under Digital Marketing.</p><p>But there is a problem with this i.e., unless we are experts in all of this subjects, we cannot utilize the full power of this subjects to increase our business revenue.</p><p>Do we have a solution to this problem? Yes, we have. The solution is <strong>Integrated Digital Marketing </strong>which tries to use the power of all the digital marketing methods in such a way that each method tries to improve the efficiency of other method to achieve the end goal which is to drive the traffic to the content page rather than working independently.</p><p>In the below figure we can clearly see how various digital marketing methods are linked with each other so that they can complement each other’s work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b-pPaMQM7GsKrFYx.png" /></figure><h4>Personal Branding: Mass Trust Blueprint</h4><p>Marketing is all about developing trust with lot of consumers at same time. To develop this mass trust, below is the step-by-step blueprint:</p><ol><li>Learn: Try to learn and understand any concept based on the niche selection framework. Keep practicing it so as to become an expert at it one day.</li><li>Work: Practice this subject with real world examples so that our understanding improves.</li><li>Blog: Start blogging on our key learnings as blogging helps us to understand concepts better because when we try to explain the concepts to other in the form of either blogging or videos, we try to go in depth of the subject.</li><li>Consult: Start serving to clients who are ready to pay. Serving to clients not only gives us many, but also helps us to understand the client requirements and market needs better.</li><li>Mentor: Now that we are in a good position to get paid for a particular skillset, now as a mentor we can help others to begin their journey into this niche by helping them to avoid all the mistakes that we have made.</li><li>Start-up: Finally, we are ready to build our own start-up where we take care of end-to-end process i.e., we take care of everything from finding a client who is ready to pay to get the job done to finishing the tasks that they want to be done.</li></ol><h4>Conclusion:</h4><p>Let me summarize what we have learnt in this article. We started with understanding few things about Marketing where we discussed about the misconceptions that people have about Marketing and we also discussed about the purpose of marketing. We then understood the difference between Digital marketing and Traditional marketing where we learnt the different media channels that we use, their effectiveness and expensiveness etc. We then continued to understand about the CATT Marketing funnel which is a secret formula that can help us in becoming wealthy. Later we understood how Integrated Digital marketing framework can upgrades content marketing by trying to use the power of all the digital marketing methods. Finally we discussed about Personal Branding where we discussed about the six steps process that can help us to get mass trust.</p><p>Let me ask you a question. Are you planning to learn Digital Marketing? If yes, then let me tell you that DDIP (Digital Deepak Internship Program) is one of the best courses. I am totally new to content writing but I able to write this long article with the knowledge that I got as a part of this Internship program. Please find the link below to apply for the upcoming batches.</p><p><a href="https://deepak.me/internapply">https://deepak.me/internapply</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cfbd7a4197b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>