r/ChatGPTCoding • • Mar 24 '24

Resources And Tips 100% Serverless RAG pipeline - Article

https://medium.com/@fynnfluegge/serverless-rag-on-aws-bf8029f8bffd
157 Upvotes

13 comments sorted by

4

u/Tough_Palpitation331 Mar 24 '24

How are you tackling the AWS Lambda cold start latency? Or is this not a concern for you?

1

u/Fleischkluetensuppe Mar 25 '24

Python cold starts are not good, but peanuts compared to LLM response generation. For this setup not a concern to me

6

u/reddit_wisd0m Mar 24 '24

Maybe a stupid question but why is this called serverless while still cloud services are used?

15

u/Fleischkluetensuppe Mar 24 '24

AWS Lambda is called serverless, because no server instance is hosted. You pay only for each execution. On each execution your instance is starting and kept “warm” for a while.

Serverless is a cloud pattern.

6

u/reddit_wisd0m Mar 24 '24

I see. Thanks for the explanation.

2

u/CheeseRocker Mar 24 '24

Cool, thank you for writing up and sharing. AWS has a nice allowance for free use of DynamoDB and Lambda, with an amount that is well above my use case. So something like what you have here fits well.

2

u/Fleischkluetensuppe Mar 24 '24

Yes it charges peanuts for these kinds of setup. Perfect for personal use cases or trying out something new

2

u/snakesamurai Mar 24 '24

Thanks sir this is helpful !

2

u/[deleted] Mar 24 '24

It's all fine as long ad you don't get DDoSed. Keep it private and it's fine.

0

u/[deleted] Mar 24 '24

[deleted]

3

u/m-gunn-code Mar 24 '24

The fact that you don’t have to manage a server

0

u/[deleted] Mar 24 '24

[deleted]

2

u/m-gunn-code Mar 24 '24

if you run a rag pipeline on a dedicated server it won’t be serverless. but if you use a serverless architecture it will be serverless. Lambdas, S3 and DynamoDB are serverless so the rag pipeline is serverless

0

u/[deleted] Mar 24 '24

[deleted]

5

u/wyldcraft Mar 24 '24

^ This is a bot, FYI.