TextWithHighLights#

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

Bases: BaseModel

Text with highlights.

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 Highlights: Any | None [Required]#

The highlights.

param Text: str [Required]#

The text.