Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Function Calling Response to sentence

Hi Team,

I created a function calling example that retrieve data from bigquery and used it in instructions so whenever the questions asked related to function calling method ,it bring the data in pre defined format and now i want the rephrase the contents in sentence whenever the function calling return the results.

This is for the chatbot usecase

 

0 2 143
2 REPLIES 2

Hi @Rajavelu,

Welcome to Google Cloud Community!

To help you rephrase the contents in sentence whenever the function calling returns the results you may try this possible approach : 

  1. Extract the data from BigQuery using your function -  This involves writing a query to pull the specific data you need from BigQuery. You'll use a function to execute this query and retrieve the data.
  2. Format the data into the pre-defined structure - After retrieving the data, structure it in a format that is usable by your chatbot.
  3. Rephrase the structured data into natural language sentences - The last stage involves transforming structured data into natural language sentences. During this phase, you'll rephrase the data into sentences suitable for chatbot responses.

For more detailed information about function calling in Vertex AI, you can read this documentation.

I hope the above information is helpful.

Thanks!
I want the model to automatically rephrase the return from function calling. Is that possible?