Skip to content

Conversation

@PsiACE
Copy link
Contributor

@PsiACE PsiACE commented Apr 8, 2023

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

Summary about this PR

Closes #issue

Signed-off-by: Chojan Shang <psiace@outlook.com>
@vercel
Copy link

vercel bot commented Apr 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
databend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2023 7:16am

@mergify mergify bot added the pr-doc label Apr 8, 2023
Signed-off-by: Chojan Shang <psiace@outlook.com>
@PsiACE PsiACE merged commit 40d7b5b into databendlabs:main Apr 9, 2023

### Support Eager Aggregation

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eager aggregation helps improve ...


### databend-driver - A driver for Databend in Rust

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Databend community has crafted a Rust driver that allows developers to connect to Databend and execute SQL queries in Rust.

conn.exec(sql_insert).await.unwrap();
```

Welcome to try it out and give us feedback. If you want to learn more information, you can also follow the resources listed below.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to try it out.... . For more information, follow the resources...


AskBend is a Rust project that utilizes the power of Databend and OpenAI to create a SQL-based knowledge base from Markdown files.

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.


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.

Here's how it works:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How it works:

1. Read and parse Markdown files from a directory.
2. Store the content in the `askbend.doc` table.
3. Compute embeddings for the content using Databend Cloud's built-in AI capabilities.
4. When a user queries, generate the query embedding using Databend Cloud's SQL-based `ai_embedding_vector` function.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Query means SQL query? otherwise, pls use "When a users asks a question, ...."

3. Compute embeddings for the content using Databend Cloud's built-in AI capabilities.
4. When a user queries, generate the query embedding using Databend Cloud's SQL-based `ai_embedding_vector` function.
5. Find the most relevant doc.content using Databend Cloud's SQL-based `cosine_distance` function.
6. Use OpenAI's completion capabilities with Databend Cloud's SQL-based `ai_text_completion` function
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing a period (.) at the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants