interface QueryGenerationContextProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.aws_bedrock.CfnKnowledgeBase.QueryGenerationContextProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnKnowledgeBase_QueryGenerationContextProperty |
Java | software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.QueryGenerationContextProperty |
Python | aws_cdk.aws_bedrock.CfnKnowledgeBase.QueryGenerationContextProperty |
TypeScript | aws-cdk-lib » aws_bedrock » CfnKnowledgeBase » QueryGenerationContextProperty |
Context used to improve query generation.
Example
// 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
Name | Type | Description |
---|---|---|
curated | IResolvable | IResolvable | Curated [] | List of example queries and results. |
tables? | IResolvable | IResolvable | Query [] | List of tables used for Redshift query generation context. |
curatedQueries?
Type:
IResolvable
|
IResolvable
|
Curated
[]
(optional)
List of example queries and results.
tables?
Type:
IResolvable
|
IResolvable
|
Query
[]
(optional)
List of tables used for Redshift query generation context.