Integrating Foundation Models into Your Code with Amazon Bedrock

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ค. 2024
  • 🌟 Get started today with Amazon Bedrock: aws.amazon.com/bedrock/
    Discover Amazon Bedrock and learn how to integrate generative AI models from leading AI startups and Amazon into your applications. In this video, AWS Senior Developer Advocate Mike Chambers steps through how to use Boto3, the Python SDK for AWS, to make text generations with models such as Anthropic Claude and A121 Labs Jurassic. To follow along you will need the latest Boto3 library, and AWS account, and permissions to call the Amazon Bedrock service.
    Follow AWS Developers:
    👾 Twitch: / aws
    🐦 Twitter: / awsdevelopers
    💻 LinkedIn: / aws-developers
    Follow Mike!
    🐦 Twitter: / mikegchambers
    💻 LinkedIn: / mikegchambers
    00:00 Introduction
    00:23 Generation with Jurassic
    05:13 Generation with Claude
    08:50 Invoke with Response Stream
    10:58 Outro
    #amazonbedrock #generativeai #aws
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 98

  • @GEB-Loop
    @GEB-Loop 8 หลายเดือนก่อน +3

    This is a fantastic and very useful demo of Amazon Bedrock capabilities. Thank you for posting this!

  • @wenijinew
    @wenijinew 9 หลายเดือนก่อน +17

    The great thing you've done is make complex technology seem like a piece of cake. It's like a magic. Thanks

    • @amazonwebservices
      @amazonwebservices 9 หลายเดือนก่อน +2

      That's AWSome to hear! 😀

  • @romain_tpifs
    @romain_tpifs 9 หลายเดือนก่อน +4

    Fantastic video Mike! very clear, easy to follow along. Exciting!

  • @easybusinessou
    @easybusinessou 9 หลายเดือนก่อน +3

    You’re incredible! Can’t wait to see more from you.

  • @AnupWarrier
    @AnupWarrier 9 หลายเดือนก่อน +2

    Crisp explanation Mike! Well done!

  • @mostafaalmahmud
    @mostafaalmahmud 9 หลายเดือนก่อน

    Nice explanation. Well done, Mike!

  • @bluehorizon6357
    @bluehorizon6357 9 หลายเดือนก่อน +2

    Such a clear and concise explanation. Thank you

    • @amazonwebservices
      @amazonwebservices 9 หลายเดือนก่อน

      We're so glad you enjoyed! 😀 🙌

  • @khanna-vijay
    @khanna-vijay 7 หลายเดือนก่อน +2

    Excellent Mike, you make it look very simple. quite insightful nuggets.

  • @SuperDanut
    @SuperDanut 9 หลายเดือนก่อน

    Great introduction to this very promising new service! Thanks Mike

    • @amazonwebservices
      @amazonwebservices 9 หลายเดือนก่อน

      That's AWSome to hear! So glad you enjoyed! 😀 🙌

  • @omkarphatak6444
    @omkarphatak6444 8 หลายเดือนก่อน +2

    This is super useful Mike thanks.

  • @manninaki
    @manninaki 9 หลายเดือนก่อน

    Thanks for video. Really interested in fine tuning for custom models too

  • @debobratabose8853
    @debobratabose8853 9 หลายเดือนก่อน +2

    Awesome Mike ... Looks very simple ... If you have other use cases as to what base models to use for what kind of prompts it will be really very useful so that we know whether we should use AI21Lab, Anthropic or Amazon etc

    • @mikegchambers
      @mikegchambers 9 หลายเดือนก่อน +1

      Thanks. Great idea for a video.

  • @skyisblue5029
    @skyisblue5029 9 หลายเดือนก่อน

    'Really loving this easy-to-follow content, great job!

  • @ZachDTravels
    @ZachDTravels 4 หลายเดือนก่อน +1

    Excellent video. Thumbs up

  • @ganapathytechtips5243
    @ganapathytechtips5243 9 หลายเดือนก่อน

    Fantactic one. As usual awesome way of explaining from Mike !!!

    • @amazonwebservices
      @amazonwebservices 9 หลายเดือนก่อน

      Absolutely, agree! 🤩 🤝 ❤️

  • @LabEveryday
    @LabEveryday 9 หลายเดือนก่อน +3

    Great job Mike!

  • @khalidelgazzar
    @khalidelgazzar 9 หลายเดือนก่อน

    This is one hell of a video. Awesome 😎 thank you!

    • @amazonwebservices
      @amazonwebservices 9 หลายเดือนก่อน +1

      That's really great to hear! You're welcome, Khalid! 😀 🙌

  • @mquanit
    @mquanit 7 หลายเดือนก่อน

    Hi Mike, I loved how you presented this demo with python. Can you or anyone please share documentation with Javascript, I am about to create something using Bedrock and JS

  • @DataEngUncomplicated
    @DataEngUncomplicated 9 หลายเดือนก่อน

    Great Video, Well Done Mike!

  • @Patrick-hl1wp
    @Patrick-hl1wp 7 หลายเดือนก่อน

    awesome tutorial, thank you

  • @Torben-jp4sr
    @Torben-jp4sr 4 หลายเดือนก่อน +1

    Hi - I successfully followed this example. But now I want to continue the conversation thread. How can I do that?

  • @user-hl1et6xk8l
    @user-hl1et6xk8l 2 หลายเดือนก่อน

    Thank you -- it is very useful and helpful !!

    • @amazonwebservices
      @amazonwebservices 2 หลายเดือนก่อน

      That's great to hear! You're welcome! 😀

  • @footballaipredictions
    @footballaipredictions 7 หลายเดือนก่อน

    Very cool, is there .NET equivalent anywhere? Polgot notebook or something along those lines. Most examples seem to be in Python, can convert it granted but just after a helpful starter.

  • @777imtiaz
    @777imtiaz 9 หลายเดือนก่อน

    Nicely explained!
    Do you have an option to fine tune the models (fine tunable) using PEFT or other techniques?

    • @awssupport
      @awssupport 9 หลายเดือนก่อน

      Hi there! If you'd like, feel free to ask our community of experts on re:Post for insight: go.aws/aws-repost. 👥 For additional options to get help, please check in, here: go.aws/get-help. 🛠️ ^LD

  • @DanielWeikert
    @DanielWeikert 8 หลายเดือนก่อน

    Has anyone tried that?
    Could not resolve the foundation model from the provided model identifier.
    Does not work for me even though I have access to the model according to aws

    • @awssupport
      @awssupport 8 หลายเดือนก่อน

      Hi, Daniel. 👋 We have a re:Post community of industry experts eager to help with these technical questions. You can reach out to them through this link, here: go.aws/aws-repost. 🗒️ ^ZP

  • @bruceli8139
    @bruceli8139 3 หลายเดือนก่อน +1

    This video is a bit outdated now.
    First, they have moved "view API request" button into the three dots at top right corner.
    Second, the "propmt" in body of kwargs has been changed to "inputText". Or maybe just because I'm using modal , not the ?

    • @awsdevelopers
      @awsdevelopers  3 หลายเดือนก่อน

      Yes, there have been some updates since this was published! We're working on new videos, so that you're up-to-date with all things Amazon Bedrock :)

  • @nithinmoorthy5911
    @nithinmoorthy5911 9 หลายเดือนก่อน

    I'm confused, is there an enviornment file somewhere where you set the keys that points to your Bedrock instance?

    • @awssupport
      @awssupport 9 หลายเดือนก่อน

      Hello, Nithin! 👋 I've shared your question internally with our team for review. In the meantime, you can find more information on Amazon Bedrock here: go.aws/3rBVcbb. ✅ ^MO

  • @user-em3ej8fm9t
    @user-em3ej8fm9t 5 หลายเดือนก่อน +1

    This is really nice and detailed explanation. do we also need the model access for the play ground to explore the bedrock service ??

    • @awssupport
      @awssupport 5 หลายเดือนก่อน

      Thanks for the inquiry. The information regarding Model Access can be found in the Amazon Bedrock docs here: go.aws/3OofT2j. Hope this helps. ^BD

  • @davidmartinezhernandez3275
    @davidmartinezhernandez3275 8 หลายเดือนก่อน

    More video with Mike please!!!!

  • @jyotsnamasand2414
    @jyotsnamasand2414 18 วันที่ผ่านมา

    The ‘View API Request’ option shows the AWS CLI version. Has the json version been removed?

    • @awssupport
      @awssupport 18 วันที่ผ่านมา

      Sorry for any disconnect here. I found you an official doc that might provide further context into Amazon Bedrock API requests: go.aws/3XSaxSE. If that's not helpful, I'd recommend reaching our to our community of experts on re:Post, for additional technical insight: go.aws/aws-repost. ^AD

  • @tomasmali6267
    @tomasmali6267 9 หลายเดือนก่อน +2

    Very valuable tutorial Mike! But one piece is missing, where and how did you connect the API amazon token/profile?

    • @awssupport
      @awssupport 9 หลายเดือนก่อน

      Hi, Tomas. Our re:Post community may be able to assist on this one. Be sure to post your question, here: go.aws/3PZwmeq. ^CM

    • @user-yc4dy5ke1m
      @user-yc4dy5ke1m 9 หลายเดือนก่อน

      did you figure it out?

    • @mohammadamirulikhmalbinhas7406
      @mohammadamirulikhmalbinhas7406 8 หลายเดือนก่อน

      have u tried changing the AWS account region? follow which profile region u install the bedrock@@user-yc4dy5ke1m

  • @kenkrueger65
    @kenkrueger65 7 หลายเดือนก่อน +1

    The Bedrock UI has changed. The "View API request" button has been removed. Any ideas for how to get a properly formatted JSON body?

    • @Appelsappel
      @Appelsappel 3 หลายเดือนก่อน

      Its hidden behind the three dots now, a little bit higher

  • @callmefred
    @callmefred 7 หลายเดือนก่อน

    Where do you authenticate (with your own account's credentials) in this scenario?

    • @awssupport
      @awssupport 7 หลายเดือนก่อน

      Hi! 👋 While we cannot provide you with an answer immediately, we've reached out to our service team on your behalf. 👍 We'll get back to you as soon as we hear back from them. ^RF

  • @its_shxblvrbs1786
    @its_shxblvrbs1786 4 หลายเดือนก่อน

    Is it free to use in our applications?

  • @edogbeatz
    @edogbeatz 9 หลายเดือนก่อน

    I have been struggling for 3 days to find how to add Knowledge Base from sidebar. Can someone help me with this issue?

    • @awssupport
      @awssupport 9 หลายเดือนก่อน

      Sorry to hear this, Edgar. This doc can help you out: go.aws/3LQVktX. If you need additional help, reach out using the resources found here: go.aws/tech-support. 🧰 ^RS

    • @timselaty
      @timselaty 9 หลายเดือนก่อน

      Since Amazon's support is unhelpful, the Knowledge Base (and Agents) are currently in preview. You like do NOT have access to it yet.

  • @nachovichoZX
    @nachovichoZX 7 หลายเดือนก่อน +1

    I was able to follow the tutorial until the part about the "View API request" button that does not appear for me.
    How else can I access the API request?

    • @mikegchambers
      @mikegchambers 7 หลายเดือนก่อน +2

      Oh you are right! The team have moved the button, and swapped it to the CLI format. You can find "View API request" under the three dots menu in the top right of the playground. If you would like to see JSON like I used in the video, then you can find that under "Base models" then select the model, and scroll down. Things move so fast!

    • @nachovichoZX
      @nachovichoZX 7 หลายเดือนก่อน +1

      ​@@mikegchambers Now I can see it, thank you very much for answering my question!

  • @parisaghanad8042
    @parisaghanad8042 7 หลายเดือนก่อน

    thanks!

  • @Eugeniocaraujo
    @Eugeniocaraujo 8 หลายเดือนก่อน

    Im using ClaudeV2 but I cant find how many tokens Im using per request, in Jurassic it came with the response, how does it work for ClaudeV2?

    • @awssupport
      @awssupport 8 หลายเดือนก่อน

      Hi there! I found this announcement that details Claude 2 can take up to 100,000 tokens in each prompt: go.aws/3QHZW8S. I hope this helps, but if you need help, feel free to check out AWS re:Post for input from our community: go.aws/aws-repost. ^RM

    • @Eugeniocaraujo
      @Eugeniocaraujo 8 หลายเดือนก่อน

      Thanks for the support@@awssupport . I know it can generate text using up to 100k tokens, but in my requests I'm using it limited to 4k and I'm pretty sure it's not consuming 4k each time it generates a response to me correct? Like in Jurassic I was able to limite max amount of tokens to 4k and in it's response it was saying it "only" used 3.2k tokens to generate the response. I was wondering how could I get the exactly amount of tokens used in the Claude V2 response?

    • @awssupport
      @awssupport 8 หลายเดือนก่อน

      Hello! Unfortunately I wasn't able to find any info specific to viewing token usage in your Claude response. However, I suggest asking our community of engineers on our Amazon Bedrock forum on re:Post for additional help: go.aws/aws-repost. ^RN

  • @vikassalaria24
    @vikassalaria24 9 หลายเดือนก่อน

    #amazonbedrock #aws Can we use RAG kind of architecture with foundation models. How to create embeddings .Does Amazon Bedrock provides capabilities to create embeddings vector database and then that index can be used to retrieve information and that info to be given to LLM to generate more relevant content.

    • @awssupport
      @awssupport 9 หลายเดือนก่อน

      Hi Vikas, I think this AWS Bedrock overview website could benefit you! Specifically, if you scroll down to "Benefits" you may find answers to your questions. Another good option is re:Post: go.aws/aws-repost. You can view and post to our AWS industry experts in a forum type environment. 💻 ^DC

    • @Ryanfboyer
      @Ryanfboyer 9 หลายเดือนก่อน

      Check out the Knowledge base feature in Bedrock .can't remember if it's GA or not.

  • @AshishSharma-tx2nc
    @AshishSharma-tx2nc 8 หลายเดือนก่อน

    How to implement the claude api in javascript

    • @awssupport
      @awssupport 8 หลายเดือนก่อน

      Hello Ashish! 👋 For assistance with your query, you're welcome to post it on our re:Post community of experts, here: go.aws/aws-repost. ^RZ

  • @bmarko
    @bmarko 6 หลายเดือนก่อน

    thx!

  • @AndresLeonRangel
    @AndresLeonRangel 9 หลายเดือนก่อน

    cool stuff.

  • @dipteshbosedb
    @dipteshbosedb 9 หลายเดือนก่อน

    Wonderful walkthrough, but where did you setup the APIs?

    • @awssupport
      @awssupport 9 หลายเดือนก่อน

      Hi, Diptesh! 😊 You can access the Amazon Bedrock API using the AWS Command Line Interface (AWS CLI), an AWS SDK, or a SageMaker Notebook. Check out this handy document: go.aws/469gdsF. If you still need some tech assistance, see our re:Post article for some options: go.aws/tech-support. 🤓👍 ^RW

    • @tomasmali6267
      @tomasmali6267 9 หลายเดือนก่อน

      I was asking the same!

  • @dzafer27
    @dzafer27 3 หลายเดือนก่อน

    This is great

  • @user-ow6wl3pl1k
    @user-ow6wl3pl1k 9 หลายเดือนก่อน

    Thanks, but i got error: Unknown service: 'bedrock-runtime'

    • @awssupport
      @awssupport 9 หลายเดือนก่อน

      Sorry to hear, Orel! You may want to share details on AWS re:Post: go.aws/aws-repost. Our community of experts & enthusiasts can look over your configuration to help troubleshoot. 🤝 ^RM

    • @mikegchambers
      @mikegchambers 9 หลายเดือนก่อน

      Hey! Thanks for trying out the code. Can you make sure you’re using the very latest version of Boto3. Let me know if you’re still having problems then.

    • @RP_USA
      @RP_USA 9 หลายเดือนก่อน

      @@mikegchambers I am having the same exact error. I have boto3 1.28.57 (Windows)

    • @RP_USA
      @RP_USA 9 หลายเดือนก่อน

      I believe the correct code should be:
      response = client.invoke_model(**kwargs)
      instead of:
      response = bedrock_runtime.invoke_mode(**kwargs)

    • @Ryanfboyer
      @Ryanfboyer 9 หลายเดือนก่อน

      Boto3 packages were updated yesterday afternoon. Once you update to latest, it works fine.

  • @sailochanar3546
    @sailochanar3546 4 หลายเดือนก่อน

    while running this code i got unable to locate credentials error ,how to resolve it .please suggest.

    • @awssupport
      @awssupport 4 หลายเดือนก่อน +1

      Terribly sorry to hear you're facing this issue. 😔 We highly recommend reaching out to our community of experts & engineers to get help with this. 🤓 Please do so, here: go.aws/aws-repost. 👈 ^RF

    • @sailochanar3546
      @sailochanar3546 4 หลายเดือนก่อน

      can we use Aws Bedrock fms with free tier account@@awssupport

    • @awssupport
      @awssupport 4 หลายเดือนก่อน

      Currently, there is no Free Tier offering for this service. 😔 To learn more out our Bedrock service pricing, check out this page: go.aws/3TlVdL4. 👈 ^RF

    • @sailochanar3546
      @sailochanar3546 4 หลายเดือนก่อน

      Thank you for the info👍@@awssupport

    • @awssupport
      @awssupport 4 หลายเดือนก่อน

      It's our pleasure! 🤗 ^RF

  • @shashipal3589
    @shashipal3589 9 หลายเดือนก่อน

    Hi pls provide github resource

    • @awssupport
      @awssupport 9 หลายเดือนก่อน +2

      Hi there! You'll find our Amazon Bedrock workshop, here: go.aws/3PUK4PE. I'd also recommend looking through our resources to get started: go.aws/3FfIimp. ^RM

    • @sergiyshevchenko8055
      @sergiyshevchenko8055 9 หลายเดือนก่อน

      @@awssupport there is no code nor ipynb

    • @awssupport
      @awssupport 9 หลายเดือนก่อน

      Sorry to hear about this trouble, Sergiy. Here's a link that might be just what you need: go.aws/3ZCiU3k. 🔗 If not, feel free to share additional details on what you're looking for. ^AK