Skip to content

Commit 278aa36

Browse files
authored
Merge branch 'main' into add_sample_tags
2 parents cddc801 + 0ec9718 commit 278aa36

File tree

10 files changed

+159
-122
lines changed

10 files changed

+159
-122
lines changed

samples/bedrock-agent/lib/bedrock-agent-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class BedrockAgentStack extends cdk.Stack {
4848
serverAccessLogsBucket: accesslogBucket,
4949
serverAccessLogsPrefix: 'inputsAssetsBucketLogs/',
5050
});
51-
const kb = new bedrock.KnowledgeBase(this, 'KB', {
51+
const kb = new bedrock.VectorKnowledgeBase(this, 'KB', {
5252
embeddingsModel: bedrock.BedrockFoundationModel.TITAN_EMBED_TEXT_V1,
5353
instruction: 'Use this knowledge base to answer questions about books. ' +
5454
'It contains the full text of novels. Please quote the books to explain your answers.',

samples/bedrock-agent/package-lock.json

Lines changed: 38 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/bedrock-agent/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
"@types/jest": "^27.5.2",
1515
"@types/node": "10.17.27",
1616
"@types/prettier": "2.6.0",
17-
"aws-cdk": "2.176.0",
17+
"aws-cdk": "2.177.0",
1818
"jest": "^27.5.1",
1919
"ts-jest": "^27.1.4",
2020
"ts-node": "^10.9.1",
2121
"typescript": "~3.9.7"
2222
},
2323
"dependencies": {
24-
"@aws-cdk/aws-lambda-python-alpha": "^2.176.0-alpha.0",
25-
"@cdklabs/generative-ai-cdk-constructs": "^0.1.290",
26-
"aws-cdk-lib": "^2.176.0",
24+
"@aws-cdk/aws-lambda-python-alpha": "^2.177.0-alpha.0",
25+
"@cdklabs/generative-ai-cdk-constructs": "^0.1.292",
26+
"aws-cdk-lib": "^2.177.0",
2727
"cdk-nag": "^2.28.13",
2828
"constructs": "^10.0.0",
2929
"source-map-support": "^0.5.21"

samples/content-generation/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Content Generation
22

3+
> [!WARNING]
4+
> This code sample is deprecated: it is no longer maintained and will not receive further updates. This sample will be removed in an upcoming release.
5+
36
## Overview
47

58
The "Content Generation" sample generative AI application demonstrates how to build end-to-end solutions with generative ai multimodals leveraging AWS services and [AWS Generative AI CDK Constructs](https://github.com/awslabs/generative-ai-cdk-constructs).

samples/document_explorer/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Document Explorer
22

3+
> [!WARNING]
4+
> This code sample is deprecated: it is no longer maintained and will not receive further updates. This sample will be removed in an upcoming release.
5+
36
## Overview
47

58
The "Document Explorer" sample generative AI application demonstrates how to build end-to-end solutions leveraging AWS services and [AWS Generative AI CDK Constructs](https://github.com/awslabs/generative-ai-cdk-constructs).

samples/image-description/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Overview
22

3+
> [!WARNING]
4+
> This code sample is deprecated: it is no longer maintained and will not receive further updates. This sample will be removed in an upcoming release.
5+
36
The "Image Description" generative AI application showcases the capability of generating accurate and detailed multilingual textual descriptions for multiple images by leveraging the power of AWS services and the [AWS Generative AI Cloud Development Kit (CDK) Constructs](https://github.com/awslabs/generative-ai-cdk-constructs/blob/main/src/patterns/gen-ai/aws-summarization-appsync-stepfn/README.md). This application harnesses the potential of state-of-the-art generative AI models to provide users with valuable insights and a comprehensive understanding of visual data.
47

58
The application features a user-friendly Streamlit interface, enabling users to authenticate securely via Amazon Cognito, a robust and highly scalable identity management service. Upon successful authentication, users can seamlessly upload images, and the application will generate descriptive text for the uploaded visual data. The description can be generated in different languages by selecting the desired language option in the sidebar. Multiple images can be uploaded simultaneously, and the application will generate descriptions for all of them.

samples/llamaindex-basic-data-loader/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# LlamaIndex Data Loader
22

3+
> [!WARNING]
4+
> This code sample is deprecated: it is no longer maintained and will not receive further updates. This sample will be removed in an upcoming release.
5+
36
This example can be used to sample the `LlamaIndexDataLoader` directly from the [Generative AI CDK Constructs](https://github.com/awslabs/generative-ai-cdk-constructs) package. It demonstrates the [S3 File or Directory Loader](https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/readers/llama-index-readers-s3), and can be extended for other [LlamaHub Readers](https://llamahub.ai/?tab=readers).
47

58
_See more information at [LlamaIndex](https://llamaindex.ai/)_

0 commit comments

Comments
 (0)