From a431dc657d17fe0cfbf0e4ce110f22d3886e5da2 Mon Sep 17 00:00:00 2001 From: xldistance <819873074@qq.com> Date: Sun, 1 Dec 2024 02:08:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=B4=A2=E5=BC=95=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E9=94=99=E8=AF=AF=E8=B5=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chatchat/server/knowledge_base/kb_service/es_kb_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/chatchat-server/chatchat/server/knowledge_base/kb_service/es_kb_service.py b/libs/chatchat-server/chatchat/server/knowledge_base/kb_service/es_kb_service.py index b50c8a09b3..b0f5290a83 100644 --- a/libs/chatchat-server/chatchat/server/knowledge_base/kb_service/es_kb_service.py +++ b/libs/chatchat-server/chatchat/server/knowledge_base/kb_service/es_kb_service.py @@ -24,7 +24,7 @@ class ESKBService(KBService): def do_init(self): self.kb_path = self.get_kb_path(self.kb_name) - self.index_name = os.path.split(self.kb_path)[-1] + self.index_name = self.kb_name kb_config = Settings.kb_settings.kbs_config[self.vs_type()] self.scheme = kb_config.get("scheme", "http") self.IP = kb_config["host"]