How to inject data points in the response back to a customer?

I want to be able to add in customer data points using our internal data (like name info) in the response of GPT model. Can somebody please point us how we can do this?

Hi @ruitian001

Welcome to the community.

There are multiple ways to achieve this:

  • Draft a prompt with formatted strings to pass the relevant info to the model before generating the completion.
  • Replace the placeholder in completions with your data once you have received them and then pass it on to the end user.
1 Like