Enhance company service with AI recommendation caching and onboarding improvements
continuous-integration/drone/push Build is passing

- Updated the `companyService` to include Redis caching for AI recommendations, improving performance and reducing redundant AI calls.
- Introduced asynchronous AI onboarding triggered after company profile updates, enhancing user experience by offloading processing.
- Added configuration for recommendation cache TTL in the `AISummarizerConfig`, allowing for flexible cache management.
- Implemented methods for caching, retrieving, and invalidating AI recommendations in the `companyService`, ensuring efficient data handling.

This update enhances the company's AI recommendation capabilities, providing faster responses and a more efficient onboarding process.
This commit is contained in:
Mazyar
2026-06-23 13:24:45 +03:30
parent a7a49fc411
commit a2661651c9
5 changed files with 141 additions and 9 deletions
+2
View File
@@ -98,6 +98,8 @@ func (s *companyService) UploadDocuments(ctx context.Context, companyID, uploade
"documents_total": len(company.DocumentFileIDs),
})
s.triggerAIOnboardingAsync(companyID)
return &UploadDocumentsResponse{
DocumentFileIDs: company.DocumentFileIDs,
Uploaded: uploaded,