INNER CODE UNIT · Python

_acall

junruxiong/IncarnaMind · convo_qa_chain.py:270

    async def _acall(
        self,
        inputs: Dict[str, Any],
        run_manager: Optional[AsyncCallbackManagerForChainRun] = None,
    ) -> Dict[str, Any]:
        _run_manager = run_manager or AsyncCallbackManagerForChainRun.get_noop_manager()
        question = inputs["question"]
        get_chat_history = self.get_chat_history or _get_chat_history
        chat_history_str = get_chat_history(inputs["chat_history"])

        callbacks = _run_manager.get_child()
        new_questions = await self.question_generator.arun(
            question=question,
            chat_history=chat_history_str,
            database=self.file_names,
            callbacks=callbacks,
        )
        new_question_list = _get_standalone_questions_list(new_questions, question)[:3]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…