Class CfnKnowledgeBasePropsMixin.QueryGenerationConfigurationProperty
Contains configurations for query generation.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnKnowledgeBasePropsMixin.QueryGenerationConfigurationProperty : CfnKnowledgeBasePropsMixin.IQueryGenerationConfigurationProperty
Syntax (vb)
Public Class CfnKnowledgeBasePropsMixin.QueryGenerationConfigurationProperty Implements CfnKnowledgeBasePropsMixin.IQueryGenerationConfigurationProperty
Remarks
For more information, see Build a knowledge base by connecting to a structured data source in the Amazon Bedrock User Guide..
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins;
var queryGenerationConfigurationProperty = new QueryGenerationConfigurationProperty {
ExecutionTimeoutSeconds = 123,
GenerationContext = new QueryGenerationContextProperty {
CuratedQueries = new [] { new CuratedQueryProperty {
NaturalLanguage = "naturalLanguage",
Sql = "sql"
} },
Tables = new [] { new QueryGenerationTableProperty {
Columns = new [] { new QueryGenerationColumnProperty {
Description = "description",
Inclusion = "inclusion",
Name = "name"
} },
Description = "description",
Inclusion = "inclusion",
Name = "name"
} }
}
};
Synopsis
Constructors
| QueryGenerationConfigurationProperty() | Contains configurations for query generation. |
Properties
| ExecutionTimeoutSeconds | The time after which query generation will time out. |
| GenerationContext | Specifies configurations for context to use during query generation. |
Constructors
QueryGenerationConfigurationProperty()
Contains configurations for query generation.
public QueryGenerationConfigurationProperty()
Remarks
For more information, see Build a knowledge base by connecting to a structured data source in the Amazon Bedrock User Guide..
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins;
var queryGenerationConfigurationProperty = new QueryGenerationConfigurationProperty {
ExecutionTimeoutSeconds = 123,
GenerationContext = new QueryGenerationContextProperty {
CuratedQueries = new [] { new CuratedQueryProperty {
NaturalLanguage = "naturalLanguage",
Sql = "sql"
} },
Tables = new [] { new QueryGenerationTableProperty {
Columns = new [] { new QueryGenerationColumnProperty {
Description = "description",
Inclusion = "inclusion",
Name = "name"
} },
Description = "description",
Inclusion = "inclusion",
Name = "name"
} }
}
};
Properties
ExecutionTimeoutSeconds
The time after which query generation will time out.
public double? ExecutionTimeoutSeconds { get; set; }
Property Value
Remarks
GenerationContext
Specifies configurations for context to use during query generation.
public object? GenerationContext { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnKnowledgeBasePropsMixin.IQueryGenerationContextProperty