createKnowledgeBase
Creates a knowledge base. A knowledge base contains your data sources so that Large Language Models (LLMs) can use your data. To create a knowledge base, you must first set up your data sources and configure a supported vector store. For more information, see Set up a knowledge base.
To create a managed knowledge base, provide a managedKnowledgeBaseConfiguration during creation. For more information, see Build a managed knowledge base.
Provide the
nameand an optionaldescription.Provide the Amazon Resource Name (ARN) with permissions to create a knowledge base in the
roleArnfield.For managed knowledge bases, set
embeddingModelTypetoMANAGEDto use the service-managed embedding model, orCUSTOMwith anembeddingModelArnto use your own. To use your own KMS key for encryption, provide the ARN inserverSideEncryptionConfiguration. No vector store configuration is required for managed knowledge bases.For self-managed knowledge bases, provide the embedding model to use in the
embeddingModelArnfield in theknowledgeBaseConfigurationobject.For self-managed knowledge bases, provide the configuration for your vector store in the
storageConfigurationobject.For an Amazon OpenSearch Service database, use the
opensearchServerlessConfigurationobject. For more information, see Create a vector store in Amazon OpenSearch Service.For an Amazon Aurora database, use the
RdsConfigurationobject. For more information, see Create a vector store in Amazon Aurora.For a Pinecone database, use the
pineconeConfigurationobject. For more information, see Create a vector store in Pinecone.For a Redis Enterprise Cloud database, use the
redisEnterpriseCloudConfigurationobject. For more information, see Create a vector store in Redis Enterprise Cloud.