최상위 10_Wiki/Topic_*였던 4개 카테고리 폴더를 10_Wiki/Topics/Topic_* 로 재배치.
콘텐츠 변경 없음(순수 폴더 이동) — Topics/ 하위 나머지 폴더는 이미 지난 커밋에서
전부 정리된 상태(잔존 항목은 에이전트 운영 상태 및 사용자가 보존을 요청한
업데이트0615/무제 3.canvas 뿐).
fromanthropicimportAnthropicclient=Anthropic()defllm_rerank(user_history,candidates):msg=client.messages.create(model="claude-opus-4-7",max_tokens=500,messages=[{"role":"user","content":f"""
User watched: {user_history}Rerank these candidates by relevance, return top-10 IDs only as JSON array:
{candidates}"""}],)returnparse_json(msg.content[0].text)
기본값: 매 industrial 의 two-tower retrieval + DCN/DIN ranking + business-rule rerank, 매 ANN (FAISS / ScaNN), 매 implicit feedback + sampled softmax. 매 LLM-as-reranker 의 emerging 2026 pattern for top-K refinement.
언제: cold-start (zero-shot recommendation from item description), reranker on top-100, explanation generation, semantic ID encoding.
언제 X: full-funnel retrieval at scale (latency / cost prohibitive). 매 LLM 의 reranker only, 매 retrieval 의 ANN.
❌ 안티패턴
Random negative sampling only: easy negatives, model 의 saturate — use hard negatives + in-batch negatives.
Train on biased logged data: position bias / popularity bias not corrected → IPS / counterfactual.
Offline metric chasing: NDCG up but online CTR flat — online A/B 의 truth.
Cold-start ignore: pure CF 의 fail on new items — hybrid fallback.