langchain.retrievers.kendra.DocumentAttributeValue¶
- class langchain.retrievers.kendra.DocumentAttributeValue(*, DateValue: Optional[str] = None, LongValue: Optional[int] = None, StringListValue: Optional[List[str]] = None, StringValue: Optional[str] = None, **extra_data: Any)[source]¶
Bases:
BaseModelThe value of a document attribute.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- param DateValue: Optional[str] = None¶
The date value.
- param LongValue: Optional[int] = None¶
The long value.
- param StringListValue: Optional[List[str]] = None¶
The string list value.
- param StringValue: Optional[str] = None¶
The string value.
- property value: Optional[Union[str, int, List[str]]]¶
The only defined document attribute value or None. According to Amazon Kendra, you can only provide one value for a document attribute.