Services (Services)
This section provides documentation for the application's key service layers.
app.services.ingestion.IngestionService
Source code in app/services/ingestion.py
app.services.intelligence.IntelligenceService
Source code in app/services/intelligence.py
Functions
classify_categories(external_names, internal_categories)
async
Calls external API to map external category names to internal category IDs.
Source code in app/services/intelligence.py
score_product(product_data)
async
Calls external API to get giftability score and reasoning.
Source code in app/services/intelligence.py
app.services.recommendation.RecommendationService
Source code in app/services/recommendation.py
Functions
generate_recommendations(request, engine_version='vector_v1')
async
Main orchestration method for recommendation generation. Implements Stages A, B, C, D from the roadmap.