Interface: VectorKnowledgeBaseProps
March 19, 2026 ยท View on GitHub
@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / VectorKnowledgeBaseProps
Interface: VectorKnowledgeBaseProps
Properties for a knowledge base
Extends
Properties
description?
readonlyoptionaldescription?:string
The description of the knowledge base.
Default
- No description provided.
Inherited from
CommonKnowledgeBaseProps.description
embeddingsModel
readonlyembeddingsModel:BedrockFoundationModel
The embeddings model for the knowledge base
existingRole?
readonlyoptionalexistingRole?:IRole
Existing IAM role with policy statements granting appropriate permissions to invoke the specific embeddings models. Any entity (e.g., an AWS service or application) that assumes this role will be able to invoke or use the specified embeddings model within the Bedrock service.
Inherited from
CommonKnowledgeBaseProps.existingRole
indexName?
readonlyoptionalindexName?:string
The name of the vector index.
If vectorStore is not of type VectorCollection,
do not include this property as it will throw error.
Default
- 'bedrock-knowledge-base-default-index'
instruction?
readonlyoptionalinstruction?:string
A narrative description of the knowledge base.
A Bedrock Agent can use this instruction to determine if it should query this Knowledge Base.
Default
- No description provided.
Inherited from
CommonKnowledgeBaseProps.instruction
name?
readonlyoptionalname?:string
The name of the knowledge base.
Inherited from
supplementalDataStorageLocations?
readonlyoptionalsupplementalDataStorageLocations?:SupplementalDataStorageLocation[]
The supplemental data storage locations for the knowledge base
vectorField?
readonlyoptionalvectorField?:string
The name of the field in the vector index.
If vectorStore is not of type VectorCollection,
do not include this property as it will throw error.
Default
- 'bedrock-knowledge-base-default-vector'
vectorIndex?
readonlyoptionalvectorIndex?:VectorIndex
The vector index for the OpenSearch Serverless backed knowledge base.
If vectorStore is not of type VectorCollection, do not include
this property as it will throw error.
Default
- A new vector index is created on the Vector Collection
if vector store is of
VectorCollectiontype.
vectorStore?
readonlyoptionalvectorStore?:ExistingAmazonAuroraVectorStore|AmazonAuroraVectorStore|MongoDBAtlasVectorStore|VectorCollection|OpenSearchManagedClusterVectorStore|PineconeVectorStore|VectorIndex
The vector store for the knowledge base. Must be either of
type VectorCollection, PineconeVectorStore, AmazonAuroraVectorStore,
MongoDBAtlasVectorStore, OpenSearchManagedClusterVectorStore, or
VectorIndex from s3vectors (for S3 Vectors).
Default
- A new OpenSearch Serverless vector collection is created.
vectorType?
readonlyoptionalvectorType?:VectorType
The vector type to store vector embeddings.
Default
- VectorType.FLOATING_POINT