Ask HN: Best Practices for LLM Chatbot that references user account details?

by oliveson 7/24/2024, 3:12 PMwith 3 comments

What's the current best practice for including personalized user account details (e.g. for queries like "How much did I spend on this credit card last month?") into a LLM chatbot?

Specifically, assuming the user has already been authenticated properly, how is the user details retrieved, how is the data re-formatted, and how is the data ultimately fed into the LLM? This is a function in many popular banking chatbots, e.g. Bank of America's Erica, but there is scarce information about the actual implementation.

by brianjkingon 7/24/2024, 3:30 PM

This is often called Function calling or tool use where you provide the LLM the ability to execute API calls to external tools.