joaomdmoura / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
16.84k stars 2.28k forks source link

Getting an error cannot import name 'SubmitEmbeddingRecord' from 'chromadb.types' , when setting memory = True #700

Open iamyihwa opened 1 month ago

iamyihwa commented 1 month ago

Hello, Thanks for the great tool!

I was following through the course of Multi AI agent systems with CrewAI. In lesson 9, when I create crew, when I set memory to True, I am getting following error. (when I set memory to False, the error isn't present anymore. )

course link

crew = Crew(
    agents=[sales_rep_agent, 
            lead_sales_rep_agent],

    tasks=[lead_profiling_task, 
           personalized_outreach_task],

    verbose=2,
    memory=True
)

ImportError: cannot import name 'SubmitEmbeddingRecord' from 'chromadb.types' (c:\Users\kiyi2001\Miniconda3\envs\LLM_Learning\Lib\site-packages\chromadb\types.py)

The version of chroma db is '0.5.0'

gadgethome commented 1 month ago

Hi, are you using the current version?

crewai 0.30.11 crewai-tools 0.2.6

We are aware of an issue with memory as it defaults to using openai and requests an API key when using a llm.