code near the cursor is more relevant than code far away - **Semantic relevance** — code that uses similar variable names, function calls, or patterns is prioritized - **Import relationships** — files that are imported or referenced by the current file receive higher priority - **Recency** — recentl