From d27e3ab99df085335a5c9da91a0f4709cdab3f55 Mon Sep 17 00:00:00 2001 From: sino Date: Tue, 9 Jul 2024 23:04:44 +0800 Subject: [PATCH] chore: remove unresolved reference (#6110) --- api/core/indexing_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/indexing_runner.py b/api/core/indexing_runner.py index 826edff60..83dbacbfc 100644 --- a/api/core/indexing_runner.py +++ b/api/core/indexing_runner.py @@ -730,7 +730,7 @@ class IndexingRunner: self._check_document_paused_status(dataset_document.id) tokens = 0 - if dataset.indexing_technique == 'high_quality' or embedding_model_type_instance: + if embedding_model_instance: tokens += sum( embedding_model_instance.get_text_embedding_num_tokens( [document.page_content]