Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: awslabs/generative-ai-cdk-constructs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.199
Choose a base ref
...
head repository: awslabs/generative-ai-cdk-constructs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.1.200
Choose a head ref
  • 1 commit
  • 28 files changed
  • 1 contributor

Commits on Jul 2, 2024

  1. chore(LangchainCommonLayer): Remove construct (#543)

    * chore(bedrock): add support for claude sonnet 3.5 in qa
    
    * chore(construct): remove langchain common layer construct
    
    * chore(construct): update readme
    
    * chore(construct): update readme
    
    * chore(construct): enable cdk nag on tests
    
    * chore(construct): enable more cdk nag on tests
    krokoko authored Jul 2, 2024
    Copy the full SHA
    e731700 View commit details
Showing with 96 additions and 653 deletions.
  1. +0 −1 .gitattributes
  2. +0 −1 .gitignore
  3. +0 −1 .projen/files.json
  4. +0 −5 .projenrc.ts
  5. +0 −2 apidocs/README.md
  6. +0 −147 apidocs/classes/LangchainCommonLayer.md
  7. +0 −124 apidocs/interfaces/AdapterProps.md
  8. +8 −17 docs/generative_ai_cdk_constructs.drawio
  9. +0 −44 src/common/props/AdapterProps.ts
  10. +0 −1 src/index.ts
  11. +3 −211 src/patterns/gen-ai/aws-langchain-common-layer/README.md
  12. BIN src/patterns/gen-ai/aws-langchain-common-layer/architecture.png
  13. +0 −41 src/patterns/gen-ai/aws-langchain-common-layer/index.ts
  14. +4 −1 test/cdk-lib/bedrock/guardrails.test.ts
  15. +2 −0 test/cdk-lib/bedrock/models.test.ts
  16. +2 −0 test/cdk-lib/bedrock/s3-data-source.test.ts
  17. +5 −1 test/patterns/gen-ai/aws-contentgen-appsync-lambda/aws-contentgen-appsync-lambda.test.ts
  18. +5 −37 test/patterns/gen-ai/aws-langchain-common-layer/aws-langchain-common-layer.test.ts
  19. +21 −5 test/patterns/gen-ai/aws-model-deployment-sagemaker/aws-model-deployment-sagemaker.test.ts
  20. +5 −1 test/patterns/gen-ai/aws-qa-appsync-opensearch/aws-qa-appsync-opensearch-serverless.test.ts
  21. +5 −1 test/patterns/gen-ai/aws-qa-appsync-opensearch/aws-qa-appsync-opensearch.test.ts
  22. +8 −3 test/patterns/gen-ai/aws-rag-appsync-stepfn-kendra/iam-helper.test.ts
  23. +5 −2 test/patterns/gen-ai/aws-rag-appsync-stepfn-kendra/kendra-utils.test.ts
  24. +3 −1 test/patterns/gen-ai/aws-rag-appsync-stepfn-kendra/vpc-helper.test.ts
  25. +5 −2 ...rns/gen-ai/aws-rag-appsync-stepfn-opensearch/aws-rag-appsync-stepfn-opensearch-serverless.test.ts
  26. +5 −1 test/patterns/gen-ai/aws-rag-appsync-stepfn-opensearch/aws-rag-appsync-stepfn-opensearch.test.ts
  27. +5 −2 test/patterns/gen-ai/aws-summarization-appsync-stepfn/aws-summarization-appsync-stepfn.test.ts
  28. +5 −1 test/patterns/gen-ai/aws-web-crawler/aws-web-crawler.test.ts
1 change: 0 additions & 1 deletion .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .projen/files.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions .projenrc.ts
Original file line number Diff line number Diff line change
@@ -206,11 +206,6 @@ new ProjenStruct(project, { name: 'LangchainProps', filePath: 'src/common/props/
.withoutDeprecated()
.omit('code', 'compatibleRuntimes', 'compatibleArchitectures');

new ProjenStruct(project, { name: 'AdapterProps', filePath: 'src/common/props/AdapterProps.ts' })
.mixin(Struct.fromFqn('aws-cdk-lib.aws_lambda.LayerVersionProps'))
.withoutDeprecated()
.omit('code');

new ProjenStruct(project, { name: 'DockerLambdaCustomProps', filePath: 'src/common/props/DockerLambdaCustomProps.ts' })
.mixin(Struct.fromFqn('aws-cdk-lib.aws_lambda.DockerImageFunctionProps'))
.withoutDeprecated()
2 changes: 0 additions & 2 deletions apidocs/README.md
Original file line number Diff line number Diff line change
@@ -28,7 +28,6 @@
- [JumpStartModel](classes/JumpStartModel.md)
- [JumpStartSageMakerEndpoint](classes/JumpStartSageMakerEndpoint.md)
- [LangchainCommonDepsLayer](classes/LangchainCommonDepsLayer.md)
- [LangchainCommonLayer](classes/LangchainCommonLayer.md)
- [QaAppsyncOpensearch](classes/QaAppsyncOpensearch.md)
- [RagAppsyncStepfnOpensearch](classes/RagAppsyncStepfnOpensearch.md)
- [SageMakerEndpointBase](classes/SageMakerEndpointBase.md)
@@ -38,7 +37,6 @@

### Interfaces

- [AdapterProps](interfaces/AdapterProps.md)
- [BaseClassProps](interfaces/BaseClassProps.md)
- [ContainerImageConfig](interfaces/ContainerImageConfig.md)
- [ContentGenerationAppSyncLambdaProps](interfaces/ContentGenerationAppSyncLambdaProps.md)
147 changes: 0 additions & 147 deletions apidocs/classes/LangchainCommonLayer.md

This file was deleted.

124 changes: 0 additions & 124 deletions apidocs/interfaces/AdapterProps.md

This file was deleted.

25 changes: 8 additions & 17 deletions docs/generative_ai_cdk_constructs.drawio
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<mxfile host="Electron" modified="2024-05-15T15:46:20.083Z" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/24.2.5 Chrome/120.0.6099.109 Electron/28.1.0 Safari/537.36" etag="Ujq2-Hu4LODn1_BOerQH" version="24.2.5" type="device" pages="10">
<mxfile host="Electron" modified="2024-07-02T00:52:48.483Z" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/24.4.13 Chrome/124.0.6367.207 Electron/30.0.6 Safari/537.36" etag="7Bo-kMY3EzOB2eYsUAEn" version="24.4.13" type="device" pages="10">
<diagram id="yqzoU6PykweUqwamPqNK" name="aws-rag-appsync-stepfn-opensearch">
<mxGraphModel dx="2726" dy="658" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
@@ -495,32 +495,26 @@
</mxGraphModel>
</diagram>
<diagram id="RhHeRPy2IWVfX898XMI6" name="aws-langchain-common-layer">
<mxGraphModel dx="1026" dy="669" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<mxGraphModel dx="1026" dy="675" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="igxRs5G-zJLwPDVD-uiK-1" value="" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="290" y="260" width="210" height="290" as="geometry" />
<mxGeometry x="290" y="310" width="210" height="240" as="geometry" />
</mxCell>
<mxCell id="igxRs5G-zJLwPDVD-uiK-3" value="" style="shape=curlyBracket;whiteSpace=wrap;html=1;rounded=1;" parent="1" vertex="1">
<mxGeometry x="240" y="260" width="30" height="290" as="geometry" />
<mxGeometry x="240" y="310" width="30" height="240" as="geometry" />
</mxCell>
<mxCell id="igxRs5G-zJLwPDVD-uiK-4" value="Function&lt;br&gt;code" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="360" y="280" width="70" height="40" as="geometry" />
<mxGeometry x="360" y="320" width="70" height="40" as="geometry" />
</mxCell>
<mxCell id="igxRs5G-zJLwPDVD-uiK-5" value="Execution environment" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="320" y="560" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="igxRs5G-zJLwPDVD-uiK-6" value="" style="endArrow=none;html=1;rounded=0;" parent="1" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="290" y="340" as="sourcePoint" />
<mxPoint x="500" y="340" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="igxRs5G-zJLwPDVD-uiK-7" value="" style="endArrow=none;html=1;rounded=0;" parent="1" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="290" y="380" as="sourcePoint" />
<mxPoint x="500" y="380" as="targetPoint" />
<mxPoint x="290" y="377" as="sourcePoint" />
<mxPoint x="500" y="377" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="igxRs5G-zJLwPDVD-uiK-8" value="" style="endArrow=none;html=1;rounded=0;" parent="1" edge="1">
@@ -539,10 +533,7 @@
<mxGeometry x="335" y="490" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="igxRs5G-zJLwPDVD-uiK-11" value="LangchainCommonDepsLayer" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=#b85450;fillColor=#f8cecc;" parent="1" vertex="1">
<mxGeometry x="300" y="345" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="igxRs5G-zJLwPDVD-uiK-12" value="LangchainCommonLayer" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=#b85450;fillColor=#f8cecc;" parent="1" vertex="1">
<mxGeometry x="316" y="386" width="160" height="30" as="geometry" />
<mxGeometry x="300" y="386" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="igxRs5G-zJLwPDVD-uiK-13" value="Lambda powertools" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="330" y="425" width="130" height="30" as="geometry" />
Loading