Hello there, I just installed crewAI and wanted to use the memory feature for Agents. If I pass the following code :
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 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
[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:
llm=LLM(temperature=0,
model="groq/llama3-8b-8192",
api_key='my_groq_api_key')