Hi @Andrewww, it is fantastic to see you exploring Databricks Genie Spaces! Since you are currently in the initial experimentation phase and working with a streamlined sales dataset, starting by pointing Genie directly to your raw table is completely fine for a proof of concept.
However, as your data grows and you add more details, pointing Genie directly to raw data will cause friction. Think of Genie as a super smart intern. If you give it a messy, raw table, it will waste a lot of time guessing what the columns mean and might make mistakes.
Leaving the raw setup as-is simply forces Genie to expend extra compute resources and processing time on basic logic:
- Extra Logic Processing: If a user asks for "total sales," Genie has to write more complex, multi-step SQL queries on the fly to deduce whether to sum the raw amount column or filter out cancelled orders first.
- Slow Answers: Querying raw rows forces Genie to scan every single record for every question, meaning your users wait longer for answers.
- Complex Join Computations: As you add more tables later, Genie will have to dynamically compute table relationships and keys for every session, which adds computational overhead compared to reading a pre-governed view.
Creating a clean, pre-modeled metric view changes everything because it gives Genie a clear map to follow. You can lock your business math such as excluding cancelled orders, directly inside the view. Genie just reads it, ensuring everyone gets the exact same answers with much better performance.
To scale this smoothly, think of your data as a production line that refines raw data into high-quality answers:
- Bronze Layer: This holds your raw, unedited sales entries, which are great for storage but too noisy for Genie.
- Silver Layer: This cleans up your records, strips out processing errors, and standardizes dates.
- Gold Layer: This is your highly polished semantic view built on top of that clean data, holding your official business metrics. This is the absolute best place to point Genie.
To get started with this setup, the official documentation recommends keeping your space focused on one small business topic at first. You should also give Genie a benchmarking cheat sheet of 5 to 10 example questions your team will actually ask to track accuracy.
Your biggest quick win right now is configuring your metadata to speak plain English:
- Use Clear Synonyms: Map business terms or shorthand like "Revenue" or "Spend" directly to your table's columns.
- Add Field Descriptions: Write simple, clear comments on your columns in Databricks. Genie reads these comments natively, which instantly stops the guessing game and ensures highly accurate answers.
For a deeper dive into these optimization strategies, you can read the full Databricks AI/BI Genie Best Practices Guide.
Happy experimenting, and enjoy building out your space!