feat(generation): select articles in three passes
This commit is contained in:
@ -34,6 +34,9 @@ type App struct {
|
||||
func New(repo *models.Repository, cfg *config.Config, deps Dependencies) *App {
|
||||
enc := crypto.New(cfg.EncryptionKey)
|
||||
pipeline := ai.NewPipeline(repo, enc)
|
||||
if names, ok := deps.CompanyCatalog.(generation.MentionNameResolver); ok {
|
||||
pipeline.SetMentionNameResolver(names)
|
||||
}
|
||||
registry := scraper.NewRegistry(repo)
|
||||
uc := pipeline.NewGenerationUseCaseWithLaya(deps.Feeds, deps.LayaRanker)
|
||||
if deps.GenerationFactory != nil {
|
||||
|
||||
Reference in New Issue
Block a user