private-gpt icon indicating copy to clipboard operation
private-gpt copied to clipboard

Can I use my database to directly query it?

Open asoral opened this issue 1 year ago • 1 comments

I use MariaDB for my app and saw this library and want to use it. I am trying to figure out a way to use this directly off my database tables, rather than exporting them into text or any other format and running the model on the data. Is it even possible? How?

asoral avatar Jun 04 '23 19:06 asoral

MariaDB is a fork of MySQL. See https://python.langchain.com/en/latest/modules/chains/examples/sqlite.html

maozdemir avatar Jun 04 '23 21:06 maozdemir

I use MariaDB for my app and saw this library and want to use it. I am trying to figure out a way to use this directly off my database tables, rather than exporting them into text or any other format and running the model on the data. Is it even possible? How? I guess you could have a look to the document processor and see if there is any

izdrail avatar Jun 08 '23 20:06 izdrail

MariaDB is a fork of MySQL. See https://python.langchain.com/en/latest/modules/chains/examples/sqlite.html

This works. I will try and open another issue if required. Thanks for the support

asoral avatar Jun 09 '23 01:06 asoral