QueryGenerationContextProperty Struct
Contains configurations for context to use during query generation.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const queryGenerationContextProperty: bedrock.CfnKnowledgeBase.QueryGenerationContextProperty = {
curatedQueries: [{
naturalLanguage: 'naturalLanguage',
sql: 'sql',
}],
tables: [{
name: 'name',
// the properties below are optional
columns: [{
description: 'description',
inclusion: 'inclusion',
name: 'name',
}],
description: 'description',
inclusion: 'inclusion',
}],
};
Properties
curatedQueriesIResolvable | IResolvable | CfnKnowledgeBase.CuratedQueryProperty[]curated_queriestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CuratedQueryProperty]]]curatedQueriesIResolvableCuratedQueriesIResolvableCuratedQueriesinterface{}#An array of objects, each of which defines information about example queries to help the query engine generate appropriate SQL queries.
tablesIResolvable | IResolvable | CfnKnowledgeBase.QueryGenerationTableProperty[]tablestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, QueryGenerationTableProperty]]]tablesIResolvableTablesIResolvableTablesinterface{}#An array of objects, each of which defines information about a table in the database.