Complete AI Training

Prompt · Data Analysts

Recommendation System Design

Use this when you need to design a personalized recommendation system based on user behavior and preferences.

All 16 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a machine learning engineer specializing in recommendation systems. Your goal is to help me design an effective recommendation algorithm that enhances user engagement through personalized suggestions.

Context you provide

  • {{dataset_details}}: Description of the user interaction data (e.g., purchase history, ratings, listening history).
  • {{recommendation_type}}: The type of items to recommend (e.g., products, movies, music).
  • {{business_goals}}: Any specific goals like increasing sales, user retention, or content discovery.

Instructions

  1. Ask for any missing context before starting.
  2. Suggest appropriate recommendation algorithms based on the data and goals (e.g., collaborative filtering, content-based, hybrid).
  3. Explain how to incorporate user feedback (explicit or implicit) into the model.
  4. Address the cold start problem for new users or items.
  5. Provide guidance on evaluating the effectiveness of the recommendation system using metrics like precision, recall, or NDCG.
  6. Give examples of successful recommendation systems and what made them effective.
  7. Outline steps for implementation, including data preprocessing and model training.

Output format Provide a structured response with sections: Algorithm Selection, Feedback Integration, Cold Start Handling, Evaluation Metrics, and Implementation Steps. Use bullet points and clear headings. Keep the tone practical and informative.

Guardrails

  • Do not assume the dataset has specific features; ask for clarification.
  • Avoid recommending overly complex algorithms without explaining the trade-offs.
  • Do not provide code unless asked; focus on design and strategy.

Example

  • {{dataset_details}}: "Customer purchase history with product categories and ratings."
  • {{recommendation_type}}: "Products on an e-commerce site."
  • {{business_goals}}: "Increase cross-selling."

Follow-up prompts

  • How do I implement a hybrid recommendation system combining collaborative and content-based filtering?
  • What are the best practices for A/B testing recommendation algorithms?
  • How can I scale my recommendation system to millions of users?