![Fun on a Friday with Prompt Engineering and thinking about re:Invent 2023](https://assets.community.aws/a/2duuB41SuMef1eEJwP07fjmCeVB/pirat.webp)
Fun on a Friday with Prompt Engineering and thinking about re:Invent 2023
Prithee, kind attendees of the grand assembly of AWS re:Invent, heed this counsel for a prosperous sojourn. Don attire that grants thee comfort for thy feet, as the day is long and filled with much ambulation.
How to Make the Most of Thy Visit to the Great Assembly of re:Invent
With a heart full o' rum and adventure, set forth on this grand escapade through AWS re:Invent
Certainly! Let's navigate AWS re:Invent through the lyrical avenues of poetry
Throw your hands up, from dawn to dusk, At AWS re:Invent, innovation's a must!
Edit
button, select the ones you want to accept, then click Save
- I selected all of them to be able to test the different ones. I then used the AWS CLI to call the different models, and this is where I needed to do some command-line work. I wanted to be able to reuse the input text, so I added the bullet points to a file called input_text.txt
, and used input_prompt.txt
for my prompts. The example from the documentation shows the following:💡If you receive an error withaws: error: argument command: Invalid choice, valid choices are:
, you need to update your AWS CLI to the latest version, Amazon Bedrock was made generally available on 28 September 2023.
string argument should contain only ASCII characters
due to the jq
encoded strings starting and ending a quote ("
). For this I needed to do a search and found the following sed
command which did the trick:string argument should contain only ASCII characters
. Turns out that by using sed
, I may be stripping out the line breaks.bash
command. I specifically wanted to use the CLI for my first test, but this shouts "write a script in a programming language" to me with my limited bash
skills.Update inference configurations
.![Amazon Bedrock Chat interface](/_next/image?url=https%3A%2F%2Fcommunity.aws%2Fraw-post-images%2Fposts%2Ffriday-fun-style-changing-reinvent-guide%2Fimages%2Fbedrock_chat.png%3FimgSize%3D1857x920&w=3840&q=75)
![I am not bound to please thee with my answer. - The Merchant of Venice A book with Shakespeare written on the spine.](/_next/image?url=https%3A%2F%2Fcommunity.aws%2Fraw-post-images%2Fposts%2Ffriday-fun-style-changing-reinvent-guide%2Fimages%2Fshakespeare.jpeg%3FimgSize%3D850x567&w=3840&q=75)
![How the pirate-speak LLM works behind the scenes to provide you with these tips. Pirate with a knife in their mouth typing on a laptop](/_next/image?url=https%3A%2F%2Fcommunity.aws%2Fraw-post-images%2Fposts%2Ffriday-fun-style-changing-reinvent-guide%2Fimages%2Fpirate.jpeg%3FimgSize%3D840x743&w=3840&q=75)
Re:Invent Calls You In
- Connect with other attendees on the AWS forums or via social media before the event. You can find potential session partners or people to meet up with at meals/events.
- Plan a buffer between sessions to allow time for Q&A, walking between venues, bathroom breaks, etc. Don't feel obligated to rush from one session straight to the next.
- Prioritize the sessions you most want to attend and be flexible with your schedule for others. Sometimes unexpected topics end up being most valuable.
- Bring a small notebook and pen to take notes in sessions. Jotting down key takeaways and questions will help you retain information.
- Visit the expo early to avoid long lines and crowds. Check out the demo areas when they're less busy.
- Keep an open mind and take opportunities to learn beyond just the sessions. Chatting with exhibitors and other attendees can provide great insights.
- Consider joining informal networking events like lunches/dinners organized by user groups if you want to dive deeper on specific topics.
- Pace yourself throughout the week! Rehydrating, eating healthy snacks, and taking breaks will help you maximize your experience.
Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.