Copyright 2023 Google. This software is provided as-is, without warranty or
representation for any use or purpose. Your use of it is subject to your
agreement with Google.
- Google Cloud Run
- Google Artifact Registry
- Google Cloud Storage
- Google Speech to Text
- Vertex AI Conversation
- Dialogflow CX
- Dialogflow CX Agent
- Google Data Store
- Google Secret Manager
- Gradio
If you haven't already created a project, create one now. Projects enable you to manage all Google Cloud Platform resources for your app, including deployment, access control, billing, and services.
- Open the Cloud Platform Console.
- In the drop-down menu at the top, select NEW PROJECT.
- Give your project a name.
- Make a note of the project ID, which might be different from the project name. The project ID is used in commands and in configurations.
If you haven't already enabled billing for your project, enable billing now. Enabling billing allows is required to use Cloud Bigtable and to create VM instances.
If you haven't already installed the Google Cloud SDK, install the Google Cloud SDK now. The SDK contains tools and libraries that enable you to create and manage resources on Google Cloud Platform.
Set your Google Application Default Credentials by initializing the Google Cloud SDK with the command:
gcloud init
Generate a credentials file by running the application-default login command:
gcloud auth application-default login
Follow these instructions to upload your pdf documents or pdf manuals to be used in this example
Follow the instructions at this link and perform the following:
- Create Data Stores: Select information that you would like the Vertex AI Search and Conversation to query
- Create an Agent: Create the Dialogflow CX agent that queries the Data Store
- Test the agent in the simulator
- Take note of you agent link by going to Dialogflow CX Console and see the information about the agent you created
Data Stores are used to find answers for end-user's questions. Data Stores are a collection documents, each of which reference your data.
For this particular example data store will consist of the following characteristics:
- Your organizational documents or manuals.
- The data store type will be unstructured in a pdf format
- The data is uploaded without metadata for simplicity. Only need to point the import to the gcp bucket folder where the pdf files are. Their extension will decide their type.
When an end-user asks the agent a question, the agent searches for an answer from the given source content and summarizes the findings into a coherent agent response. It also provides supporting links to the sources of the response for the end-user to learn more.