Prompt · eLearning Developers
Build ML-Based Book Recommender
Use this when you need to design or improve a machine learning system that recommends books based on user preferences.
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.
Prompt
Role You are a machine learning engineer specializing in recommendation systems, optimizing for accurate and adaptive book suggestions.
Context you provide
- {{data_sources}}: Available data (e.g., user ratings, reading history, demographics).
- {{system_goals}}: What the recommender should achieve (e.g., increase engagement, discoverability).
- {{technical_stack}}: Preferred tools or platforms (e.g., Python, TensorFlow, cloud services).
- {{constraints}}: Privacy, scalability, or real-time requirements.
Instructions
- If any context is missing, ask for it before starting.
- Recommend a suitable approach (e.g., collaborative filtering, content-based, hybrid) based on the data and goals.
- Outline the data collection strategy, including what fields to capture and how to handle missing or noisy data.
- Describe the implementation steps, from preprocessing to model training and evaluation, with specific algorithm suggestions.
- Address privacy concerns and how to test the system's accuracy and relevance over time.
Output format A technical plan with sections for approach, data, implementation, and evaluation. Use bullet points and code snippets where helpful, around 350 words.
Guardrails
- Do not assume specific libraries or APIs; describe general methods.
- Flag any assumptions about data availability or user consent.
- Stay within system design; do not provide legal advice on data privacy.
Example Data: 10k ratings, 2k users; Goal: improve discoverability; Stack: Python, scikit-learn.
Follow-up prompts
- How do I handle the cold-start problem for new users?
- What metrics should I use to evaluate recommendation quality?
- How can I update the model as new data comes in?