12. Recommendations, Ranking, and Personalization
Use AI to rank relevant items without confusing relevance with authorization or fairness.
Recommendation and Ranking Patterns
Recommendation systems can combine rules, collaborative signals, content embeddings, and model-based reranking. Begin with a measurable objective such as click-through, completion, or relevance judgments, and guard against optimizing a proxy that harms user value. Use conventional filtering to enforce availability, region, permissions, and policy before ranking.
Personalization requires careful data governance. Collect only necessary signals, explain controls where appropriate, and avoid inferring sensitive attributes without a valid basis. Monitor cold-start behavior and feedback loops: items shown more often receive more interactions, which can reinforce the current ranking.
User/context -> authorized candidate filter
-> candidate generation
-> ranker / reranker
-> diversity and policy checks
-> explanation + results- Define the product objective and guardrails.
- Filter eligibility before ranking.
- Monitor cold-start and feedback-loop effects.
Should access permissions be handled only as a ranking score?
Personalization, Consent, and Data Minimization
Personalization can improve usefulness but increases privacy risk and system complexity. Establish a purpose for each data field, retention limits, user controls, and deletion behavior. Do not treat every conversation as permission to store a permanent profile. Separate user-provided preferences from model-inferred guesses and preserve provenance.
Use tenant-aware storage and authorization filters for embeddings or profile records. Avoid logging raw sensitive prompts by default; redact or tokenize identifiers where possible. Review provider retention and training terms for the specific product configuration rather than assuming every API has the same data handling policy.
{
"userId": "user_123",
"preference": "prefers concise explanations",
"source": "explicit_user_setting",
"createdAt": "2026-10-28T00:00:00Z",
"expiresAt": null
}- Minimize collected and retained data.
- Distinguish explicit preferences from inferred guesses.
- Plan deletion and access controls for profile data.
Which is the better basis for a durable personalization preference?