rasa open source with llm function

How does the open source version of rasa use llm for intent recognition and entity extraction? Is there any sample code I can refer to?

It does not, you need Rasa Pro and you can get a developer license at no charge here