dify/api/core/rag/entities
EvanYao826 422ebf59ea refactor: clean unnecessary | None annotations in entities (#35557)
Remove unnecessary '| None' type annotations where the default value
already guarantees a non-None type. This is the second batch of
cleanups following PR #36824.

Patterns changed:
- 'bool | None = False' -> 'bool = False'
- 'bool | None = Field(default=False)' -> 'bool = Field(default=False)'
- 'int | None = Field(default=0)' -> 'int = Field(default=0)'
- 'float | None = Field(default=0.0)' -> 'float = Field(default=0.0)'
- 'str | None = ""' -> 'str = ""'
- 'str | None = Field(default="")' -> 'str = Field(default="")'
- 'list[...] | None = Field(default_factory=list)' -> 'list[...] = Field(default_factory=list)'
2026-06-18 15:23:08 +08:00
..
__init__.py refactor(api): consolidate duplicate RerankingModelConfig and WeightedScoreConfig definitions (#34747) 2026-04-13 05:53:45 +00:00
citation_metadata.py feat: Add summary index for knowledge. (#31625) 2026-01-29 13:47:35 +08:00
context_entities.py chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
event.py refactor: clean unnecessary | None annotations in entities (#35557) 2026-06-18 15:23:08 +08:00
index_entities.py refactor(api): deduplicate RAG index entities and consolidate import paths (#34690) 2026-04-08 02:49:40 +00:00
metadata_entities.py refactor(api): migrate consumers to shared RAG domain entities from core/rag/entities/ (#34692) 2026-04-07 23:22:56 +00:00
processing_entities.py refactor(api): extract shared RAG domain entities into core/rag/entity (#34685) 2026-04-07 22:43:37 +00:00
retrieval_settings.py refactor(api): consolidate duplicate RerankingModelConfig and WeightedScoreConfig definitions (#34747) 2026-04-13 05:53:45 +00:00