Hi! I am using
TreeSummarize
class:
class Data(BaseModel):
summary: str
themes: List[str]
summarizer = TreeSummarize(output_cls=Data)
response summarizer.get_response(...my_data_list[:300]...)
and getting this error:
ValidationError: 2 validation errors for SummaryAndThemes
summary
field required (type=value_error.missing)
themes
field required (type=value_error.missing)
but when I send the whole dataset:
...
response summarizer.get_response(...my_data_list...)
...
it works fine.
I understand that this type of errors are coming from OpenAI and there is not much what LlamaIndex can do, but how can we handle such errors? What can we do from our side?