Find answers from the community

Updated 6 months ago

Is it possible to fuse two query engines

At a glance

The community member is asking if it is possible to fuse two query_engines, specifically the SubQuestionQueryEngine and the CitationQueryEngine, to get the desired output. Another community member suggests that a custom class would need to be written for this, and recommends starting from the SubQuestionQueryEngine code and leveraging the prompting strategies from the CitationQueryEngine code.

Is it possible to fuse two query_engines? I would like to use the SubQuestionQueryEngine but get outputs like the CitationQueryEngine? Or will these require a new custom class.
d
1 comment
ah good question. I think you'd have to write a custom class for this.

It should be pretty straightforward, I'd start from the sub question query engine code, and then leverage the prompting strategies from the citation query engine code.
Add a reply
Sign up and join the conversation on Discord