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:
@@ -62,6 +62,8 @@ type SearchForm struct {
|
||||
OnlyActiveDeadlines bool `query:"-" valid:"optional"`
|
||||
Language *string `query:"lang" valid:"optional"`
|
||||
DocumentsScraped bool `query:"documents_scraped" valid:"optional"`
|
||||
// ContractFolderIDsWithDocuments is populated by the service from MinIO when DocumentsScraped is true.
|
||||
ContractFolderIDsWithDocuments []string `query:"-" valid:"optional"`
|
||||
}
|
||||
|
||||
// SearchResponse represents the response for listing tenders
|
||||
|
||||
Reference in New Issue
Block a user