[Driver] Add new fields for Auto embedding in Atlas Vector search indexes

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.8.0
    • Affects Version/s: None
    • Component/s: Builders
    • Hide

      Summary of necessary driver changes

      Show
      Summary of necessary driver changes Update index builders. See syntax doc .
    • None
    • Fully Compatible
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?

      That there is a builder that can be used to generate the index definition for searches.

      2. Would you like the user to see examples of the syntax and/or executable code and its output?

      Update the example here https://www.mongodb.com/docs/drivers/java/sync/current/indexes/#std-label-java-autoembedding-search-indexes to use the new builder:

        import static com.mongodb.client.model.VectorSearchIndexFields.autoEmbedField;
      
        SearchIndexModel indexModel = new SearchIndexModel(
                "myIndex",
                SearchIndexDefinition.vectorSearch(
                        autoEmbedField("plot")
                                .modality("text")
                                .model("voyage-4-large")
                )
        );
        collection.createSearchIndexes(Collections.singletonList(indexModel));
      

      3. Which versions of the driver/connector does this apply to?
      The upcoming 5.8.0 release.

      Show
      1. What would you like to communicate to the user about this feature? That there is a builder that can be used to generate the index definition for searches. 2. Would you like the user to see examples of the syntax and/or executable code and its output? Update the example here https://www.mongodb.com/docs/drivers/java/sync/current/indexes/#std-label-java-autoembedding-search-indexes to use the new builder: import static com.mongodb.client.model.VectorSearchIndexFields.autoEmbedField; SearchIndexModel indexModel = new SearchIndexModel( "myIndex" , SearchIndexDefinition.vectorSearch( autoEmbedField( "plot" ) .modality( "text" ) .model( "voyage-4-large" ) ) ); collection.createSearchIndexes(Collections.singletonList(indexModel)); 3. Which versions of the driver/connector does this apply to? The upcoming 5.8.0 release.
    • None
    • None
    • None
    • None
    • None
    • None

      This ticket was split from DRIVERS-3389, please see that ticket for a detailed description.

            Assignee:
            Ross Lawley
            Reporter:
            TPM Jira Automations Bot
            Almas Abdrazak, Slav Babanin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: