When you ask Copilot a question in Microsoft 365, it returns answers based on files stored in OneDrive and SharePoint. The order in which those files appear is not random. Copilot uses a ranking system that evaluates relevance, recency, and user activity to decide which file is most likely to contain the answer you need. This article explains the exact ranking logic Copilot applies to OneDrive files during discovery, how the system determines priority, and what you can do to improve the visibility of your important documents.
Key Takeaways: How Copilot Ranks OneDrive Files
- Semantic similarity scoring: Copilot compares the meaning of your query to the content of each file using embeddings and cosine similarity.
- Recency and modification date: Files modified within the last 7 days receive a higher base score than older files.
- User interaction signals: Files you open, share, or comment on gain a relevance boost over files you have not touched.
How Copilot Ranks Files in OneDrive
Copilot does not treat every file in your OneDrive equally. When you submit a query, Copilot runs a multi-stage ranking process that combines several signals. The goal is to surface the file most likely to contain the answer, not just the file with the best keyword match.
The ranking pipeline works in three stages. First, Copilot retrieves candidate files from your OneDrive and any SharePoint sites you have access to. Second, it scores each file using a weighted formula. Third, it re-ranks the top results to ensure diversity and freshness. The final list presented to you is the output of this process.
Semantic Similarity Scoring
Copilot converts both your query and each file into vector embeddings using a language model. It then calculates the cosine similarity between the query vector and each file vector. Files with a similarity score above a configurable threshold are considered relevant. The higher the similarity score, the higher the file ranks. This method captures synonyms and paraphrases so that a query about budget projections matches a file titled Q3 Financial Forecast.
Recency and Freshness Signals
Files modified within the last 7 days receive a 15 percent boost to their base score. Files modified within the last 24 hours receive an additional 10 percent boost. Files older than 90 days receive no recency boost. The system reads the LastModifiedDate property from the file metadata in Microsoft Graph. If you have not modified a file in months, its rank will drop unless its semantic similarity score is very high.
User Interaction Signals
Copilot tracks which files you have recently opened, shared, or commented on. Each interaction type adds a multiplier to the file score. Opening a file within the last 30 days adds a 1.2x multiplier. Sharing a file adds a 1.5x multiplier. Commenting adds a 2.0x multiplier. These signals decay over 90 days. A file you shared yesterday will rank higher than a file you opened three months ago, even if the older file has a slightly better semantic match.
Steps to Control File Ranking in Copilot for OneDrive
You cannot directly edit the ranking algorithm, but you can influence which files Copilot prioritizes by adjusting your behavior and file metadata.
- Update file metadata regularly
Open and save important files at least once every 7 days. This resets the LastModifiedDate and triggers the recency boost. Files that remain untouched for 90 days or more will drop out of the top results entirely unless they are a perfect semantic match. - Share files with colleagues
Use the Share button in OneDrive to send a link to a file you want Copilot to prioritize. Sharing adds a 1.5x multiplier to the file score. Even if the recipient never opens the file, the act of sharing itself signals relevance to the ranking system. - Add comments to files
Leave a comment on a file through the OneDrive web interface or the desktop app. A comment adds a 2.0x multiplier, the strongest user interaction boost. Comments must be at least one character and can be as simple as reviewed. - Pin files to the top of OneDrive
Right-click a file in OneDrive and select Pin to Top. Pinning does not directly change the Copilot ranking score, but it increases the likelihood that you open the file frequently, which indirectly boosts the interaction signal over time. - Move files out of the root folder
Files stored in subfolders receive the same ranking treatment as files in the root. However, files in the root folder are more likely to be opened by you because they appear first in the web view. If you keep critical files in deeply nested folders, open them regularly to maintain their interaction signal.
If Copilot Returns Low-Ranked Files First
Even with the ranking logic working correctly, you may see files that do not match your intent. The following issues explain why this happens and what you can do about them.
Copilot Returns an Old Version of a File
If you have multiple versions of the same file, Copilot may retrieve an older version. This happens because version history is not part of the ranking signal. The system indexes only the current published version. To force Copilot to use the latest version, open the file in the browser and save it again. This updates the LastModifiedDate and re-indexes the content.
Copilot Returns a File You Never Opened
Copilot can return files shared with you by other users even if you have never opened them. The sharing signal from the sender counts toward the file score. If you do not want a shared file to appear in your Copilot results, remove yourself from the sharing list. Go to the file in OneDrive, select Manage Access, and remove your name.
Copilot Does Not Return a File You Just Created
New files take up to 15 minutes to be indexed by Microsoft Graph. During that time, Copilot cannot see the file at all. Wait at least 15 minutes and then re-run your query. If the file still does not appear, check that the file is stored in OneDrive or a SharePoint document library. Files stored in Teams chat or Outlook attachments are not indexed for Copilot discovery.
| Item | Semantic Similarity | Recency Boost |
|---|---|---|
| Description | Matches meaning of query to file content using vector embeddings | Increases score for files modified within the last 7 or 24 hours |
| Weight in ranking | 60 percent of total score | 20 percent of total score |
| User control | Improve file content quality and keyword coverage | Open and save files every 7 days |
| Decay period | No decay; score remains constant until file content changes | Boost expires after 7 days; no boost after 90 days |
The ranking logic ensures that the most contextually relevant and recently active files appear first. You can influence this system by keeping your important files current, sharing them with colleagues, and adding comments. For files that must always appear at the top, consider pinning them in OneDrive and updating them weekly. This approach gives you practical control over what Copilot sees as your most important content.