trying to run app.py file & got below error.
Note: I was trying to use another pdf file.
Output exceeds the size limit. Open the full output data in a text editor
---------------------------------------------------------------------------
InvalidRequestError Traceback (most recent call last)
\app.py in line 56
54 if query == 'q':
55 break
---> 56 ask_question(qa, query)
\app.py in line 30, in ask_question(qa, question)
29 def ask_question(qa, question):
---> 30 result = qa({"query": question})
31 print("Question:", question)
32 print("Answer:", result["result"])
File c:\.venv\lib\site-packages\langchain\chains\base.py:145, in Chain.__call__(self, inputs, return_only_outputs, callbacks, include_run_info)
143 except (KeyboardInterrupt, Exception) as e:
144 run_manager.on_chain_error(e)
--> 145 raise e
146 run_manager.on_chain_end(outputs)
147 final_outputs: Dict[str, Any] = self.prep_outputs(
148 inputs, outputs, return_only_outputs
149 )
File c:\Users\.venv\lib\site-packages\langchain\chains\base.py:1
39, in Chain.__call__(self, inputs, return_only_outputs, callbacks, include_run_info)
133 run_manager = callback_manager.on_chain_start(
134 {"name": self.__class__.__name__},
...
764 rbody, rcode, resp.data, rheaders, stream_error=stream_error
765 )
766 return resp
InvalidRequestError: [''] is not valid under any of the given schemas - 'input'
Denise_Schlesinger rafeekpro can you please help here