From 2b260901dfa8911f3be890da459c2cffa919090c Mon Sep 17 00:00:00 2001 From: Yongteng Lei Date: Fri, 12 Dec 2025 20:08:18 +0800 Subject: [PATCH] Fix: raptor don't have attribute chat (#11936) ### What problem does this PR solve? Raptor don't have attribute chat. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- rag/raptor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag/raptor.py b/rag/raptor.py index 20ad8638b..2d3ccfa7d 100644 --- a/rag/raptor.py +++ b/rag/raptor.py @@ -63,7 +63,7 @@ class RecursiveAbstractiveProcessing4TreeOrganizedRetrieval: last_exc = None for attempt in range(3): try: - response = await asyncio.to_thread(self._llm_model.chat, system, history, gen_conf) + response = await self._llm_model.async_chat(system, history, gen_conf) response = re.sub(r"^.*", "", response, flags=re.DOTALL) if response.find("**ERROR**") >= 0: raise Exception(response)