Closed mt7180 closed 1 year ago
@Zaubeerer : ready for merge, what do you think?
I implemented the quiz functionality with respect to the loaded context: the quiz is returned from the quizz route as a structured pydantic BaseModel :tada: I achieved this by using the langchain PydanticOutputParser, which is explicitly referenced by LlamaIndex to use for output parsing. I also tried a sub-query engine with queryEnginetools, but this did not work out since subqueryengine does not support an output parser, yet ... If no context is loaded the backend raises a 400 and the frontend shows an error message with the details of the HttpException
wip: implementing quiz