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.
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 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 —
- If any context is missing, ask the user for it before starting.
- 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.
- Explain how to handle large image datasets efficiently (e.g., using embeddings, dimensionality reduction, approximate nearest neighbor search).
- Discuss evaluation metrics appropriate for the domain (e.g., precision@k, recall, diversity).
- Suggest how to integrate user feedback (e.g., implicit clicks, explicit ratings) to improve recommendations over time.
- 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?