Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

[embedchain doc] fix typo mysql.mdx (#1678)

从零开始学AIc0232a7d975b
diff --git a/embedchain/docs/components/data-sources/mysql.mdx b/embedchain/docs/components/data-sources/mysql.mdx
index e3ee9a48e..2a5cb7a01 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
+```