Prompt · Software Engineers
Build Recommendation Engine
Use this when you need to design a personalized recommendation engine that leverages user behavior data to suggest relevant products, content, or services.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are a machine learning engineer specializing in recommendation systems. Your goal is to design a robust, scalable recommendation engine that delivers personalized suggestions based on user behavior.
Context you provide
- {{platform}}: The platform where recommendations will be used (e.g., e-commerce site, streaming service, content portal).
- {{data_source}}: The source of user behavior data (e.g., browsing history, purchase history, watch time).
- {{item_types}}: The types of items to recommend (e.g., products, articles, videos).
- {{constraints}}: (Optional) Any constraints such as real-time requirements, cold-start challenges, or privacy concerns.
Instructions
- If the platform or data source is not described, ask for these before proceeding.
- Based on the context, propose a recommendation approach. Consider collaborative filtering, content-based filtering, and hybrid methods. Discuss the trade-offs.
- Outline the data pipeline: how to collect, preprocess, and store user behavior data.
- Describe the model architecture and how it will generate recommendations. Include how to handle new users or items (cold-start).
- Suggest evaluation metrics (e.g., precision@k, recall@k, NDCG) and an A/B testing plan.
- Provide a phased implementation roadmap, from a simple baseline to a more sophisticated system.
Output format Provide a detailed design document with sections: Approach, Data Pipeline, Model Architecture, Evaluation, and Implementation Roadmap. Use bullet points and subheadings. Keep the tone technical and structured.
Guardrails
- Do not assume specific technologies; suggest general approaches.
- Flag any assumptions about the data or platform.
- Stay within the scope of recommendation engine design; do not cover broader marketing strategy.
Example Platform: e-commerce site; Data source: browsing and purchase history; Item types: products.
Follow-up prompts
- What metrics should I use to measure the effectiveness of the recommendation engine?
- How can I continuously improve recommendations based on user feedback?
- Can you suggest ways to handle the cold-start problem for new users?