KaushalVachhani
Databricks Employee
Databricks Employee

@Darshan13 , Based on the error, It looks like when Databricks Model Serving tries to load your model, MLflow's internal code attempts to import _UNSUPPORTED_MODEL_ERROR_MESSAGE which doesn't exist in the LangChain utils structure.

Are you successfully loading the same model from UC and performing predictions within the notebook (Excluding model serving)? 

I still feel that this might be a version compatibility issue between MLflow 2.14.1 and LangChain 0.3.27. Mlflow version is comparatively older than LangChain. I suggest giving it a try by upgrading MLflow and seeing how it goes.