CrewAI: Add support for MongoDB Vector Search as a short term memory

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Do
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Currently CrewAI provides a concept of Short-Term Memory which uses Chroma vector database as a default (which allows for performing RAG using EmbedChain package). Enable the use of Vector search as a short term memory.
       
      The current use of short term memory is enabled by `memory = True ` while initializing the main class (Crew) and this defaults to use of ChromaDB as the vector DB.
      {{}}

      from crewai import Crew, Agent, Task, Process  
      
      my_crew = Crew(  agents=[...],  
      tasks=[...],  
      process=Process.sequential,  
      memory=True,  
      verbose=True,  
      embedder={  "provider": "openai",  "config":{  "model": 'text-embedding-3-small'  }  } 
      
      ) 

      The future state we want to drive is where the MongoDB Vector Search can be specified and used easily while initializing the agent via the Crew class

      https://github.com/crewAIInc/crewAI/tree/main/src/crewai/memory

      Acceptance criteria:

      • Investigate and write a mini Design doc / Scope doc for how the MongoDB can be used a short term memory in CrewAI. Since this can require changes in the core framework design  the CrewAI team is willing to work with us on the design of this feature.
      • Obtain an LGTM from the stakeholders (engineering, AI product, crewAI team POC)
      • Implement the feature

            Assignee:
            Unassigned
            Reporter:
            Prakul Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: