@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / VectorKnowledgeBaseProps
Properties for a knowledge base
readonlyoptionaldescription:string
The description of the knowledge base.
- No description provided.
CommonKnowledgeBaseProps.description
readonlyembeddingsModel:BedrockFoundationModel
The embeddings model for the knowledge base
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.
CommonKnowledgeBaseProps.existingRole
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.
- 'bedrock-knowledge-base-default-index'
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.
- No description provided.
CommonKnowledgeBaseProps.instruction
readonlyoptionalname:string
The name of the knowledge base.
readonlyoptionalsupplementalDataStorageLocations:SupplementalDataStorageLocation[]
The supplemental data storage locations for the knowledge base
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.
- 'bedrock-knowledge-base-default-vector'
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.
VectorCollection type.
readonlyoptionalvectorStore:ExistingAmazonAuroraVectorStore|AmazonAuroraVectorStore|MongoDBAtlasVectorStore|VectorCollection|OpenSearchManagedClusterVectorStore|PineconeVectorStore
The vector store for the knowledge base. Must be either of
type VectorCollection, RedisEnterpriseVectorStore,
PineconeVectorStore, AmazonAuroraVectorStore, or MongoDBAtlasVectorStore.
- A new OpenSearch Serverless vector collection is created.
readonlyoptionalvectorType:VectorType
The vector type to store vector embeddings.
- VectorType.FLOATING_POINT