Summarization (amazon.titan-tg1-large)

POST https://bedrock-runtime.{{AWS_Region}}.amazonaws.com/model/:model_identifier/invoke

Request Body

{"inputText"=>"Statement: \"The purpose of life is a deep and personal question with different perspectives from philosophers, religions, and individuals. Some potential purposes include finding happiness and fulfillment, growing as individuals, reproducing and perpetuating the species, making the world a better place, discovering truth and knowledge, developing spiritually, enjoying the pleasures and beauty of the world, creating, and living authentically. Ultimately, the purpose of life is a highly individual question, and each person must decide what gives their life meaning and purpose.\" \nTask: Summarize Statement in one sentence.", "textGenerationConfig"=>{"maxTokenCount"=>4096, "temperature"=>0, "topP"=>0.9}}

RESPONSES

status: OK

{"inputTextTokenCount":113,"results":[{"tokenCount":28,"outputText":"\nThe purpose of life is a deep and personal question with different perspectives, and each person must decide what gives their life meaning and purpose.","completionReason":"FINISH"}]}