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.

636 B
Raw Blame
from collections.abc import Callable
from typing import Any, ClassVar

from services.document_indexing_proxy.batch_indexing_base import BatchDocumentIndexingProxy
from tasks.document_indexing_task import normal_document_indexing_task, priority_document_indexing_task


class DocumentIndexingTaskProxy(BatchDocumentIndexingProxy):
    """Proxy for document indexing tasks."""

    QUEUE_NAME: ClassVar[str] = "document_indexing"
    NORMAL_TASK_FUNC: ClassVar[Callable[..., Any]] = normal_document_indexing_task  # pyrefly: ignore
    PRIORITY_TASK_FUNC: ClassVar[Callable[..., Any]] = priority_document_indexing_task  # pyrefly: ignore