RAG implementation failing

Hello, I am attempting to run the [Chatbot Tutorial] and when I attempt to run the "Flask Create-Index" Command on the Python Back End section, I get a error message stating:

"773 ERROR langchain_elasticsearch.vectorstores: First error reason: Model [.elser_model_2] must be deployed to use. Please deploy with the start trained model deployment API."

I have configured my .env file with the correct parameters but I am still not able to connect. Can someone point me in the right direction before I try to present this to my management team?

Thank you,

(Welcome — Search Labs)

Hi @Gordon1, Welcome to the Elastic community. It seems you have not deployed ELSER model (.elser_mode_2) in Elastic. To deploy -

Go to the kibana panel. Navigate to Menu -> Machine Learning (In Analytics section). In left menu, Click on Trained Models (In Model Management Section).

  1. ELSER can be found in the list of trained models.
  2. Click the Download model button under Actions.
  3. After the download is finished, start the deployment by clicking the Start deployment button.
  4. Provide a deployment ID, select the priority, and set the number of allocations and threads per allocation values (It's ok if you keep it as a default).
  5. Click Start.

Once started you can again try to run the same script.

Thank you very much! This worked!

1 Like