This whole thing may be better suited to a chain! I'll have to think about composing it in different ways a bit down the line. For now, I'm comfortable with this architecture, but I think I'll eventually be able to compose everything into a type-conforming ChainClass with a dict of inputs as single parameter.
Either way, I want to play around with constructing a Pydantic Schema, passing it to the JsonOutputParser, and having that work its magic during the flashcard generation. This plays beautifully with the new architecture I have for the control flow for the new flashrag UX, stay tuned!
This whole thing may be better suited to a chain! I'll have to think about composing it in different ways a bit down the line. For now, I'm comfortable with this architecture, but I think I'll eventually be able to compose everything into a type-conforming ChainClass with a dict of inputs as single parameter.
Either way, I want to play around with constructing a Pydantic Schema, passing it to the JsonOutputParser, and having that work its magic during the flashcard generation. This plays beautifully with the new architecture I have for the control flow for the new flashrag UX, stay tuned!