feat(ai): add personal summary models and retire Q&A
Add an admin-managed provider model catalog with per-user summary selection, migration backfill, and generation snapshots. Retire report creation and messaging while preserving owner-scoped history. Refs #15 #16 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -18,6 +18,7 @@ import (
|
||||
)
|
||||
|
||||
type Dependencies struct {
|
||||
LayaRanker generation.LayaRanker
|
||||
Feeds map[string]scraper.Scraper
|
||||
IndexSearcher indices.IndexSearcher
|
||||
GenerationFactory func(*ai.Pipeline) generation.UseCase
|
||||
@ -32,7 +33,7 @@ func New(repo *models.Repository, cfg *config.Config, deps Dependencies) *App {
|
||||
enc := crypto.New(cfg.EncryptionKey)
|
||||
pipeline := ai.NewPipeline(repo, enc)
|
||||
registry := scraper.NewRegistry(repo)
|
||||
uc := pipeline.NewGenerationUseCase(deps.Feeds)
|
||||
uc := pipeline.NewGenerationUseCaseWithLaya(deps.Feeds, deps.LayaRanker)
|
||||
if deps.GenerationFactory != nil {
|
||||
uc = deps.GenerationFactory(pipeline)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user