Find answers from the community

Updated last month

Can I Add More Variables Dynamically to Custom Prompt Template in QuestionsAnsweredExtractor

At a glance

The community member is working on the QuestionsAnsweredExtractor and wants to add a custom prompt template with additional context variables. They are calling self.llm.apredict() with the context variables num_questions and context_str, and want to know if it is possible to add more variables dynamically. There are no comments with an explicitly marked answer.

Hey πŸ‘‹
In QuestionsAnsweredExtractor I want to add a custom prompt template and have additional context variables to this template

Under
Plain Text
_aextract_questions_from_node()


It calls self.llm.apredict() with the context variables num_questions and context_str.

Is it possible to add more variables dynamically?
Add a reply
Sign up and join the conversation on Discord