Hi,
I am trying to use ml.generate_text for summarizing a data table hosted on big query.
Basically, the data table has the following columns :
>labels : total_visitors, total_visits....
>countrys: nigeria, france...
>weekly_delta : numerical weekly variation for every (label, country)
I woud like generate_text call (gemini pro as remote model) to summarize the weekly performance analyzing the data table.
But i did not find any easy and efficient way to do it with Big Query ML.
Does Big Query ML support whole data table as input?
Do i have to switch on another more approriate GCP/AI product ?
Thks
Hi @NotoriousRom,
Welcome to Google Cloud Community!
BigQuery ML's ml.generate_text function isn't designed to handle entire data tables as input. It's intended for generating text based on a prompt rather than analyzing and summarizing structured data.
Here's how you can approach this problem, along with some potential solutions:
1. Data Preparation:
2. Using BigQuery ML with Text Function:
3. Exploring Alternative GCP/AI Products:
1. Pre-trained Models: Use pre-trained text generation models such as text-davinci-003 (from OpenAI) or flan-t5-xl (from Google) optimized for summarization tasks. Import these models into Vertex AI for inference.
2. Custom Models: Train custom text summarization models using Vertex AI's training tools if you need more precise control.
To summarize, while BigQuery ml.generate_text feature may not be ideal for directly summarizing data tables, integrating it with appropriate data preparation techniques and leveraging additional Google Cloud Platform or Artificial Intelligence resources, such as Vertex AI, can significantly enhance the quality of the generated text.
I hope the above information is helpful.