[embedchain doc] fix typo mysql.mdx (#1678)
This commit is contained in:
@@ -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)
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user