From e55225e2bc3e3c8df6bd393a69f9f07d26d3109f Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Tue, 27 Feb 2024 00:47:36 +0800 Subject: [PATCH] fix typo in error message of supported keyword store (#2560) --- api/core/rag/datasource/keyword/keyword_factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/rag/datasource/keyword/keyword_factory.py b/api/core/rag/datasource/keyword/keyword_factory.py index bccec20714..95bd0e76af 100644 --- a/api/core/rag/datasource/keyword/keyword_factory.py +++ b/api/core/rag/datasource/keyword/keyword_factory.py @@ -25,7 +25,7 @@ class Keyword: dataset=self._dataset ) else: - raise ValueError(f"Vector store {config.get('VECTOR_STORE')} is not supported.") + raise ValueError(f"Keyword store {keyword_type} is not supported.") def create(self, texts: list[Document], **kwargs): self._keyword_processor.create(texts, **kwargs)