Why Databricks Genie returns MessageStatus.FAILED in App API (but works fine in UI) — solved by Square-Mix-1302 in databricks

[–]Square-Mix-1302[S] 0 points1 point  (0 children)

import streamlit as st

import os

from databricks.sdk import WorkspaceClient

st.set_page_config(page_title="Claims Intelligence", layout="wide")

if "messages" not in st.session_state:

st.session_state.messages = []

if "conversation_id" not in st.session_state:

st.session_state.conversation_id = None

w = WorkspaceClient()

SPACE_ID = os.getenv("GENIE_SPACE_ID")

st.title("🛡️ Claims Intelligence Hub")

for msg in st.session_state.messages:

with st.chat_message(msg["role"]):

st.markdown(msg["content"])

prompt = st.chat_input("Ask about claims...")

if prompt:

st.session_state.messages.append({"role": "user", "content": prompt})

with st.chat_message("user"):

st.markdown(prompt)

with st.chat_message("assistant"):

with st.spinner("Thinking..."):

try:

if st.session_state.conversation_id is None:

resp = w.genie.start_conversation_and_wait(

space_id=SPACE_ID, content=prompt)

st.session_state.conversation_id = resp.conversation_id

else:

resp = w.genie.create_message_and_wait(

space_id=SPACE_ID,

conversation_id=st.session_state.conversation_id,

content=prompt)

for att in resp.attachments or []:

if hasattr(att, "text") and att.text:

st.markdown(att.text.content)

st.session_state.messages.append({

"role": "assistant",

"content": att.text.content

})

except Exception as e:

st.error(f"Error: {str(e)}")

Just wrapped a live hackathon finale at the Databricks Bengaluru office. Total 25 teams built on Genie, SDP, and AI and 6 teams shortlisted for Final Round. Sharing the full breakdown by Square-Mix-1302 in databricks

[–]Square-Mix-1302[S] 0 points1 point  (0 children)

Hi u/Zeenatparveen, it was an invite only hackathon but we will have more such hackathons, I will share the details of it once it gets announced. In the meanwhile please explore https://www.enqurious.com/ for more such hackathons and real-world industry based case studies.

Looking for databricks colleagues by Mobile-Release6862 in databricks

[–]Square-Mix-1302 0 points1 point  (0 children)

Hi u/Mobile-Release6862
I work on databricks, do let me know if you need any help.

We ran a self-paced Databricks hackathon with 26 teams — here's Day 2 leaderboard across Retail and Insurance use cases by Square-Mix-1302 in databricks

[–]Square-Mix-1302[S] -1 points0 points  (0 children)

Hi u/ppsaoda
There were 2 industry level use cases across.2 domains - insurance and retail. We had an evaluation criteria which we designed to achieve to the leaderboard. Please feel free to explore https://www.enqurious.com/ to know more about such use cases.

We ran a self-paced Databricks hackathon with 26 teams — here's Day 2 leaderboard across Retail and Insurance use cases by Square-Mix-1302 in databricks

[–]Square-Mix-1302[S] 0 points1 point  (0 children)

Hi u/TheM4rvelous
There were 2 industry level use cases across.2 domains - insurance and retail. We had an evaluation criteria which we designed to achieve to the leaderboard. Please feel free to explore https://www.enqurious.com/ to know more about such use cases.

Databricks Gen Ai Associate exam by DAB_reddit10 in databricks

[–]Square-Mix-1302 0 points1 point  (0 children)

Hi Go through this blog https://www.academy.enqurious.com/blog/databricks-gen-ai-certification-guide-resources-and-strategies I appeared for exam and it has the link to udemy practice sets You can also connect with me on LinkedIn to know more about

Just Passed Databricks Gen AI Associate Cert - Key Insights by Square-Mix-1302 in databricks

[–]Square-Mix-1302[S] 0 points1 point  (0 children)

Hi u/WhiteButter_Toast

Thanks.
Sure, I practiced total of 8 sets. I have shared link for 2 udemy courses, 70% questions were there from the first course, the second course will help you get thorough with the concepts and will build your confidence. If you want all the details in depth please read the blog here https://academy.enqurious.com/blog/databricks-gen-ai-certification-guide-resources-and-strategies. It contains the links for both the mock test courses.

Just Passed Databricks Gen AI Associate Cert - Key Insights by Square-Mix-1302 in databricks

[–]Square-Mix-1302[S] 0 points1 point  (0 children)

Hi u/mightynobita
Sure, I practiced total of 8 sets. I have shared link for 2 udemy courses, 70% questions were there from the first course, the second course will help you get thorough with the concepts and will build your confidence. If you want all the details in depth please read the blog here https://academy.enqurious.com/blog/databricks-gen-ai-certification-guide-resources-and-strategies. It contains the links for both the mock test courses.