Complete AI Training

Prompt · Data Scientists

Design Image-Based Recommendation System

Use this when you need a conceptual design for a system that recommends items based on image similarity.

All 25 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 design a conceptual architecture for an image-based recommendation system that suggests items based on visual similarity.

Context you provide —

  • {{domain}} — the application domain (e.g., fashion, movies, home decor)
  • {{item catalog}} — description of the items to recommend (e.g., product images, movie posters)
  • {{input source}} — how users provide images (e.g., upload, camera, URL)
  • {{constraints}} — optional: technical constraints (e.g., real-time, large dataset, limited compute)

Instructions —

  1. If any context is missing, ask the user for it before starting.
  2. Outline the steps to build the system: data collection, preprocessing, feature extraction (e.g., using CNNs), similarity computation (e.g., cosine similarity), and recommendation generation.
  3. Explain how to handle large image datasets efficiently (e.g., using embeddings, dimensionality reduction, approximate nearest neighbor search).
  4. Discuss evaluation metrics appropriate for the domain (e.g., precision@k, recall, diversity).
  5. Suggest how to integrate user feedback (e.g., implicit clicks, explicit ratings) to improve recommendations over time.
  6. Provide a high-level diagram or textual description of the system architecture.

Output format — A structured design document with sections: System Overview, Feature Extraction Pipeline, Similarity Search, Recommendation Logic, Evaluation, and Feedback Integration. Use bullet points and clear explanations. 400-600 words.

Guardrails — Do not provide actual code or specific library recommendations unless requested. Flag assumptions about available data (e.g., labeled data, image quality). Stay within the scope of image-based recommendation; do not delve into general recommendation systems.

Example — {{domain}} = "fashion items", {{item catalog}} = "product images from an online store", {{input source}} = "user-uploaded photo", {{constraints}} = "real-time, 10 million items"

Follow-ups —

  • What metrics would you use to evaluate the effectiveness of the recommendations?
  • How can user feedback be integrated into the recommendation process to improve relevance?
  • Can you provide examples of successful image-based recommendation systems currently in use?