After fetching the document on AWS Kendra using langchain output contains Document as type, is there a way to reformat that in python dict

142 views Asked by At

it has structure like this: 'source_documents': [Document(page_content = 'user data', metadata = {})]

0

There are 0 answers