You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: HISTORY.rst
+40-7Lines changed: 40 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,44 @@ This project adheres to `Semantic Versioning <https://semver.org/>`_.
7
7
8
8
vNext
9
9
===========================
10
-
* `#660`_: Userspace connection migration. This should be an invisible change, but represents a significant refactor of how connections function.
11
-
Instead of a weird blend of DatabaseConnection models and underlying Django models (which were the original Explorer connections),
12
-
this migrates all connections to DatabaseConnection models and implements proper foreign keys to them on the Query and QueryLog models.
13
-
A data migration creates new DatabaseConnection models based on the configured settings.EXPLORER_CONNECTIONS.
14
-
Going forward, admins can create new Django-backed DatabaseConnection models by registering the connection in EXPLORER_CONNECTIONS, and then creating a
15
-
DatabaseConnection model using the Django admin or the user-facing /connections/new/ form, and entering the Django DB alias and setting the connection type to "Django Connection"
16
-
10
+
* `#664`_: Improvements to the AI SQL Assistant:
11
+
12
+
- Table Annotations: Write persistent table annotations with descriptive information that will get injected into the
13
+
prompt for the assistant. For example, if a table is commonly joined to another table through a non-obvious foreign
14
+
key, you can tell the assistant about it in plain english, as an annotation to that table. Every time that table is
15
+
deemed 'relevant' to an assistant request, that annotation will be included alongside the schema and sample data.
16
+
- Few-Shot Examples: Using the small checkbox on the bottom-right of any saved queries, you can designate certain
17
+
queries as 'few shot examples". When making an assistant request, any designated few-shot examples that reference
18
+
the same tables as your assistant request will get included as 'reference sql' in the prompt for the LLM.
19
+
- Autocomplete / multiselect when selecting tables info to send to the SQL Assistant. Much easier and more keyboard
20
+
focused.
21
+
- Relevant tables are added client-side visually, in real time, based on what's in the SQL editor and/or any tables
22
+
mentioned in the assistant request. The dependency on sql_metadata is therefore removed, as server-side SQL parsing
23
+
is no longer necessary.
24
+
- Ability to view Assistant request/response history.
25
+
- Improved system prompt that emphasizes the particular SQL dialect being used.
26
+
- Addresses issue #657.
27
+
28
+
* `#660`_: Userspace connection migration.
29
+
30
+
- This should be an invisible change, but represents a significant refactor of how connections function. Instead of a
31
+
weird blend of DatabaseConnection models and underlying Django models (which were the original Explorer
32
+
connections), this migrates all connections to DatabaseConnection models and implements proper foreign keys to them
33
+
on the Query and QueryLog models. A data migration creates new DatabaseConnection models based on the configured
34
+
settings.EXPLORER_CONNECTIONS. Going forward, admins can create new Django-backed DatabaseConnection models by
35
+
registering the connection in EXPLORER_CONNECTIONS, and then creating a DatabaseConnection model using the Django
36
+
admin or the user-facing /connections/new/ form, and entering the Django DB alias and setting the connection type
37
+
to "Django Connection".
38
+
- The Query.connection and QueryLog.connection fields are deprecated and will be removed in a future release. They
39
+
are kept around in this release in case there is an unforeseen issue with the migration. Preserving the fields for
40
+
now ensures there is no data loss in the event that a rollback to an earlier version is required.
41
+
42
+
* Fixed a bug when validating connections to uploaded files. Also added basic locking when downloading files from S3.
43
+
44
+
* Keyboard shortcut for formatting the SQL in the editor.
45
+
46
+
- Cmd+Shift+F (Windows: Ctrl+Shift+F)
47
+
- The format button has been moved tobe a small icon towards the bottom-right of the SQL editor.
0 commit comments