MariaDB store
features and configurations head to the API reference.
Class | Package | PY support | Package latest |
---|---|---|---|
MariaDBStore | @langchain/community | ✅ |
mariadb
connector as a peer dependency.
This guide will also use OpenAI embeddings, which require you to install the @langchain/openai
integration package. You can also use other supported embeddings models if you wish.
We’ll also use the uuid
package to generate ids in the required format.
mariadb
docs.
If you are using OpenAI embeddings for this guide, you’ll need to set your OpenAI key as well:
.initialize()
static method. This will automatically check for the presence of a table, given by tableName
in the passed config
. If it is not there, it will create it with the required columns.
MariaDBStore
instances directly via the constructor.
Note that you should call .initialize()
to set up your database at least once to set up your tables properly before using the constructor.
MariaDBStore
features and configurations head to the API reference.