# GPT4ll Embedders throws error while using for Agent memory

**URL:** <https://community.crewai.com/t/gpt4ll-embedders-throws-error-while-using-for-agent-memory/891>\
**Category:** Crews\
**Tags:** agent, memory\
**Created:** [October 19, 2024, 5:51pm UTC](https://community.crewai.com/t/gpt4ll-embedders-throws-error-while-using-for-agent-memory/891 "2024-10-19T17:51:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fahim9778](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/fahim9778/32/636_2.png) [@fahim9778](https://community.crewai.com/u/fahim9778)\
**Post date:** [October 19, 2024, 5:51pm UTC](https://community.crewai.com/t/gpt4ll-embedders-throws-error-while-using-for-agent-memory/891/1 "2024-10-19T17:51:56Z")

</div>

Hello there, I just installed crewAI and wanted to use the memory feature for Agents. If I pass the following code :

```auto
crew = Crew(
    agents=[planner, writer, editor],
    tasks=[plan, write, edit],

    process=Process.sequential,
    memory=True,
    verbose=True,
    embedder={
        "provider": "gpt4all"
    }
)

```

I am getting this bunch of errors:

> Traceback (most recent call last):  
> File “e:\New folder\chatGorq\_with\_crewAI.py”, line 117, in   
> crew = Crew(  
> ^^^^^  
> File “C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pydantic\main.py”, line 212, in **init**  
> validated\_self = self. **pydantic\_validator**.validate\_python(data, self\_instance=self)  
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
> pydantic\_core.\_pydantic\_core.ValidationError: 1 validation error for Crew  
> Value error, Expected EmbeddingFunction. **call** to have the following signature: odict\_keys([‘self’, ‘input’]), got odict\_keys([‘args’, ‘kwargs’])  
> Please see [https://docs.trychroma.com/embeddings](https://docs.trychroma.com/embeddings) for details of the EmbeddingFunction interface.  
> Please note the recent change to the EmbeddingFunction interface: [https://docs.trychroma.com/migration#migration-to-0416---november-7-2023](https://docs.trychroma.com/migration#migration-to-0416---november-7-2023)  
> [type=value\_error, input\_value={‘agents’: [Agent(role=Co…{‘provider’: ‘gpt4all’}}, input\_type=dict]  
> For further information visit …

Can anyone please help me to resolve this issue? I don’t have any OpenAI API key for the textembedding. I am implementing this for a semester project, and paying with a credit card would be lot of hassle for me.

Any help, please?

I am using this LLM:

```auto
llm=LLM(temperature=0,
             model="groq/llama3-8b-8192",
             api_key='my_groq_api_key')

```

---

<div class="post-metadata">

**Author:** ![Lorenze\_Jay](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/lorenze_jay/32/637_2.png) [@Lorenze\_Jay](https://community.crewai.com/u/Lorenze_Jay)\
**Post date:** [October 19, 2024, 10:26pm UTC](https://community.crewai.com/t/gpt4ll-embedders-throws-error-while-using-for-agent-memory/891/2 "2024-10-19T22:26:14Z")

</div>

Memory embedders now take in this:

> <https://github.com/crewAIInc/crewAI/blob/main/docs/concepts/memory.mdx#using-openai-embeddings-already-default>
