From c0232a7d975bdac5e3ebd13034f7729660678823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=8E=E9=9B=B6=E5=BC=80=E5=A7=8B=E5=AD=A6AI?= <329730566@qq.com> Date: Thu, 15 Aug 2024 14:31:58 +0800 Subject: [PATCH] [embedchain doc] fix typo mysql.mdx (#1678) --- embedchain/docs/components/data-sources/mysql.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embedchain/docs/components/data-sources/mysql.mdx b/embedchain/docs/components/data-sources/mysql.mdx index e3ee9a48..2a5cb7a0 100644 --- a/embedchain/docs/components/data-sources/mysql.mdx +++ b/embedchain/docs/components/data-sources/mysql.mdx @@ -35,7 +35,7 @@ response = app.query(question) NOTE: The `add` function of the app will accept any executable query to load data. DO NOT pass the `CREATE`, `INSERT` queries in `add` function. 3. We automatically create a chunker to chunk your SQL data, however if you wish to provide your own chunker class. Here is how you can do that: -``Python +```Python from embedchain.chunkers.mysql import MySQLChunker from embedchain.config.add_config import ChunkerConfig @@ -44,4 +44,4 @@ mysql_chunker_config = ChunkerConfig(chunk_size=1000, chunk_overlap=0, length_fu mysql_chunker = MySQLChunker(config=mysql_chunker_config) app.add("SELECT * FROM table_name;", data_type='mysql', loader=mysql_loader, chunker=mysql_chunker) -``` \ No newline at end of file +```