Top
image credit: Adobe Stock

Build a chatbot with Google’s PaLM API

July 17, 2023

Via: InfoWorld

In a previous article, I introduced Google’s PaLM 2 foundation model by building a simple application to generate a blog post. In this article, we will explore how to build a chatbot with the PaLM 2 API available on Google Cloud Vertex AI.

For a detailed guide on setting up the environment and configuring the SDK, please refer to the previous tutorial. This guide assumes you completed the previous one.

The library, vertexai.preview.language_models, has multiple classes including ChatModel, TextEmbedding, and TextGenerationModel. For this article, we will focus on the ChatModel library, where the PaLM model will act as a physics teacher responding to our questions.

Read More on InfoWorld