# How to use Crew AI Rag tool with Mysql if I use Mysql tool it is throwing an error

**URL:** <https://community.crewai.com/t/how-to-use-crew-ai-rag-tool-with-mysql-if-i-use-mysql-tool-it-is-throwing-an-error/5193>\
**Category:** General\
**Created:** [April 7, 2025, 7:45pm UTC](https://community.crewai.com/t/how-to-use-crew-ai-rag-tool-with-mysql-if-i-use-mysql-tool-it-is-throwing-an-error/5193 "2025-04-07T19:45:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raghavender\_Reddy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/raghavender_reddy/32/2174_2.png) [@Raghavender\_Reddy](https://community.crewai.com/u/Raghavender_Reddy)\
**Post date:** [April 7, 2025, 7:45pm UTC](https://community.crewai.com/t/how-to-use-crew-ai-rag-tool-with-mysql-if-i-use-mysql-tool-it-is-throwing-an-error/5193/1 "2025-04-07T19:45:36Z")

</div>

```
                                                              ^^^^^

```

File “/opt/anaconda3/lib/python3.12/site-packages/embedchain/app.py”, line 121, in **init**  
self.embedding\_model = embedding\_model or OpenAIEmbedder()

---

<div class="post-metadata">

**Author:** ![maxmoura](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/maxmoura/32/4206_2.png) [@maxmoura](https://community.crewai.com/u/maxmoura)\
**Post date:** [April 7, 2025, 9:16pm UTC](https://community.crewai.com/t/how-to-use-crew-ai-rag-tool-with-mysql-if-i-use-mysql-tool-it-is-throwing-an-error/5193/2 "2025-04-07T21:16:21Z")

</div>

Looks like you’re running into a configuration issue with the embedding model you’re using.

You’d seriously boost your chances of getting help if you shared a more representative snippet of your code.
