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

Gemini Model 1.5 flash

We are using gemini model 1.5 flash for our logistics related queries in which we are only using it for function calling and communicate with external APIs and show real time data to the user, however, it starts working incorrectly  randomly and hallucinating. What can be the solution for it as we are doubting to rely on it for our services.

Kindly, help in improving the accuracy and performance of it.

Warm regards,

Devyanshi Agarwal

 

0 1 192
1 REPLY 1

Hi @Devyanshi,

Welcome to Google Cloud Community!

It’s concerning that your Gemini Model 1.5 flash is experiencing accuracy issues and hallucinations, especially in a critical application like logistics. Below is a breakdown of potential causes and solutions:

  • Data Quality: Ensure that the data you're providing to the model is consistent, accurate, and relevant to the tasks you want it to perform. Poor-quality data can lead to inaccuracies and hallucinations. Make sure the data is complete and doesn't contain any missing values that could lead to incorrect predictions.
  • Model Fine-Tuning: Consider fine-tuning the model with domain-specific data to help it better understand logistics-related queries. Train the model on a dataset specifically tailored to your logistics use case. Fine-tune the model's parameters to optimize performance for your tasks. Experiment with different training techniques and hyperparameters to find the best configuration.
  • Prompt Engineering Issues: Make sure the prompts you're providing to the model are clear and specific. Avoid ambiguity and vagueness to minimize misunderstandings. Provide the model with as much context as possible to help it understand the task and generate accurate responses.
  • Upgrade Model Version: Consider upgrading to the latest stable gemini-1.5-flash-002 that recently came out which improves general model quality with significant gains in factuality and reduces model hallucinations.

You can also visit documentations on model details, prompt design, prompt strategies, and Gemini overview for more details.

I hope the above information is helpful.