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.

577 B
Raw Blame
"""Owned values passed between document creation's database and I/O phases."""

from dataclasses import dataclass

from services.knowledge.resource_scope import DatasetRef


@dataclass(frozen=True)
class DocumentCreationDataset:
    tenant_id: str
    indexing_technique: str | None
    embedding_model: str | None
    embedding_model_provider: str | None


@dataclass(frozen=True)
class DocumentIndexingJobs:
    dataset: DatasetRef
    created: tuple[str, ...] = ()
    duplicated: tuple[str, ...] = ()
    removed_notion: tuple[str, ...] = ()
    updated: str | None = None