Encountered an exception while running action 'action_retrieve_and_generate

I am trying to impalement LLM and RAG with RASA. I encountered the error with custom action

Failed to execute custom action ‘action_retrieve_and_generate’ because no endpoint is configured to run this custom action. Please take a look at the docs and set an endpoint configuration via the --endpoints flag. Writing Custom Actions | Rasa Documentation