Skip to content

Commit 7c13a1c

Browse files
authored
docs: add change logs of 20230920 (#1327)
1 parent c8949b2 commit 7c13a1c

File tree

6 files changed

+101
-1
lines changed

6 files changed

+101
-1
lines changed

containers/bundled_querybook_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ELASTICSEARCH_HOST: http://elasticsearch:9200
2222
# model_name: gpt-3.5-turbo-16k
2323
# temperature: 0
2424
# context_length: 16384
25-
# query_summary:
25+
# sql_summary:
2626
# model_args:
2727
# model_name: gpt-3.5-turbo-16k
2828
# temperature: 0
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
id: sept_2023_9_20_0
3+
title: Sept 2023 (version 3.28.0)
4+
sidebar_label: Sept 2023 (3.28.0)
5+
---
6+
7+
Welcome to the latest release of Querybook 🎉.
8+
9+
Following are the top new features we have added during the year 2023 thus far:
10+
11+
- **AI assistant**: Support query cell title generation, text-to-sql and query auto fix, powered by LLM.
12+
- **Vector table search**: Use natural language to search a table.
13+
- **Data cell/table comment**: Users can leave comments for data cells and tables.
14+
- **Query optimization suggestions**: Provide a tooltip of query optimization suggestions.
15+
- **User group**: Introduce user groups, which can be used as table/datadoc owner/editor.
16+
- **Data element**: Introdce a new metadata `data element`, which provides semantic data meaning and can be assigned to a table column.
17+
- **Stats logging**: Add support of stats logging, like number of users, number of api requests and etc.
18+
19+
## Feature highlights
20+
21+
### AI Assistant
22+
23+
The LLM powered AI assistant can help on
24+
25+
- Query cell title generation
26+
- Text to SQL
27+
- Query error auto fix
28+
29+
Please check the [guide](../user_guide/ai_assistant.md) for more details.
30+
31+
### Vector Table Search
32+
33+
Previously table searching is only keyword based search. Now we introduced [vector store plugin](../integrations/add_ai_assistant.md#vector-store-plugin) and added the support of searching a table by natural language.
34+
![](/img/user_guide/table_vector_search.png)
35+
36+
### Data Cell & Table Comment
37+
38+
Users can leave comments to a data cell/table or view comments from other people.
39+
40+
![](/changelog/20230920/cell_comment.png)
41+
![](/changelog/20230920/table_comment.png)
42+
43+
### Query Optimization Suggestions
44+
45+
The query editor will provide optimization suggestions for some cases. Here are some predefined one for Presto/Trino
46+
47+
- distinct count -> approx_distinct
48+
- like 'a' or like 'b' -> regexp_like(column, 'a|b')
49+
- union -> union all
50+
51+
You can create you own suggestions by following the example of [PrestoOptimizingValidator](https://github.com/pinterest/querybook/blob/c8949b21c854b367d7bf54f08fbe1a12ad4a47c2/querybook/server/lib/query_analysis/validation/validators/presto_optimizing_validator.py#L177)
52+
53+
Check the [PR](https://github.com/pinterest/querybook/pull/1302) for more details.
54+
55+
### User Group
56+
57+
We introduced the support of user group. Now a user in querybook can be a single user or a user group. A table could be owned by a user group, or a datadoc can be shared to a user group(haven't implemented, PR in progress).
58+
![](https://user-images.githubusercontent.com/8308723/216733976-7c2c27cb-ec1b-4401-81e7-c5069798326e.png)
59+
60+
### Data element
61+
62+
A [data element](https://en.wikipedia.org/wiki/Data_element) is an atomic unit of data that has precise meaning or precise semantics, like country, age and etc. We added data element as a new metadata, which can be assigned to a table column to provide more meaningful info for the column.
63+
64+
Note: it can only be synced from metastore.
65+
66+
![](https://user-images.githubusercontent.com/8308723/224444625-067f1527-d936-409d-b99c-a25f4a676c21.png)
67+
68+
### Stats logging
69+
70+
Add support of stats logging, like number of users, number of api requests and etc. Please check the [plugin](../integrations/add_stats_logger.md) for more details.
71+
72+
## Small Feature Improvements/Bug Fixes
73+
74+
- Add username and password authentication for the trino client [#1315](https://github.com/pinterest/querybook/pull/1315)
75+
- Add two new plugins: [monkey patch plugin](../integrations/plugins.md#monkey-patch-plugin) and [api plugin](../integrations/plugins.md#api-plugin) [#1266](https://github.com/pinterest/querybook/pull/1266)
76+
- Fix the display of long table names in search modal [#1246](https://github.com/pinterest/querybook/pull/1246)
77+
- Allow data doc deletion from sidebar [#1241](https://github.com/pinterest/querybook/pull/1241)
78+
- Ensure meta_info is updated when an exception occurs [#1230](https://github.com/pinterest/querybook/pull/1230)
79+
- Add helm deployment guide [#1183](https://github.com/pinterest/querybook/pull/1183)
80+
- Add more metadata support [#1182](https://github.com/pinterest/querybook/pull/1182)
81+
- Enable mssql transpiling [#1178](https://github.com/pinterest/querybook/pull/1178)
82+
- Add ability to cancel dead queries [#1159](https://github.com/pinterest/querybook/pull/1159)
83+
- Fix json-bigint hasOwnProperty undefined issue [#1129](https://github.com/pinterest/querybook/pull/1129)
84+
- Add frontend context logging [#1115](https://github.com/pinterest/querybook/pull/1115)
85+
- Add drag and drop for templated variables [#1112](https://github.com/pinterest/querybook/pull/1112)
86+
87+
Querybook Team<br/>
88+
Pinterest<br/>
89+
🚀

docs_website/docs/integrations/add_ai_assistant.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,13 @@ How to set up and host a vector store or use a cloud vector store solution is no
4545
4. Enable it in `querybook/config/querybook_public_config.yaml`
4646

4747
With vector store plugin enabled, text-to-sql will also use it to find tables if tables are not provided by the user.
48+
49+
### Initilize the Vector Index
50+
51+
In Docker based deployments, attach to `web` or `worker` component and run
52+
53+
```shell
54+
python ./querybook/server/scripts/init_vector_store.py
55+
```
56+
57+
It will add summary for all tables and sample query summary of the tables to the vector store. If you'd like to only index part of the tables, you can follow the example of `ingest_vector_index` to create your own script.

docs_website/sidebars.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"Changelog": [
6060
"changelog/breaking_changes",
6161
"changelog/security_advisories",
62+
"changelog/sept_2023_9_20_0",
6263
"changelog/dec_2022_3_15_0",
6364
"changelog/nov_2020_2_4_2",
6465
"changelog/may_2020_2_3_0",
Loading
Loading

0 commit comments

Comments
 (0)