I'm trying to build a multi-turn chatbot that can answer customer questions by referencing docs in a Data Store. I also want to give it a specific persona and behavior.
What works:
What doesn't work:
After the first 1-2 turns, Gemini continues to reference docs in the Data Store to answer questions but seems to "forget" its system instructions (loses the designated persona and behavior).
I've mainly been using this example in the generative-ai GitHub for reference: Getting Started with Grounding with Gemini in Vertex AI
Thanks in advance for your help.
Hi @ElliotK-IB,
Welcome to Google Cloud Community!
Sorry to hear that your system instructions are being ignored. System instructions are prompts that guide the model's overall behavior and persona while grounding focuses on providing information from your data store. It could be that the LLM may prioritize grounding information over the system instructions which might cause this behavior.
With this, you may consider the following solutions:
Hope this helps.