dust-tt / dust

Amplify your team's potential with customizable and secure AI assistants.
https://dust.tt
MIT License
971 stars 109 forks source link

[Structured Data] [Step 0] explore external DBs / SQL engines (for non-remote DBs) #2205

Closed fontanierh closed 1 year ago

fontanierh commented 1 year ago

The original idea was to store the actual data in a JSON column in our app database, and re-construct an in-memory SQLite DB at query time to execute the query.

As Philippe suggests, it may be worth looking into persistent NoSQL DBs.

Upsides of “just-in-time SQLite in-memory”:

Downsides of “just-in-time SQLite in-memory”:

fontanierh commented 1 year ago

Some discussion about this in this Slack thread

TLDR:

In the end, the team agreed that further exploration and evaluation are required before making a decision.

fontanierh commented 1 year ago

We're going with SQLite as NoSQL dbs have limitations when it comes to isolating data soruces from each other with untrusted queries. "just in time" sqlite has proved to be ~fast enough on a 35MB database