aws-amplify / docs

AWS Amplify Framework Documentation
https://docs.amplify.aws
Apache License 2.0
482 stars 1.04k forks source link

Lambda Streaming Example for Gen AI usecases #7531

Open AakashKB opened 4 months ago

AakashKB commented 4 months ago

Is your feature request related to a problem? Please describe. I have a use case of streaming audio form a TTS/STT provider and have no clue how to set that up with a lambda, or even how to call a non resolved lambda from the frontend.

Describe the solution you'd like I would like to see a documented example usee case of using lambda for text or audio streaming for a gen AI use case. Ideally an example that not only supports Bedrock, but can easily be adapted to 3p services.

Both a back and frontend implementation would be nice. Seems all lambda examples provided are backend triggers based so seeing an example of how this lambda is accessed in the frontend (outside of resolvers) would be a great example.

Describe alternatives you've considered Only CDK, but i'm not sure how to access Amplify gql api from CDK.

Additional context None

AakashKB commented 4 months ago

This is for gen2 btw.