Skip to content

Commit 8a3a83b

Browse files
author
Dinesh Sajwan
committed
feat(construct): merge image generation with main
2 parents 273ef28 + 7437c64 commit 8a3a83b

File tree

179 files changed

+32596
-953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+32596
-953
lines changed

.gitattributes

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/code-generation.yml

+91
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.gitignore

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.npmignore

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projen/deps.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projen/files.json

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projen/tasks.json

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

+18-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
runSemGrepWorkflow,
2323
runBanditWorkflow,
2424
runCommitLintWorkflow,
25+
buildCodeGenerationWorkflow,
2526
} from './projenrc/github-workflows';
2627

2728
// Constants
@@ -39,7 +40,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
3940
projenVersion: '~0.78.8',
4041
constructsVersion: '10.3.0',
4142
defaultReleaseBranch: 'main',
42-
jsiiVersion: '~5.1.0',
43+
jsiiVersion: '~5.3.0',
4344
name: '@' + PUBLICATION_NAMESPACE + '/' + PROJECT_NAME,
4445
projenrcTs: true,
4546
repositoryUrl: 'https://github.com/' + GITHUB_USER + '/' + PROJECT_NAME,
@@ -116,8 +117,9 @@ buildOrtToolkitWorkflow(project);
116117
runSemGrepWorkflow(project);
117118
runBanditWorkflow(project);
118119
runCommitLintWorkflow(project);
120+
buildCodeGenerationWorkflow(project);
119121

120-
// Add specific overrides https://projen.io/github.html#actions-versions
122+
// Add specific overrides https://projen.io/docs/integrations/github/#actions-versions
121123
project.github?.actions.set('actions/checkout@v3', 'actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744');
122124
project.github?.actions.set('actions/download-artifact@v3', 'actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a');
123125
project.github?.actions.set('actions/github-script@v6', 'actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410');
@@ -135,6 +137,7 @@ project.github?.actions.set('oss-review-toolkit/ort-ci-github-action@v1', 'oss-r
135137
project.github?.actions.set('peter-evans/create-issue-from-file@v4', 'peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f');
136138
project.github?.actions.set('peter-evans/create-pull-request@v4', 'peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54');
137139
project.github?.actions.set('peter-evans/create-pull-request@v5', 'peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38');
140+
project.github?.actions.set('aws-actions/[email protected]', 'aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502');
138141

139142
// We don't want to package certain things
140143
project.npmignore?.addPatterns(
@@ -153,6 +156,7 @@ project.npmignore?.addPatterns(
153156
'projenrc',
154157
'tsconfig.dev.json',
155158
'yarn.lock',
159+
'/apidocs/',
156160
);
157161

158162
// Add License header automatically
@@ -185,11 +189,23 @@ packageJson?.patch(JsonPatch.add('/scripts/postpack', 'pinst --enable'));
185189
project.addTask('generate-models-containers', {
186190
description: 'Generate new list of models available from Jumpstart and DLC containers',
187191
steps: [
192+
{
193+
say: 'Synthesize project files',
194+
spawn: 'default',
195+
},
196+
{
197+
say: 'Compile',
198+
spawn: 'compile',
199+
},
188200
{
189201
say: 'Generate new list of models available from Jumpstart and DLC containers',
190202
cwd: project.srcdir+'/patterns/gen-ai/aws-model-deployment-sagemaker/code-generation',
191203
exec: 'npm run generate',
192204
},
205+
{
206+
say: 'Generate the new apidocs',
207+
spawn: 'post-compile',
208+
},
193209
],
194210
});
195211

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ The following constructs are available in the library:
7373
|:-------------|:-------------|:-------------|
7474
| [Data ingestion pipeline](./src/patterns/gen-ai/aws-rag-appsync-stepfn-opensearch/) | Ingestion pipeline providing a RAG (retrieval augmented generation) source for storing documents in a knowledge base. | Amazon OpenSearch, AWS Step Functions, Amazon Bedrock, AWS AppSync, AWS Lambda |
7575
| [Question answering](./src/patterns/gen-ai/aws-qa-appsync-opensearch/) | Question answering with a large language model (Anthropic Claude V2.1) using a RAG (retrieval augmented generation) source and/or long context. | Amazon OpenSearch, AWS Lambda, Amazon Bedrock, AWS AppSync |
76-
| [Summarization](./src/patterns/gen-ai/aws-summarization-appsync-stepfn/) | Document summarization with a large language model (Anthropic Claude V2.1). | AWS Lambda, Amazon Bedrock, AWS AppSync and Amazon Elasticache for Redis. |
76+
| [Summarization](./src/patterns/gen-ai/aws-summarization-appsync-stepfn/) | Document summarization with a large language model (Anthropic Claude V2.1). | AWS Lambda, Amazon Bedrock, AWS AppSync and Amazon ElastiCache for Redis. |
7777
| [Lambda layer](./src/patterns/gen-ai/aws-langchain-common-layer/) | Python Lambda layer providing dependencies and utilities to develop generative AI applications on AWS. | AWS Lambda, Amazon Bedrock, Amazon SageMaker |
78-
| [SageMaker model deployment (Jumpstart)](./src/patterns/gen-ai/aws-model-deployment-sagemaker/README_jumpstart.md) | Deploy a foundation model from Amazon SageMaker JumpStart to an Amazon SageMaker endpoint. | Amazon SageMaker |
78+
| [SageMaker model deployment (JumpStart)](./src/patterns/gen-ai/aws-model-deployment-sagemaker/README_jumpstart.md) | Deploy a foundation model from Amazon SageMaker JumpStart to an Amazon SageMaker endpoint. | Amazon SageMaker |
7979
| [SageMaker model deployment (Hugging Face)](./src/patterns/gen-ai/aws-model-deployment-sagemaker/README_hugging_face.md) | Deploy a foundation model from Hugging Face to an Amazon SageMaker endpoint. | Amazon SageMaker |
8080
| [SageMaker model deployment (Custom)](./src/patterns/gen-ai/aws-model-deployment-sagemaker/README_custom_sagemaker_endpoint.md) | Deploy a foundation model from an S3 location to an Amazon SageMaker endpoint. | Amazon SageMaker |
81-
| [Amazon Bedrock](./src/cdk-lib/bedrock/README.md) | CDK L2 Constructs for Amazon Bedrock | Amazon Bedrock, Amazon OpenSearch Serverless, AWS Lambda |
82-
| [Amazon OpenSearch Serverless Vector Collection](./src/cdk-lib/opensearchserverless/README.md) | CDK L2 Constructs to create a vector collection | Amazon OpenSearch Vector Index |
83-
| [Amazon OpenSearch Vector Index](./src/cdk-lib/opensearch-vectorindex/README.md) | CDK L1 Custom Resource to create a vector index | Amazon OpenSearch Serverless, AWS Lambda |
81+
| [Amazon Bedrock](./src/cdk-lib/bedrock/README.md) | CDK L2 Constructs for Amazon Bedrock. | Amazon Bedrock, Amazon OpenSearch Serverless, AWS Lambda |
82+
| [Amazon OpenSearch Serverless Vector Collection](./src/cdk-lib/opensearchserverless/README.md) | CDK L2 Constructs to create a vector collection. | Amazon OpenSearch Vector Index |
83+
| [Amazon OpenSearch Vector Index](./src/cdk-lib/opensearch-vectorindex/README.md) | CDK L1 Custom Resource to create a vector index. | Amazon OpenSearch Serverless, AWS Lambda |
8484

8585
# Sample Use Cases
8686

@@ -93,6 +93,8 @@ The official samples repository https://github.com/aws-samples/generative-ai-cdk
9393
| [AWS re:Invent 2023 - Keynote with Dr. Werner Vogels](https://youtu.be/UTRBVPvzt9w?t=6252) | Dr. Werner Vogels, Amazon.com's VP and CTO, announces the AWS Generative AI CDK Constructs during his AWS re:Invent 2023 keynote. |
9494
| [aws-cdk-stack-builder-tool](https://github.com/aws-samples/aws-cdk-stack-builder-tool) | AWS CDK Builder is a browser-based tool designed to streamline bootstrapping of Infrastructure as Code (IaC) projects using the AWS Cloud Development Kit (CDK). |
9595
| [CDK Live! Building generative AI applications and architectures leveraging AWS CDK Constructs!](https://www.youtube.com/watch?v=NI1F4Xxqyr8) | CDK Live! episode focused on building and deploying generative AI applications and architectures on AWS using the AWS Cloud Development Kit (CDK) and the AWS Generative AI CDK Constructs. |
96+
| [Announcing AWS Generative AI CDK Constructs!](https://aws.amazon.com/blogs/devops/announcing-generative-ai-cdk-constructs/) | Blog post announcing the release of the AWS Generative AI CDK Constructs. |
97+
| [aws-genai-llm-chatbot](https://github.com/aws-samples/aws-genai-llm-chatbot/tree/main) | Multi-Model and Multi-RAG Powered Chatbot Using AWS CDK on AWS allowing you to experiment with a variety of Large Language Models and Multimodal Language Models, settings and prompts in your own AWS account. |
9698

9799
# Operational Metrics Collection
98100

apidocs/classes/CustomSageMakerEndpoint.md

-7
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
- [node](CustomSageMakerEndpoint.md#node)
3535
- [role](CustomSageMakerEndpoint.md#role)
3636
- [startupHealthCheckTimeoutInSeconds](CustomSageMakerEndpoint.md#startuphealthchecktimeoutinseconds)
37-
- [volumeSizeInGb](CustomSageMakerEndpoint.md#volumesizeingb)
3837

3938
### Methods
4039

@@ -164,12 +163,6 @@ ___
164163

165164
`Private` `Readonly` **startupHealthCheckTimeoutInSeconds**: `number`
166165

167-
___
168-
169-
### volumeSizeInGb
170-
171-
`Optional` `Readonly` **volumeSizeInGb**: `number`
172-
173166
## Methods
174167

175168
### addToRolePolicy

0 commit comments

Comments
 (0)