qa_chain = RetrievalQA.from_chain_type(
llm=ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0.7),
chain_type="stuff",
retriever=retriever,
chain_type_kwargs=chain_type_kwargs, # prompt
return_source_documents=True,
)
llm_response = qa_chain(input_data)
response_text = json.dumps(llm_response)
parser_output = output_parser.parse(response_text)
TypeError: Object of type Document is not JSON serializable