Cursor rules to specify using the latest version of docs

I see rules like this in some examples:

  • Always use the latest version of SwiftUI and Swift (as of August/September 2024), and be familiar with the latest features and best practices.

My question is if the LLM has not been trained with data after August 2024, then how will it know anything about versions of SwiftUI and Swift on that date?

Am I missing something. I thought if an LLM was not trained for a new version then it would not know about it.

Hey, if you are adding documentation in your Cursor settings, you can be assured you are almost always using the latest version as context for the LLM.

However, if you’re referring to a kind of “internal” knowledge of the LLM, your best bet is to make sure you @ the relevant documentation in your prompt for the AI to look at, and also adding a rule in a .cursorrules file to prompt the AI to use the latest standards for SwiftUI would likely go a long way!

You can learn more about @ing docs here: