interface QueryGenerationContextProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins.CfnKnowledgeBasePropsMixin.QueryGenerationContextProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbedrock/mixins#CfnKnowledgeBasePropsMixin_QueryGenerationContextProperty |
Java | software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnKnowledgeBasePropsMixin.QueryGenerationContextProperty |
Python | aws_cdk.mixins_preview.aws_bedrock.mixins.CfnKnowledgeBasePropsMixin.QueryGenerationContextProperty |
TypeScript | @aws-cdk/mixins-preview » aws_bedrock » mixins » CfnKnowledgeBasePropsMixin » QueryGenerationContextProperty |
Contains configurations for context to use during query generation.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as bedrock_mixins } from '@aws-cdk/mixins-preview/aws-bedrock';
const queryGenerationContextProperty: bedrock_mixins.CfnKnowledgeBasePropsMixin.QueryGenerationContextProperty = {
curatedQueries: [{
naturalLanguage: 'naturalLanguage',
sql: 'sql',
}],
tables: [{
columns: [{
description: 'description',
inclusion: 'inclusion',
name: 'name',
}],
description: 'description',
inclusion: 'inclusion',
name: 'name',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| curated | IResolvable | (IResolvable | Curated)[] | An array of objects, each of which defines information about example queries to help the query engine generate appropriate SQL queries. |
| tables? | IResolvable | (IResolvable | Query)[] | An array of objects, each of which defines information about a table in the database. |
curatedQueries?
Type:
IResolvable | (IResolvable | Curated)[]
(optional)
An array of objects, each of which defines information about example queries to help the query engine generate appropriate SQL queries.
tables?
Type:
IResolvable | (IResolvable | Query)[]
(optional)
An array of objects, each of which defines information about a table in the database.

.NET
Go
Java
Python
TypeScript