mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-03 03:38:08 +08:00
chore: remove unresolved reference (#6110)
This commit is contained in:
parent
ce930f19b9
commit
d27e3ab99d
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user