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

LangChain: MongoDBAtlasVectorSearch: Combine add_texts & add_documents

    • 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?

      Most of the logic of these two functions is identical. There's lots of code duplication.
      The primary difference is that the texts and metadata are separate arguments in add_texts, and bound as a list of Document(containing you guessed it metadata and "page+content". add_documents need only call add_texts.

      It makes sense to do this refactoring while working on INTPYTHON-431

            Assignee:
            Unassigned Unassigned
            Reporter:
            casey.clements@mongodb.com Casey Clements
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: