Skip to content

KnowledgeBase

Source code in docs_src/capo_bedrock_agent/types/knowledge_base.py
class KnowledgeBase(TypedDict, closed=True):
    knowledge_base_id: "capo_bedrock_agent.types.id.Id"
    """<p>The unique identifier of the knowledge base.</p>"""
    name: "capo_bedrock_agent.types.name.Name"
    """<p>The name of the knowledge base.</p>"""
    knowledge_base_arn: "capo_bedrock_agent.types.knowledge_base_arn.KnowledgeBaseArn"
    """<p>The Amazon Resource Name (ARN) of the knowledge base.</p>"""
    description: NotRequired["capo_bedrock_agent.types.description.Description"]
    """<p>The description of the knowledge base.</p>"""
    role_arn: "capo_bedrock_agent.types.knowledge_base_role_arn.KnowledgeBaseRoleArn"
    """<p>The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.</p>"""
    knowledge_base_configuration: "capo_bedrock_agent.types.knowledge_base_configuration.KnowledgeBaseConfiguration"
    """<p>Contains details about the embeddings configuration of the knowledge base.</p>"""
    storage_configuration: NotRequired[
        "capo_bedrock_agent.types.storage_configuration.StorageConfiguration"
    ]
    """<p>Contains details about the storage configuration of the knowledge base.</p>"""
    status: "capo_bedrock_agent.types.knowledge_base_status.KnowledgeBaseStatus"
    """<p>The status of the knowledge base. The following statuses are possible:</p> <ul> <li> <p>CREATING – The knowledge base is being created.</p> </li> <li> <p>ACTIVE – The knowledge base is ready to be queried.</p> </li> <li> <p>DELETING – The knowledge base is being deleted.</p> </li> <li> <p>UPDATING – The knowledge base is being updated.</p> </li> <li> <p>FAILED – The knowledge base API operation failed.</p> </li> </ul>"""
    created_at: "capo_bedrock_agent.types.date_timestamp.DateTimestamp"
    """<p>The time the knowledge base was created.</p>"""
    updated_at: "capo_bedrock_agent.types.date_timestamp.DateTimestamp"
    """<p>The time the knowledge base was last updated.</p>"""
    failure_reasons: NotRequired[
        "capo_bedrock_agent.types.failure_reasons.FailureReasons"
    ]
    """<p>A list of reasons that the API operation on the knowledge base failed.</p>"""
    metadata_configurations: NotRequired[
        "capo_bedrock_agent.types.metadata_configurations.MetadataConfigurations"
    ]
    """<p>The custom metadata field configurations of the knowledge base. Each configuration specifies whether its field is searchable (<code>ENABLED</code> or <code>DISABLED</code>).</p> <p>If the update fails, the knowledge base status becomes <code>UPDATE_UNSUCCESSFUL</code>, the field configurations revert to their previous values, and <code>failureReasons</code> describes the cause. You can retry the update from <code>UPDATE_UNSUCCESSFUL</code>.</p>"""
    user_context_mode_for_retrieval: NotRequired[
        "capo_bedrock_agent.types.user_context_mode_for_retrieval.UserContextModeForRetrieval"
    ]
    """<p>The end-user identity that your knowledge base uses to filter retrieval results by document access controls.</p>"""
    trusted_identity_sources: NotRequired[
        "capo_bedrock_agent.types.trusted_identity_sources.TrustedIdentitySources"
    ]
    """<p>The identity sources that your knowledge base trusts for identity-enhanced sessions, in addition to identity sources in your account.</p>"""

created_at instance-attribute

created_at: DateTimestamp

The time the knowledge base was created.

description instance-attribute

description: NotRequired[Description]

The description of the knowledge base.

failure_reasons instance-attribute

failure_reasons: NotRequired[FailureReasons]

A list of reasons that the API operation on the knowledge base failed.

knowledge_base_arn instance-attribute

knowledge_base_arn: KnowledgeBaseArn

The Amazon Resource Name (ARN) of the knowledge base.

knowledge_base_configuration instance-attribute

knowledge_base_configuration: KnowledgeBaseConfiguration

Contains details about the embeddings configuration of the knowledge base.

knowledge_base_id instance-attribute

knowledge_base_id: Id

The unique identifier of the knowledge base.

metadata_configurations instance-attribute

metadata_configurations: NotRequired[MetadataConfigurations]

The custom metadata field configurations of the knowledge base. Each configuration specifies whether its field is searchable (ENABLED or DISABLED).

If the update fails, the knowledge base status becomes UPDATE_UNSUCCESSFUL, the field configurations revert to their previous values, and failureReasons describes the cause. You can retry the update from UPDATE_UNSUCCESSFUL.

name instance-attribute

name: Name

The name of the knowledge base.

role_arn instance-attribute

The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.

status instance-attribute

The status of the knowledge base. The following statuses are possible:

  • CREATING – The knowledge base is being created.

  • ACTIVE – The knowledge base is ready to be queried.

  • DELETING – The knowledge base is being deleted.

  • UPDATING – The knowledge base is being updated.

  • FAILED – The knowledge base API operation failed.

storage_configuration instance-attribute

storage_configuration: NotRequired[StorageConfiguration]

Contains details about the storage configuration of the knowledge base.

trusted_identity_sources instance-attribute

trusted_identity_sources: NotRequired[TrustedIdentitySources]

The identity sources that your knowledge base trusts for identity-enhanced sessions, in addition to identity sources in your account.

updated_at instance-attribute

updated_at: DateTimestamp

The time the knowledge base was last updated.

user_context_mode_for_retrieval instance-attribute

user_context_mode_for_retrieval: NotRequired[UserContextModeForRetrieval]

The end-user identity that your knowledge base uses to filter retrieval results by document access controls.