Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New serverless pattern - s3-lambda-bedrock-js-sam #2285

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Avs163
Copy link

@Avs163 Avs163 commented May 19, 2024

Issue #, if available:

Description of changes:

This pattern facilitates LLM RAG use cases by generating vector embeddings of documents in S3. When files are uploaded to S3, Lambda triggers, sending file contents to the Bedrock embedding model, which generates semantic vector embeddings for NLP tasks like semantic search, document clustering, or information retrieval.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Description: S3 bucket for storing documents
Value: !Ref DocumentBucket
DocumentEmbeddingFunction:
Value: !Ref DocumentEmbeddingFunction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would not return an ARN but Function Name


1. Tail to the Lambda function log to get the logs
```
aws logs tail "/aws/lambda/DocumentEmbeddingFunction" --follow --format json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function name DocumentEmbedding in CloudFormation output would not match DocumentEmbeddingFunction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants