Analytics and optimization with Neuroanalyst in Yandex DataLens Platform
SQL Editor features an integrated Neuroanalyst you can use to:
- Generate SQL queries from natural language descriptions.
- Fix SQL queries from SQL Editor.
- Optimize SQL queries from SQL Editor.
- View databases.
Warning
Neuroanalyst can make mistakes. Always check its suggestions for validity.
Generating database queries
Neuroanalyst can generate SQL queries based on natural language descriptions, for example:
Find all users who have not placed any orders in the last 30 days.
Create a test table named
testand populate it with 10 entries.
Queries follow the syntax and structure of the database you select.
Neuroanalyst does not execute SQL queries. Execute them using one of these methods:
- Click Execute query below the generated SQL query. This will automatically execute the query in SQL Editor.
- Copy the query from Neuroanalyst’s response and execute it manually.
Fixing and optimizing database queries
Neuroanalyst can fix and optimize SQL queries from SQL Editor based on the syntax and structure of the database you select. You can also fix and optimize other SQL queries to the selected database by forwarding them directly into the chat.
Fixing
-
Select the required connection from the list in the SQL Editor.
-
In the top panel, click Help me prompt. This will open the Neuroanalyst window.
-
Type
Fix errors in this queryand click .Neuroanalyst can help you fix an SQL query from SQL Editor. If there is no query in the editor, Neuroanalyst will prompt you to enter the SQL query you want to fix.
Optimizing
-
Select the required connection from the list in the SQL Editor.
-
In the top panel, click Help me prompt. This will open the Neuroanalyst window.
-
In the Neuroanalyst window, click the suggested message:
Optimize SQL query.Neuroanalyst can help you optimize an SQL query from SQL Editor. If there is no query in the editor, Neuroanalyst will prompt you to enter the SQL query you want to optimize.
Database overview
Neuroanalyst helps with database overviews.
-
Select the required connection from the list in the SQL Editor.
-
In the top panel, click Help me prompt. This will open the Neuroanalyst window.
-
In the Neuroanalyst window, click the suggested message:
Review current database.Neuroanalyst will overview the selected database.