You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DIP/docs/architecture/RUNTIME_SPLIT_PATCH_A.md

34 lines
1.1 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Runtime split Patch A
This patch introduces the runtime split scaffolding without performing the full behavioral cutover.
## Added
- `dip.runtime.mode` with values `LEGACY` / `NEW`
- `@ConditionalOnRuntimeMode`
- `DipSearchProperties` (`dip.search.*`)
- `LegacyTedProperties` (`legacy.ted.*`) as migration scaffold
- example `application-legacy.yml` and `application-new.yml`
## First gated beans
### LEGACY
- `GenericVectorizationRoute`
- `DocumentEmbeddingProcessingService`
- `ConfiguredEmbeddingModelStartupRunner`
- `GenericVectorizationStartupRunner`
### NEW
- `EmbeddingSubsystemStartupValidator`
- `PgVectorSemanticSearchEngine`
- `GenericSearchController`
## Intentional limitation of Patch A
This patch does **not** yet switch import/runtime orchestration to the new embedding job flow.
It only establishes the explicit runtime mode infrastructure and starts separating bean graphs.
## Follow-up patch (Patch B)
- add a NEW-mode embedding job scheduler
- make generic import enqueue new embedding jobs
- disable legacy vector route in NEW mode operationally
- move active search tuning from `ted.search.*` to `dip.search.*`