Chat
With Codebase
Default Codebase Chat
If a codebase isn’t indexed, Cursor Chat will first attempt to compute a few search queries to be used to search across your codebase. For better accuracy, it’s recommended to use embeddings search.
![](https://mintlify.s3-us-west-1.amazonaws.com/anysphere/images/chat/no-embeddings.png)
Embeddings Search
With codebase indexing, Cursor Chat can accurately generate responses based on your codebase.
By pressing Ctrl/⌘ + Enter
after typing a message, Cursor Chat scans through your indexed codebase to find pieces of relevant code. This is generally
good for quickly including code snippets to be taken into the context of the conversation. For more control over the codebase search and better accuracy,
you can use @codebase
.
![](https://mintlify.s3-us-west-1.amazonaws.com/anysphere/images/chat/embeddings.png)
Advanced Codebase Search
Cursor codebase chat goes through a more detailed search when @Codebase
is used.
See more about @Codebase
here.