crewAIInc / 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
21.93k stars 3.04k forks source link

[BUG] Memory Rag Storage Issue #1669

Open human058382928 opened 5 days ago

human058382928 commented 5 days ago

Description

Started getting this error regarding rag with the latest version 0.83.0

Steps to Reproduce

Just using the default crew configuration with memory=True.

Expected behavior

no errors

Screenshots/Code snippets

    return Crew(
        agents=agents,
        tasks=tasks,
        manager_agent=create_manager_agent(),
        process=Process.sequential,
        memory=True,
        verbose=crewai_verbose,
        **kwargs
    )

Operating System

Ubuntu 20.04

Python Version

3.10

crewAI Version

0.83.0

crewAI Tools Version

0.14.0

Virtual Environment

Conda

Evidence

2024-11-27 10:42:36,152 - 13765931008 - rag_storage.py-rag_storage:118 - ERROR: Error during short_term search: APIStatusError.__init__() missing 2 required keyword-only arguments: 'response' and 'body'
2024-11-27 10:42:36,457 - 13765931008 - rag_storage.py-rag_storage:118 - ERROR: Error during entities search: APIStatusError.__init__() missing 2 required keyword-only arguments: 'response' and 'body'

Possible Solution

Not sure currently

Additional context

Nothing else

voytas75 commented 5 days ago

the same with memory based on Azure OpenAI:

embedder_config = {
    "provider": "azure",
    "config": {
        "api_key": os.getenv("AZURE_OPENAI_API_KEY"),
        "api_base": os.getenv("AZURE_OPENAI_ENDPOINT"),
        "api_version": os.getenv("AZURE_API_VERSION"),
        "model_name": os.getenv("AZURE_OPENAI_EMBEDDED_MODEL"),
        "deployment_id": os.getenv("AZURE_OPENAI_EMBEDDED_DEPLOYMENT"),
    }
}
crew = Crew(
...
embedder=embedder_config
...

error:

2024-11-27 23:46:04,920 - 17808 - rag_storage.py-rag_storage:89 - ERROR: Error during short_term save: APIStatusError.__init__() missing 2 required keyword-only arguments: 'response' and 'body'
2024-11-27 23:46:26,410 - 17808 - rag_storage.py-rag_storage:89 - ERROR: Error during entities save: APIStatusError.__init__() missing 2 required keyword-only arguments: 'response' and 'body'
khalidmaquilang commented 4 days ago

Same issue..

SwordFaith commented 3 days ago

same issue.