|
|
|
|
@@ -1,9 +1,9 @@
|
|
|
|
|
# Agentspace
|
|
|
|
|
# AI Applications
|
|
|
|
|
|
|
|
|
|
This module handles the creation of Agentspace data sources, engines and related configurations.
|
|
|
|
|
This module handles the creation of [AI Applications](https://cloud.google.com/generative-ai-app-builder/docs/introduction) data sources, engines and related configurations.
|
|
|
|
|
|
|
|
|
|
<!-- TOC -->
|
|
|
|
|
* [Agentspace module](#agentspace)
|
|
|
|
|
* [AI Applications module](#ai-applications)
|
|
|
|
|
* [APIs](#apis)
|
|
|
|
|
* [Quota Project](#quota-project)
|
|
|
|
|
* [Examples](#examples)
|
|
|
|
|
@@ -38,8 +38,8 @@ export USER_PROJECT_OVERRIDE=true
|
|
|
|
|
This is a minimal example to create a Chat Engine agent.
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
module "agentspace" {
|
|
|
|
|
source = "./fabric/modules/agentspace"
|
|
|
|
|
module "ai-applications" {
|
|
|
|
|
source = "./fabric/modules/ai-applications"
|
|
|
|
|
name = "my-chat-app"
|
|
|
|
|
project_id = var.project_id
|
|
|
|
|
data_stores_configs = {
|
|
|
|
|
@@ -66,8 +66,8 @@ module "agentspace" {
|
|
|
|
|
This is a minimal example to create a Search Engine agent.
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
module "agentspace" {
|
|
|
|
|
source = "./fabric/modules/agentspace"
|
|
|
|
|
module "ai-applications" {
|
|
|
|
|
source = "./fabric/modules/ai-applications"
|
|
|
|
|
name = "my-search-app"
|
|
|
|
|
project_id = var.project_id
|
|
|
|
|
data_stores_configs = {
|
|
|
|
|
@@ -90,8 +90,8 @@ module "agentspace" {
|
|
|
|
|
By default services are deployed globally. You optionally specify a region where to deploy them.
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
module "agentspace" {
|
|
|
|
|
source = "./fabric/modules/agentspace"
|
|
|
|
|
module "ai-applications" {
|
|
|
|
|
source = "./fabric/modules/ai-applications"
|
|
|
|
|
name = "my-chat-app"
|
|
|
|
|
project_id = var.project_id
|
|
|
|
|
location = var.region
|
|
|
|
|
@@ -119,8 +119,8 @@ module "agentspace" {
|
|
|
|
|
You can reference from engines existing data sources created outside this module, by passing their ids. In this case, you'll need to configure in the engine valid `industry_vertical` and `location`.
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
module "agentspace" {
|
|
|
|
|
source = "./fabric/modules/agentspace"
|
|
|
|
|
module "ai-applications" {
|
|
|
|
|
source = "./fabric/modules/ai-applications"
|
|
|
|
|
name = "my-search-app"
|
|
|
|
|
project_id = var.project_id
|
|
|
|
|
engines_configs = {
|
|
|
|
|
@@ -141,8 +141,8 @@ module "agentspace" {
|
|
|
|
|
You can create and connect from your engines multiple data stores.
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
module "agentspace" {
|
|
|
|
|
source = "./fabric/modules/agentspace"
|
|
|
|
|
module "ai-applications" {
|
|
|
|
|
source = "./fabric/modules/ai-applications"
|
|
|
|
|
name = "my-chat-app"
|
|
|
|
|
project_id = var.project_id
|
|
|
|
|
data_stores_configs = {
|
|
|
|
|
@@ -176,8 +176,8 @@ module "agentspace" {
|
|
|
|
|
You can configure JSON data store schema definitions directly in your data store configuration.
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
module "agentspace" {
|
|
|
|
|
source = "./fabric/modules/agentspace"
|
|
|
|
|
module "ai-applications" {
|
|
|
|
|
source = "./fabric/modules/ai-applications"
|
|
|
|
|
name = "my-search-app"
|
|
|
|
|
project_id = var.project_id
|
|
|
|
|
data_stores_configs = {
|
|
|
|
|
@@ -195,8 +195,8 @@ module "agentspace" {
|
|
|
|
|
You can make data stores point to multiple websites and optionally specify their sitemap.
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
module "agentspace" {
|
|
|
|
|
source = "./fabric/modules/agentspace"
|
|
|
|
|
module "ai-applications" {
|
|
|
|
|
source = "./fabric/modules/ai-applications"
|
|
|
|
|
name = "my-search-app"
|
|
|
|
|
project_id = var.project_id
|
|
|
|
|
data_stores_configs = {
|
|
|
|
|
@@ -210,7 +210,7 @@ module "agentspace" {
|
|
|
|
|
}
|
|
|
|
|
exclude-one-page = {
|
|
|
|
|
exact_match = true
|
|
|
|
|
provided_uri_pattern = "https://cloud.google.com/agentspace"
|
|
|
|
|
provided_uri_pattern = "https://cloud.google.com/ai-applications"
|
|
|
|
|
type = "EXCLUDE"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@@ -236,8 +236,8 @@ module "agentspace" {
|
|
|
|
|
|---|---|:---:|:---:|:---:|
|
|
|
|
|
| [name](variables.tf#L159) | The name of the resources. | <code>string</code> | ✓ | |
|
|
|
|
|
| [project_id](variables.tf#L165) | The ID of the project where the data stores and the agents will be created. | <code>string</code> | ✓ | |
|
|
|
|
|
| [data_stores_configs](variables.tf#L17) | The Agentspace datastore configurations. | <code title="map(object({ advanced_site_search_config = optional(object({ disable_initial_index = optional(bool) disable_automatic_refresh = optional(bool) })) content_config = optional(string, "NO_CONTENT") create_advanced_site_search = optional(bool) display_name = optional(string, "Terraform managed.") document_processing_config = optional(object({ chunking_config = optional(object({ layout_based_chunking_config = optional(object({ chunk_size = optional(number) include_ancestor_headings = optional(bool) })) })) default_parsing_config = optional(object({ digital_parsing_config = optional(bool) layout_parsing_config = optional(bool) ocr_parsing_config = optional(object({ use_native_text = optional(bool) })) })) parsing_config_overrides = map(object({ digital_parsing_config = optional(bool) layout_parsing_config = optional(bool) ocr_parsing_config = optional(object({ use_native_text = optional(bool) })) })) })) industry_vertical = optional(string, "GENERIC") json_schema = optional(string) location = optional(string) skip_default_schema_creation = optional(bool) solution_types = optional(list(string)) sites_search_config = optional(object({ sitemap_uri = optional(string) target_sites = map(object({ provided_uri_pattern = string exact_match = optional(bool, false) type = optional(string, "INCLUDE") })) })) }))">map(object({…}))</code> | | <code>{}</code> |
|
|
|
|
|
| [engines_configs](variables.tf#L112) | The Agentspace engines configurations. | <code title="map(object({ data_store_ids = list(string) collection_id = optional(string, "default_collection") chat_engine_config = optional(object({ allow_cross_region = optional(bool) business = optional(string) company_name = optional(string) default_language_code = optional(string) dialogflow_agent_to_link = optional(string) time_zone = optional(string) })) industry_vertical = optional(string) location = optional(string) search_engine_config = optional(object({ search_add_ons = optional(list(string), []) search_tier = optional(string) })) }))">map(object({…}))</code> | | <code>{}</code> |
|
|
|
|
|
| [data_stores_configs](variables.tf#L17) | The ai-applications datastore configurations. | <code title="map(object({ advanced_site_search_config = optional(object({ disable_initial_index = optional(bool) disable_automatic_refresh = optional(bool) })) content_config = optional(string, "NO_CONTENT") create_advanced_site_search = optional(bool) display_name = optional(string) document_processing_config = optional(object({ chunking_config = optional(object({ layout_based_chunking_config = optional(object({ chunk_size = optional(number) include_ancestor_headings = optional(bool) })) })) default_parsing_config = optional(object({ digital_parsing_config = optional(bool) layout_parsing_config = optional(bool) ocr_parsing_config = optional(object({ use_native_text = optional(bool) })) })) parsing_config_overrides = map(object({ digital_parsing_config = optional(bool) layout_parsing_config = optional(bool) ocr_parsing_config = optional(object({ use_native_text = optional(bool) })) })) })) industry_vertical = optional(string, "GENERIC") json_schema = optional(string) location = optional(string) skip_default_schema_creation = optional(bool) solution_types = optional(list(string)) sites_search_config = optional(object({ sitemap_uri = optional(string) target_sites = map(object({ provided_uri_pattern = string exact_match = optional(bool, false) type = optional(string, "INCLUDE") })) })) }))">map(object({…}))</code> | | <code>{}</code> |
|
|
|
|
|
| [engines_configs](variables.tf#L112) | The ai-applications engines configurations. | <code title="map(object({ data_store_ids = list(string) collection_id = optional(string, "default_collection") chat_engine_config = optional(object({ allow_cross_region = optional(bool) business = optional(string) company_name = optional(string) default_language_code = optional(string) dialogflow_agent_to_link = optional(string) time_zone = optional(string) })) industry_vertical = optional(string) location = optional(string) search_engine_config = optional(object({ search_add_ons = optional(list(string), []) search_tier = optional(string) })) }))">map(object({…}))</code> | | <code>{}</code> |
|
|
|
|
|
| [location](variables.tf#L153) | Location where the data stores and agents will be created. | <code>string</code> | | <code>"global"</code> |
|
|
|
|
|
|
|
|
|
|
## Outputs
|