DocumentAttributeValue#

class langchain_community.retrievers.kendra.DocumentAttributeValue[source]#

Bases: BaseModel

Value of a document attribute.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

param DateValue: str | None [Required]#

The date expressed as an ISO 8601 string.

param LongValue: int | None [Required]#

The long value.

param StringListValue: List[str] | None [Required]#

The string list value.

param StringValue: str | None [Required]#

The string value.

property value: str | int | List[str] | None#

The only defined document attribute value or None. According to Amazon Kendra, you can only provide one value for a document attribute.