chore: remove unresolved reference (#6110)

This commit is contained in:
sino 2024-07-09 23:04:44 +08:00 committed by GitHub
parent ce930f19b9
commit d27e3ab99d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -730,7 +730,7 @@ class IndexingRunner:
self._check_document_paused_status(dataset_document.id) self._check_document_paused_status(dataset_document.id)
tokens = 0 tokens = 0
if dataset.indexing_technique == 'high_quality' or embedding_model_type_instance: if embedding_model_instance:
tokens += sum( tokens += sum(
embedding_model_instance.get_text_embedding_num_tokens( embedding_model_instance.get_text_embedding_num_tokens(
[document.page_content] [document.page_content]