Repository for training and deploying Generative AI models, including text-text, text-to-image generation and prompt engineering playground using SageMaker Studio.
MIT No Attribution
130
stars
88
forks
source link
Initial code commit - Text Summarization to Image Generation using Langchain #16
This usecase demonstrates the efficient chaining of text-summarization and text-to-image generation foundational models using Langchain. These foundational models are deployed as sagemaker jumpstart endpoints.
We first create smaller text chunks of an input document. (Eg: A blog post). We use Langchain's 'map_reduce' chain to efficiently extract summaries from these text chunks and generate a combined summary from all these chunks.
We then connect this summary to a text-to-image model, which helps us generate a final image that loooks visually appealing and polished.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
This usecase demonstrates the efficient chaining of text-summarization and text-to-image generation foundational models using Langchain. These foundational models are deployed as sagemaker jumpstart endpoints.
We first create smaller text chunks of an input document. (Eg: A blog post). We use Langchain's 'map_reduce' chain to efficiently extract summaries from these text chunks and generate a combined summary from all these chunks.
We then connect this summary to a text-to-image model, which helps us generate a final image that loooks visually appealing and polished.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.