def init_llm()

in hugegraph-llm/src/hugegraph_llm/operators/llm_op/answer_synthesize.py [0:0]


    def init_llm(self, context):
        if self._llm is None:
            self._llm = LLMs().get_chat_llm()
        if self._question is None:
            self._question = context.get("query") or None
        assert self._question is not None, "No question for synthesizing."
        context_head_str = context.get("synthesize_context_head") or self._context_head or ""
        context_tail_str = context.get("synthesize_context_tail") or self._context_tail or ""
        return context_head_str, context_tail_str