Skip to content

Conversation

@kakakakakku
Copy link
Contributor

Issue #, if available:
N/A

Description of changes:
Hi😀 Thanks for the useful patterns!

I noticed that cohere.command-text-v14 can no longer be used. When actually deployed, the following error occurs:

This model version has reached the end of its life. Please refer to the AWS documentation for more details. (Service: BedrockRuntime, Status Code: 404, Request ID: cf44cd36-ec38-47ca-a75b-128cb45d2024) (SDK Attempt Count: 1)

Therefore, I updated the model to use Cohere Command R instead.

Check

$ curl -s -H "Content-type: application/json" -X POST -d '{"prompt_one": "Write a 500 word blog post on The Beatles"}' https://o2l9vt5uyi.execute-api.us-east-1.amazonaws.com/dev | jq .
{
  "prompt_one": "Write a 500 word blog post on The Beatles",
  "result_one": {
    "result_one": "The Beatles are an iconic English rock band that rose to fame in the 1960s, and their music still resonates with fans around the world decades later. Formed in Liverpool in 1960, the band originally consisted of John Lennon, Paul McCartney, George Harrison, Ringo Starr, and Stuart Sutcliffe. The Beatles' music and influence continue to be a staple of the music industry, and their cultural impact remains unparalleled. \n\nThe band's journey to international stardom began in the clubs of Liverpool and Hamburg, where they honed their signature sound and developed their unique image. With Lennon as the enigmatic frontman and McCartney as the talented songwriter, The Beatles quickly rose through the ranks of the music industry. Their early albums, like \"Please Please Me\" and \"With the Beatles,\" showcased their talent and attracted a dedicated fan base.\n\nThe Beatles' musical genius was unmatched, and their innovative songwriting and experimental recording techniques revolutionized popular music. They incorporated new ideas, such as studio manipulation and electronic elements, to create a sound that was fresh and exciting. Their songs, such as \"Eleanor Rigby\" and \"Yellow Submarine,\" captured the imagination of fans and reflected the social changes of the time. The band also explored philosophical and literary influences in their music, adding a layer of depth to their lyrics.\n\nBut the band's impact extends far beyond their musical prowess. Their animated film \"Yellow Submarine\" captured the hearts of fans of all ages, and their iconic album covers, designed by artists like Stuart Sutcliffe and Peter Blake, became cultural touchstones. The Beatles also played a pivotal role in promoting racial equality in popular culture. During a time of widespread racial prejudice, the band stood against bigotry and supported the rights of everyone to enjoy their music.\n\nThe Beatles' global impact was felt across many countries, with the band members themselves becoming international celebrities. Their legendary concerts, including the historic performances at the Cavern Club in Liverpool and Shea Stadium in New York, attracted frenzied fans and cemented their status as icons. The Beatles' influence on the fashion and cultural revolutions of the 1960s was also significant, with their stylish outfits and iconic hairstyles setting trends that defined a generation.\n\nIn the late 1960s, the band members began to pursue solo projects, and the Beatles eventually parted ways in 1970. Despite the band's dissolution, their music continues to captivate new generations of fans. Their catalog of music remains a testament to their extraordinary talent, and their legacy continues to be celebrated in numerous ways. Beatles tribute bands, documentaries, and projects such as the Cirque du Soleil show \"Love\" keep the spirit of the band alive.\n\nThe Beatles' induction into the Rock and Roll Hall of Fame in 1988, along with numerous Grammy Awards and a prestigious Brit Award, stands as a testament to their enduring influence on popular music. Their songs are evergreen, regularly topping playlists across the world, and their legacy as one of the most iconic bands in history remains unwavering. \n\nDecades after their formation, The Beatles are still beloved, proving that their music and impact are truly timeless. Their extraordinary journey from the clubs of Liverpool to international stardom remains a fascinating tale, and their contribution to the fabric of music and culture will forever be cherished."
  },
  "chat_history": {
    "chat_history": [
      {
        "role": "USER",
        "message": "Write a 500 word blog post on The Beatles"
      },
      {
        "role": "CHATBOT",
        "message": "The Beatles are an iconic English rock band that rose to fame in the 1960s, and their music still resonates with fans around the world decades later. Formed in Liverpool in 1960, the band originally consisted of John Lennon, Paul McCartney, George Harrison, Ringo Starr, and Stuart Sutcliffe. The Beatles' music and influence continue to be a staple of the music industry, and their cultural impact remains unparalleled. \n\nThe band's journey to international stardom began in the clubs of Liverpool and Hamburg, where they honed their signature sound and developed their unique image. With Lennon as the enigmatic frontman and McCartney as the talented songwriter, The Beatles quickly rose through the ranks of the music industry. Their early albums, like \"Please Please Me\" and \"With the Beatles,\" showcased their talent and attracted a dedicated fan base.\n\nThe Beatles' musical genius was unmatched, and their innovative songwriting and experimental recording techniques revolutionized popular music. They incorporated new ideas, such as studio manipulation and electronic elements, to create a sound that was fresh and exciting. Their songs, such as \"Eleanor Rigby\" and \"Yellow Submarine,\" captured the imagination of fans and reflected the social changes of the time. The band also explored philosophical and literary influences in their music, adding a layer of depth to their lyrics.\n\nBut the band's impact extends far beyond their musical prowess. Their animated film \"Yellow Submarine\" captured the hearts of fans of all ages, and their iconic album covers, designed by artists like Stuart Sutcliffe and Peter Blake, became cultural touchstones. The Beatles also played a pivotal role in promoting racial equality in popular culture. During a time of widespread racial prejudice, the band stood against bigotry and supported the rights of everyone to enjoy their music.\n\nThe Beatles' global impact was felt across many countries, with the band members themselves becoming international celebrities. Their legendary concerts, including the historic performances at the Cavern Club in Liverpool and Shea Stadium in New York, attracted frenzied fans and cemented their status as icons. The Beatles' influence on the fashion and cultural revolutions of the 1960s was also significant, with their stylish outfits and iconic hairstyles setting trends that defined a generation.\n\nIn the late 1960s, the band members began to pursue solo projects, and the Beatles eventually parted ways in 1970. Despite the band's dissolution, their music continues to captivate new generations of fans. Their catalog of music remains a testament to their extraordinary talent, and their legacy continues to be celebrated in numerous ways. Beatles tribute bands, documentaries, and projects such as the Cirque du Soleil show \"Love\" keep the spirit of the band alive.\n\nThe Beatles' induction into the Rock and Roll Hall of Fame in 1988, along with numerous Grammy Awards and a prestigious Brit Award, stands as a testament to their enduring influence on popular music. Their songs are evergreen, regularly topping playlists across the world, and their legacy as one of the most iconic bands in history remains unwavering. \n\nDecades after their formation, The Beatles are still beloved, proving that their music and impact are truly timeless. Their extraordinary journey from the clubs of Liverpool to international stardom remains a fascinating tale, and their contribution to the fabric of music and culture will forever be cherished."
      }
    ]
  },
  "result_two": {
    "result_two": "In the bustling city of Liverpool, a young man named John Lennon hummed a melody as he strolled down the lively streets. It was a crisp autumn afternoon, and the city seemed to buzz with an invisible energy that matched the rhythm in his head. John's eyes sparkled with a hint of mischief as he entered the lively Cavern Club, a place that had become a second home to him and his friends.\n\nInside the club, the air was thick with smoke and the thrilling sounds of rhythm and blues. John made his way downstairs, the familiar aroma of sweat and beer filling his nostrils. As he sat down at the piano, his eyes scanned the crowd, searching for familiar faces. The place was packed, with enthusiasts hanging on to every note played on the stage. \n\nSuddenly, John's gaze landed on a tall young man with a lean build and a bright smile. The fellow, named Paul McCartney, stood listening intently to the music with an enthusiasm that matched John's own passion. John nodded in his direction, and Paul's eyes widened in recognition. A subtle grin spread across his face, and he made his way toward the stage.\n\nJohn introduced Paul to George Harrison, who was sitting nearby, lost in his own musical thoughts. The three struck up a conversation, their eyes sparkling with a shared love of music. Before long, they were joined by a shy yet talented drummer named Ringo Starr. The club seemed to become more vibrant as the young men discussed their dreams and a possible musical collaboration.\n\nAs the evening progressed, the four found themselves drawn to each other's company, each recognizing a kindred spirit in the others' eyes. They decided to meet again, this time at George's house, where they could jam together and explore the melodies that danced in their heads.\n\nThat meeting marked the beginning of a remarkable journey. The four musicians poured their hearts into their passion, crafting songs that spoke to the souls of young people everywhere. They named themselves \"The Beatles,\" a quirky and catchy title that seemed to embody their unique spirit.\n\nThe Beatles' sound grew and evolved, capturing the essence of a generation. Their melodies became anthems, resonating with fans across the globe. From the vibrant clubs of Liverpool to the iconic arenas of London, The Beatles captivated audiences with their mesmerizing performances and unforgettable songs.\n\nTheir rise to fame was astronomical, with hordes of dedicated fans screaming their names and singing along to their music. The world witnessed the birth of a phenomenon, as The Beatles' influence extended far beyond the realm of music. They became a symbol of hope and peace, their messages of unity resonating deeply with a generation seeking change.\n\nAs the years passed, the Beatles continued to leave an indelible mark on the world. Their legacy became a testament to the power of music, inspiring future generations of artists and fans alike. The four friends from Liverpool had no idea that their chance meeting would change the course of music history, but change it they did, forever etching their names in the annals of pop culture. \n\nAnd so, the tale of The Beatles grew, a story of friendship, talent, and timeless music that continues to inspire and delight audiences around the world. Their journey remains a reminder that magical things can happen when fate brings friends together."
  }
}

Thank you😀


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

"role": "CHATBOT",
"message.$": "$.result_one.result_one"
}
]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: I used chat_history format instead of ChatML format like Human: and Assistant:.

"ResultPath": "$.result_one",
"ResultSelector": {
"result_one.$": "$.Body.generations[0].text"
"result_one.$": "$.Body.text"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants