This post is about learnings by running a RAG application in production.
Here are the learnings:
• Always customise your prompt.
• Set soft & hard limit on your LLM cost before launching any project.
• Choose the LLM model wisely.
• Context length matters a lot.
• Cache your queries.
• Have a router to choose LLM model wisely.
• Have a UI to see all queries, answers, context & metrics like response time.
• Memory management in chat is painful.
4 comments
[ 2.8 ms ] story [ 16.3 ms ] threadHere are the learnings:
• Always customise your prompt. • Set soft & hard limit on your LLM cost before launching any project. • Choose the LLM model wisely. • Context length matters a lot. • Cache your queries. • Have a router to choose LLM model wisely. • Have a UI to see all queries, answers, context & metrics like response time. • Memory management in chat is painful.
Embedchain seems quite promising. Will give it a try for my next project.