oci_generative_ai_project

This resource provides the Project resource in Oracle Cloud Infrastructure Generative AI service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/generative-ai/latest/GenerativeAiProject

Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/generative_ai

Creates a GenerativeAiProject. The header contains an opc-work-request-id, which is the id for the WorkRequest that tracks the generativeAiProject creation progress.

Example Usage

resource "oci_generative_ai_project" "test_project" {
	#Required
	compartment_id = var.compartment_id

	#Optional
	conversation_config {

		#Optional
		conversations_retention_in_hours = var.project_conversation_config_conversations_retention_in_hours
		responses_retention_in_hours = var.project_conversation_config_responses_retention_in_hours
	}
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.project_description
	display_name = var.project_display_name
	freeform_tags = {"Department"= "Finance"}
	long_term_memory_config {

		#Optional
		standard_long_term_memory_strategy {
			#Required
			is_enabled = var.project_long_term_memory_config_standard_long_term_memory_strategy_is_enabled

			#Optional
			embedding_config {
				#Required
				llm_selection {
					#Required
					llm_selection_type = var.project_long_term_memory_config_standard_long_term_memory_strategy_embedding_config_llm_selection_llm_selection_type
					model_id = oci_generative_ai_model.test_model.id
				}
			}
			extraction_config {
				#Required
				llm_selection {
					#Required
					llm_selection_type = var.project_long_term_memory_config_standard_long_term_memory_strategy_extraction_config_llm_selection_llm_selection_type
					model_id = oci_generative_ai_model.test_model.id
				}
			}
		}
	}
	short_term_memory_optimization_config {
		#Required
		is_enabled = var.project_short_term_memory_optimization_config_is_enabled

		#Optional
		condenser_config {
			#Required
			llm_selection {
				#Required
				llm_selection_type = var.project_short_term_memory_optimization_config_condenser_config_llm_selection_llm_selection_type
				model_id = oci_generative_ai_model.test_model.id
			}
		}
	}
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Project * update - (Defaults to 20 minutes), when updating the Project * delete - (Defaults to 20 minutes), when destroying the Project

Import

Projects can be imported using the id, e.g.

$ terraform import oci_generative_ai_project.test_project "id"