[LangChain] Improve usability of autoembedding

XMLWordPrintableJSON

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

      Context

      We can improve the usability of auto-embedding in MongoDBAtlasVectorSearch in the following ways:

      • Add typing overloads to make it clearer which combinations of parameters are required in the constructor
      • Allow a string to be passed for the embedding parameter that is used to create an AutoEmbeddings object
      • Make dimensions optional in create_vector_search_index

      Definition of done

      Update APIs and add tests.

      Pitfalls

      Ensure that no backwards-incompatible changes are made.

            Assignee:
            Steve Silvester
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: