Skip to content

GenerationConfigurationDict

Dictionary Type

GenerationConfigurationDict

Bases: TypedDict

Dictionary form of GenerationConfiguration.

Attributes

additional_model_request_fields instance-attribute
additional_model_request_fields: Mapping[str, Document] | None

Additional model parameters and corresponding values not included in the textInferenceConfig structure for a knowledge base. This allows users to provide custom model parameters specific to the language model being used.

guardrail_configuration instance-attribute
guardrail_configuration: GuardrailConfiguration | GuardrailConfigurationDict | None

The configuration details for the guardrail.

inference_config instance-attribute
inference_config: InferenceConfig | InferenceConfigDict | None

Configuration settings for inference when using RetrieveAndGenerate to generate responses while using a knowledge base as a source.

performance_config instance-attribute

The latency configuration for the model.

prompt_template instance-attribute
prompt_template: PromptTemplate | PromptTemplateDict | None

Contains the template for the prompt that's sent to the model for response generation. Generation prompts must include the $search_results$ variable. For more information, see Use placeholder variables in the user guide.