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: website/blog/2023-04-08-databend-weekly-88.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ Stay connected with the latest news about Databend.
41
41
42
42
### Support Eager Aggregation
43
43
44
-
Eager aggregation is a technique that can help improve the performance of queries that involve grouping and joining data. It works by partially pushing a groupby past a join, which reduces the number of input rows to the join and may result in a better overall plan.
44
+
Eager aggregation helps improve the performance of queries that involve grouping and joining data. It works by partially pushing a groupby past a join, which reduces the number of input rows to the join and may result in a better overall plan.
45
45
46
46
Databend recently added support for Eager aggregation. Here is an example of how it works.
47
47
@@ -100,7 +100,7 @@ Discover some fascinating code snippets or projects that showcase our work or le
100
100
101
101
### databend-driver - A driver for Databend in Rust
102
102
103
-
The Databend community has developed a driver for Databend in Rust. It allows developers to easily connect to Databend and execute SQL queries using Rust.
103
+
The Databend community has crafted a Rust driver that allows developers to connect to Databend and execute SQL queries in Rust.
104
104
105
105
Here's an example of how to use the driver:
106
106
@@ -120,7 +120,7 @@ let sql_insert = "INSERT INTO books VALUES ('The Little Prince', 'Antoine de Sai
120
120
conn.exec(sql_insert).await.unwrap();
121
121
```
122
122
123
-
Welcome to try it out and give us feedback. If you want to learn more information, you can also follow the resources listed below.
123
+
Feel free to try it out and give us feedback. For more information, follow the resources listed below.
@@ -129,16 +129,16 @@ Welcome to try it out and give us feedback. If you want to learn more informatio
129
129
130
130
AskBend is a Rust project that utilizes the power of Databend and OpenAI to create a SQL-based knowledge base from Markdown files.
131
131
132
-
With AskBend, you can easily search and retrieve the most relevant information to your queries using SQL. The project automatically generates document embeddings from the content, enabling users to quickly find the information they need.
132
+
With AskBend, you can easily search and retrieve the most relevant information to your queries using SQL. The project automatically generates document embeddings from the content, enabling you to quickly find the information you need.
133
133
134
-
Here's how it works:
134
+
How it works:
135
135
136
136
1. Read and parse Markdown files from a directory.
137
137
2. Store the content in the `askbend.doc` table.
138
138
3. Compute embeddings for the content using Databend Cloud's built-in AI capabilities.
139
-
4. When a user queries, generate the query embedding using Databend Cloud's SQL-based `ai_embedding_vector` function.
139
+
4. When a users asks a question, generate the embedding using Databend Cloud's SQL-based `ai_embedding_vector` function.
140
140
5. Find the most relevant doc.content using Databend Cloud's SQL-based `cosine_distance` function.
141
-
6. Use OpenAI's completion capabilities with Databend Cloud's SQL-based `ai_text_completion` function
141
+
6. Use OpenAI's completion capabilities with Databend Cloud's SQL-based `ai_text_completion` function.
142
142
7. Output the completion result in Markdown format.
143
143
144
144
If you want to learn more about AskBend or try out the existing live demo, you can refer to the resources listed below:
0 commit comments