Skip to content

Commit

Permalink
Better intro, explaining 'blend' name
Browse files Browse the repository at this point in the history
  • Loading branch information
parkervg committed Apr 10, 2024
1 parent de84cf7 commit f7c3f36
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@
<br/>

## Intro
BlendSQL is a *superset of SQLite* for problem decomposition and hybrid question-answering with LLMs. It builds off of the syntax of SQL to create an intermediate representation for tasks requiring complex reasoning over both structured and unstructured data.
BlendSQL is a *superset of SQLite* for problem decomposition and hybrid question-answering with LLMs.

As a result, we can *Blend* together...
- 🥤 ...operations over heterogeneous data sources (e.g. structured, unstructured, visual)
- 🥤 ...the structured reasoning of SQL with the generalizable reasoning of LLMs

It can be viewed as an inversion of the typical text-to-SQL paradigm, where a user calls a LLM, and the LLM calls a SQL program.
Here, the user is given the control to oversee all calls (LLM + SQL) within a unified query language.

**Now, the user is given the control to oversee all calls (LLM + SQL) within a unified query language.**

![comparison](docs/img/comparison.jpg)

Expand Down
9 changes: 7 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ pip install blendsql
</div>
</center>

BlendSQL is a *superset of SQLite* for problem decomposition and hybrid question-answering with LLMs. It builds off of the syntax of SQL to create an intermediate representation for tasks requiring complex reasoning over both structured and unstructured data.
BlendSQL is a *superset of SQLite* for problem decomposition and hybrid question-answering with LLMs.

As a result, we can *Blend* together...
- 🥤 ...operations over heterogeneous data sources (e.g. structured, unstructured, visual)
- 🥤 ...the structured reasoning of SQL with the generalizable reasoning of LLMs

It can be viewed as an inversion of the typical text-to-SQL paradigm, where a user calls a LLM, and the LLM calls a SQL program.
Here, the user is given the control to oversee all calls (LLM + SQL) within a unified query language.

**Now, the user is given the control to oversee all calls (LLM + SQL) within a unified query language.**

As shown in our paper, using BlendSQL as an intermediate representation for complex reasoning tasks can <b>boost performance by 8.63%</b> and <b>use 35% fewer tokens</b> compared to the naive end-to-end approach. For an example of this approach, see [this notebook](reference/examples/teaching-blendsql-via-in-context-learning).

Expand Down

0 comments on commit f7c3f36

Please sign in to comment.