Inspiration
Some days, you just need a little reminder that life is good. This app is for when you are running out of ideas on how to look at the bright side.
What it does
This Vertex AI Agent asks the user for a theme (such as friendship or tea) and a writing style (such as Shakespeare or Homer's Iliad). With these two ideas, it generates a positive message of 5 to 15 sentences matching the initial ideas.
How we built it
I used the Vertex AI Agent Builder console. I had to read several pages of instructions and play around with the settings and the prompts to get it close to what I wanted.
Challenges we ran into
The basic Gemini LLM worked ok for several writing styles like Shakespreare and the Bible. However, it was not very good with a style like 'US Constitution'. I tried to use a datastore with a text file that had a collection of 1780's style writings like the US Constitution, the Articles of Confederation, etc. I was able to create the datastore, upload the text file and refer to it as a tool in the Vertex AI Agent prompt. Unfortunately, the LLM got confused about what I was trying to reference. I wanted it to reference the writing style, but the LLM only referenced the info in the text doc, not its style.
I am also a little confused about how to give the judges access to the agent that I created. I tried using eh DialogFlow integrations to use the "Positive Invocations" chatbot within a Google Chat. The chatbot worked fine within the Vertex AI Builder Console. However, it did not work well within the Google Chat. I was able to find the "Positive Invocations" chatbot and add it to a Space in the Google Chat. I could talk to the chatbot with the @Positive Invocation reference. The chatbot responded to this first message. But it did not respond to any other messages with anything but the initial prompt that first greets the user. It is as if the chatbot has 0 history. I was not sure what was the problem, i.e. the Vertex AI chatbot or the DialogFlow setup or the Google Chat connection.
Also I was unable to lock the Vertex AI Agent. I was able to go to Settings and click on the Locked option. However, a system message would pop up at the bottom of the browser saying "An error has occurred."
Accomplishments that we're proud of
I spent more time than expected trying to find an easy way to interact with the Vertex AI chatbot outside of the Vertex console. If I had been able to get the chatbot to work properly within the Google Chat interface, I would have made the "Positive Invocations" chatbot public.
What we learned
I learned more about Google Cloud and the AI capabilities that Google has available. I also found some things that did not seem to work as intended.
What's next for Positive Invocations
I would like to find a way to get "Positive Invocations" working in Google Chat. I would like to find easy ways to host simple websites for test purposes without having to buy a domain. Lastly, I will continue to research the available AI models and tools and build more complex tools to add more functionality to what the user can do with AI/ML.
Built With
- google-cloud
- vertexai
Log in or sign up for Devpost to join the conversation.