From c2bb6ae35c050531c5050bda4032339d1cc52f06 Mon Sep 17 00:00:00 2001 From: nbrosse <31697743+nbrosse@users.noreply.github.com> Date: Thu, 27 Feb 2025 05:31:38 +0100 Subject: [PATCH] Fix CitationQueryEngine init function for response_synthesizer (#17897) --- .../llama_index/core/query_engine/citation_query_engine.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llama-index-core/llama_index/core/query_engine/citation_query_engine.py b/llama-index-core/llama_index/core/query_engine/citation_query_engine.py index c4c7ba160d..b200822a78 100644 --- a/llama-index-core/llama_index/core/query_engine/citation_query_engine.py +++ b/llama-index-core/llama_index/core/query_engine/citation_query_engine.py @@ -122,7 +122,13 @@ class CitationQueryEngine(BaseQueryEngine): self._response_synthesizer = response_synthesizer or get_response_synthesizer( llm=llm, callback_manager=callback_manager, + text_qa_template=CITATION_QA_TEMPLATE, + refine_template=CITATION_REFINE_TEMPLATE, + response_mode=ResponseMode.COMPACT, + use_async=False, + streaming=False, ) + self._node_postprocessors = node_postprocessors or [] self._metadata_mode = metadata_mode -- GitLab