How to use databricks model serving endpoint with databricks application ?

gokkul
Databricks Partner

Hi DB Community ,

I have a databricks streamlit application that is viewing and inserting data into lakebase postgres database tables . Now I want to modernise this and implement databricks gen ai models . So instead of giving/selecting inputs , users can prompt what they want to insert . Prompt will be converted into sql query and data can be inserted .  So I have created a model serving endpoint . I want to know everything on how to implement this . Better if I could get any important code snippets .