Enhance AI pipeline service with document metadata synchronization
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
- Updated the AI pipeline service to include a new `ScrapedDocumentMetadataSyncer` interface for persisting scraped document metadata onto tender records. - Modified the `NewService` function to accept the new metadata syncer dependency. - Implemented synchronization of scraped document metadata in the `ScrapeDocuments` and `Run` methods. - Enhanced the tender service to enrich search filters based on scraped documents and added a new method for syncing scraped documents from storage. - Updated the `SearchForm` to include `ContractFolderIDsWithDocuments` for better handling of scraped documents in queries. This update improves the integration of scraped document handling within the AI pipeline, enhancing data consistency and operational efficiency in the tender management system.
This commit is contained in:
+1
-1
@@ -232,7 +232,7 @@ func main() {
|
||||
documentScraperService := document_scraper.NewService(tenderRepository, logger)
|
||||
dashboardRepository := dashboard.NewRepository(mongoManager, logger)
|
||||
dashboardService := dashboard.NewService(dashboardRepository, logger)
|
||||
aiPipelineService := ai_pipeline.NewService(aiPipelineClient, logger)
|
||||
aiPipelineService := ai_pipeline.NewService(aiPipelineClient, logger, tenderService)
|
||||
logger.Info("Services initialized successfully", map[string]interface{}{
|
||||
"services": []string{"customer", "user", "company", "category", "tender", "feedback", "tender_approval", "inquiry", "flag", "notification", "contact", "cms", "scraper", "kanban", "document_scraper", "dashboard", "ai_pipeline"},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user