Uploaded image for project: 'Python Integrations'
  1. Python Integrations
  2. INTPYTHON-272

LangChain: Native Parent Child retriever for MongoDB

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • 0.3.0
    • Affects Version/s: None
    • Component/s: AI/ML
    • None
    • Python Drivers
    • Not Needed
    • 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?

      Currently, the Parent document retriever in LangChain takes in two memory sources in the definition, i.e., a vectorStore and a docStore.

      retriever = ParentDocumentRetriever(
          vectorstore=vectorstore,
          docstore=store,
          child_splitter=child_splitter,
      )
      

      Given MongoDB being a full-fledged database and a vector search, we can both the stages in a single database and correspondingly use a single query pipeline to make this a much efficient query.

      Definition of Done:

      (a) Create a brief/1-page API Google design doc for the proposed feature that we can put to review with the product and langchain stakeholders
      (b) Implement code based on the lgtm'ed design doc

            Assignee:
            casey.clements@mongodb.com Casey Clements
            Reporter:
            prakul.agarwal@mongodb.com Prakul Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: