Data Source: oci_generative_ai_agent_knowledge_bases
This data source provides the list of Knowledge Bases in Oracle Cloud Infrastructure Generative Ai Agent service.
Gets a list of knowledge bases.
Example Usage
data "oci_generative_ai_agent_knowledge_bases" "test_knowledge_bases" {
#Optional
compartment_id = var.compartment_id
display_name = var.knowledge_base_display_name
state = var.knowledge_base_state
}
Argument Reference
The following arguments are supported:
compartment_id- (Optional) The OCID of the compartment in which to list resources.display_name- (Optional) A filter to return only resources that match the given display name exactly.state- (Optional) A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
Attributes Reference
The following attributes are exported:
knowledge_base_collection- The list of knowledge_base_collection.
KnowledgeBase Reference
The following attributes are exported:
compartment_id- The OCID of the compartment.defined_tags- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}description- A description of the knowledge base.display_name- A user-friendly name. Does not have to be unique, and it’s changeable.freeform_tags- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}id- The OCID of the knowledge base.index_config- The index configuration of Knowledge bases.cluster_id- The OCID of the OpenSearch Cluster.database_connection- The connection type for Databases.connection_id- The OCID of the Database Tools Connection.connection_type- The type of Database connection.
database_functions- Array of Database functions to be used.name- The name of the Database function.
index_config_type- The type of index.indexes- Index configuration for open search.name- The index name in opensearch.schema- The index schema details.body_key- Body key name.embedding_body_key- Field within customer managed Oracle Cloud Infrastructure OpenSearch document containing the vector embedding for queries.title_key- Title key that stores the Title of a document, if available.url_key- URL key that stores the URL of a document, if available.
secret_detail- The details of configured security configuration on OpenSearch.client_id- The IDCS Connect clientId.idcs_url- The URL represent authentication url of the IDCS.scope_url- Fully qualified scope urltype- The type of OpenID.vault_secret_id- The OCID of the secret for basic authentication.
should_enable_hybrid_search- Whether to enable Hybrid search in service managed OpenSearch.
knowledge_base_statistics- Statistics for Default Knowledge Base.size_in_bytes- Knowledge Base size in bytes.total_ingested_files- Total number of ingested files in Knowledge Base.
lifecycle_details- A message that describes the current state of the knowledge base in more detail. For example, can be used to provide actionable information for a resource in the Failed state.state- The current state of the knowledge base.system_tags- System tags for this resource. Each key is predefined and scoped to a namespace. Example:{"orcl-cloud.free-tier-retained": "true"}time_created- The date and time the knowledge base was created, in the format defined by RFC 3339. Example:2016-08-25T21:10:29.600Ztime_updated- The date and time the knowledge base was updated, in the format defined by RFC 3339. Example:2016-08-25T21:10:29.600Z