How to Customize the LLM Response from Enterprise Search Policy

Hi, I’m new to Rasa and am using action_trigger_search with the Enterprise Search policy to query a document. I want to customize my own response back to the user, instead of using the more verbose LLM reply. I’m trying to stick to CALM and not use any NLU. I was able to create a desired response using a combination of the temperature (0.0) and a rephrase_prompt in my response metadata. However, Rasa is returning both the standard LLM reply AND my rephrased response. I realize the standard LLM reply is coming back due to my calling action_trigger_search, and then the rephrased response as defined in my flow as below.

  • action: action_trigger_search
  • utter_my_rephrased_response

How can I suppress the standard LLM reply from action_trigger_search?

I have looked into creating a custom information retrieval class but (being new to Rasa) I’m not sure how to write the search function and also whether I still trigger the search via action_trigger_search, or must create a new action. I am unable to find any examples showing how this works. I’m also not clear if there is a better/easier way to suppress/customize the enterprise search response than using a custom information retrieval search class. All I want back from action_trigger_search is an attribute value in the document (which is actually a json renamed with a .txt extension).

Thanks!