# Spending more compute at indexing time improves retrieval without extra inference cost

> Original title: By spending lots of compute at indexing time, you can reuse that computation to get better performance without increasing inference-time ...

- Source: Aman Sanger
- Published: 2025-11-05T21:23:39.000Z
- Bad Influence: https://badinfluence.news/items/wktx38evn8zo2ybuacl0tlg91
- Original: https://x.com/amanrsanger/status/1986182647849361638

## Summary

Aman Sanger of Cursor argues that heavy compute spent at indexing time can be reused to improve performance without raising inference-time compute, with embeddings as the simplest mechanism. Cursor's background post says semantic search improves its agent's accuracy across frontier models, especially in large codebases where grep alone falls short.

## Post

By spending lots of compute at indexing time, you can reuse that computation to get better performance without increasing inference-time compute!

Embeddings are the simplest mechanism that achieve this!

## Quoted post @cursor_ai

> Semantic search improves our agent's accuracy across all frontier models, especially in large codebases where grep alone falls short.
> 
> Learn more about our results and how we trained an embedding model for retrieving code.

https://x.com/cursor_ai/status/1986124270548709620
