mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

[feature] - Add Database, like SQL and SQLite3

Open waelmansourx opened this issue 2 years ago • 1 comments

Process a database as a data source

waelmansourx avatar Jun 28 '23 16:06 waelmansourx

I feel like that's taking it too far. There are infinite possibilities for the design of a database. Often times you have foreign keys, and the id that's used as a reference would mean nothing to the embedding algorithm. Is each row supposed to be treated as a document? Likely, but there will be other scenarios. So either, by the time we're done with this we have written a whole SQL client, or it will be drastically dumbed down and not give you what you want.

In this case I would recommend to use a database client, write the query you want to use and then use the add method with text as the data_type to embed it. This is the far better method imo.

cachho avatar Jul 01 '23 12:07 cachho