mirror of
https://github.com/langgenius/dify.git
synced 2026-11-29 16:18:01 +08:00
26 lines
532 B
Python
26 lines
532 B
Python
"""Shared knowledge values independent of persistence models."""
|
|
|
|
from enum import StrEnum
|
|
|
|
|
|
class ProcessRuleMode(StrEnum):
|
|
"""Dataset process-rule mode."""
|
|
|
|
AUTOMATIC = "automatic"
|
|
CUSTOM = "custom"
|
|
HIERARCHICAL = "hierarchical"
|
|
|
|
|
|
class DocumentCreatedFrom(StrEnum):
|
|
"""Source of a document-creation request."""
|
|
|
|
WEB = "web"
|
|
API = "api"
|
|
RAG_PIPELINE = "rag-pipeline"
|
|
|
|
|
|
class KnowledgeProviderFailure(StrEnum):
|
|
UNINITIALIZED = "uninitialized"
|
|
QUOTA = "quota"
|
|
UNSUPPORTED = "unsupported"
|