cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Is there a way to deactivate genie auto corretion

Fรฉlix_banqi
New Contributor II

Genie keeps breaking my code, sometimes making almost impossible to write code.
Sometimes it behaves in a normal way, but sometimes it auto correts at every moment, with non wanted code.

There is any way to fix it? I know its a bug, but i also dont know where to report. 

3 REPLIES 3

Fรฉlix_banqi
New Contributor II

I already deactivated alll genie features in the developer settings but it keep breaking my code and the flow... 

balajij8
Contributor III

You can follow below to deactivate auto correction suggestions

  • Click your username in the upper right corner of the workspace
  • Select Settings
  • Go to Developer - Under Code Editor - Toggle OFF below settings
    • Automatic Genie Code Autocomplete - Disables AI based auto complete suggestions
    • Autocomplete as you type - Disables automatic suggestions
    • Enter key accepts autocomplete suggestions - Prevents Enter from inserting suggestions
    • SQL syntax error highlighting - You can disable it if error highlighting is also interfering in SQL editor

It will shut off all the autocomplete suggestions. You can also do it selectively based on cases.

Ashwin_DSA
Databricks Employee
Databricks Employee

Hi @Fรฉlix_banqi,

Sorry you are facing this issue. That definitely doesnโ€™t sound like the intended experience.

I would like to understand the issue better to give you a better steer. Is there an example you can share?

In the meantime, given that you have already tried the developer settings, a couple of things may help...

  • If you are using Genie Code in Agent mode, it can behave much more autonomously. Databricks documents that Agent mode is designed for multi-step workflows, while Chat mode is better for narrower help, such as explanations and simpler code generation, so switching to Chat mode is often the safest option when you want assistance without many automatic changes. See Use Genie Code.
  • It's also worth keeping approvals strict. The docs say Genie Code asks for approval before using tools like editing notebooks or running code, and "Ask every time" is the default behaviour. See Use Genie Code.
  • For notebook/code fixes specifically, Genie Code supports diff-based flows like /fix, where you can accept or reject the proposed change, and accepted code does not automatically run. See Get coding help from Genie Code.
  • Databricks also calls out that results can vary and usually improve when prompts are more explicit... for example, specifying the exact output you want, the library to use, or the format of the answer. See Tips to improve Genie Code responses.

If you already got into a bad state, another useful point is that Genie Code edits are tracked in revision history, and Databricks says you can roll back changes across notebooks, queries, files, and pipelines. See Introducing Genie Code.

There is in-product feedback built in... Databricks documents the Useful/Not useful controls directly under Genie Code answers in Use Genie Code. If this is causing code corruption or unexpected edits, I would also recommend raising it through their normal Databricks support channel with as much detail as possible.

Once I have additional information (such as an example), I'm happy to raise this internally.

 

Regards,
Ashwin | Delivery Solution Architect @ Databricks
Helping you build and scale the Data Intelligence Platform.
***Opinions are my own***