Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: remove unresolved reference (#6110)

sinod27e3ab99df0
diff --git a/api/core/indexing_runner.py b/api/core/indexing_runner.py
index 826edff6082..83dbacbfcc8 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]