dify/api/core/rag
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
..
cleaner refactor(api): type bare dict/list annotations in remaining rag folder (#33775) 2026-03-20 03:31:06 +09:00
data_post_processor chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
datasource feat: trace document retrieval (#37283) 2026-06-11 02:39:59 +00:00
docstore chore: DocumentSegment to Typebase (#35635) 2026-05-12 07:02:17 +00:00
embedding ci: add flag for linter (#37018) 2026-06-08 04:53:12 +00:00
entities refactor: clean unnecessary | None annotations in entities (#35557) 2026-06-18 15:23:08 +08:00
extractor refactor: clean unnecessary | None annotations in entities (#35557) 2026-06-18 15:23:08 +08:00
index_processor chore: example to color the session (#37402) 2026-06-15 18:06:24 +00:00
models chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
pipeline chore: use from __future__ import annotations (#30254) 2026-01-06 23:57:20 +09:00
rerank ci: add flag for linter (#37018) 2026-06-08 04:53:12 +00:00
retrieval feat(agent): wire knowledge base retrieval into runtime (#37577) 2026-06-17 09:27:38 +00:00
splitter ci: add flag for linter (#37018) 2026-06-08 04:53:12 +00:00
summary_index refactor(api): migrate core RAG layer to SQLAlchemy 2.0 select() API (#34965) 2026-04-11 16:32:20 +00:00
__init__.py Feat/dify rag (#2528) 2024-02-22 23:31:57 +08:00