Skip to content

Bump objectboxVersion from 3.8.0 to 4.0.0#172

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/gradle/objectboxVersion-4.0.0
Closed

Bump objectboxVersion from 3.8.0 to 4.0.0#172
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/gradle/objectboxVersion-4.0.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 20, 2024

Bumps objectboxVersion from 3.8.0 to 4.0.0.
Updates io.objectbox:objectbox-android-objectbrowser from 3.8.0 to 4.0.0

Release notes

Sourced from io.objectbox:objectbox-android-objectbrowser's releases.

V4.0.0 - Vector Search

ObjectBox now supports Vector Search to enable efficient similarity searches.

This is particularly useful for AI/ML/RAG applications, e.g. image, audio, or text similarity. Other use cases include semantic search or recommendation engines.

Create a Vector (HNSW) index for a floating point vector property. For example, a City with a location vector:

@Entity
public class City {
@HnswIndex(dimensions = 2)
float[] location;

}

Perform a nearest neighbor search using the new nearestNeighborsF32(queryVector, maxResultCount) query condition and the new "find with scores" query methods (the score is the distance to the query vector). For example, find the 2 closest cities:

final float[] madrid = {40.416775F, -3.703790F};
final Query<City> query = box
        .query(City_.location.nearestNeighbors(madrid, 2))
        .build();
final City closest = query.findWithScores().get(0).get();

For an introduction to Vector Search, more details and other supported languages see the Vector Search documentation.

  • BoxStore: deprecated Store.sizeOnDisk(). Instead use one of the new APIs to determine the size of a database:
    • Store.getDbSize() which for a file-based database returns the file size and for an in-memory database returns the approximately used memory,
    • Store.getDbSizeOnDisk() which only returns a non-zero size for a file-based database.
  • Query: add properly named setParameter(prop, value) methods that only accept a single parameter value, deprecated the old setParameters(prop, value) variants.
  • Sync: add SyncCredentials.userAndPassword(user, password).
  • Gradle plugin: the license of the Gradle plugin has changed to the GNU Affero General Public License (AGPL).
Commits
  • 944957e README: update for Vector Search
  • 8100d05 Prepare Java release 4.0.0
  • df9f5e4 Query: use singular setParameter name for changing single parameter
  • d81a3f7 Merge branch '208-hnsw-index' into 'dev'
  • b3fb592 HNSW index: add generic setParameter(float[]) method
  • c2c516b HNSW index: drop type suffix from condition, Java can overload methods
  • eb04e09 HNSW index: rename ObjectWithScore.getObject() to get() to avoid escaping
  • c4e33a8 HNSW index: update Flatbuffers generated model files
  • 2d4c61c Update Flatbuffers generated model files: backup API
  • f82daa1 Update Flatbuffers generated model files copyright
  • Additional commits viewable in compare view

Updates io.objectbox:objectbox-android from 3.8.0 to 4.0.0

Release notes

Sourced from io.objectbox:objectbox-android's releases.

V4.0.0 - Vector Search

ObjectBox now supports Vector Search to enable efficient similarity searches.

This is particularly useful for AI/ML/RAG applications, e.g. image, audio, or text similarity. Other use cases include semantic search or recommendation engines.

Create a Vector (HNSW) index for a floating point vector property. For example, a City with a location vector:

@Entity
public class City {
@HnswIndex(dimensions = 2)
float[] location;

}

Perform a nearest neighbor search using the new nearestNeighborsF32(queryVector, maxResultCount) query condition and the new "find with scores" query methods (the score is the distance to the query vector). For example, find the 2 closest cities:

final float[] madrid = {40.416775F, -3.703790F};
final Query<City> query = box
        .query(City_.location.nearestNeighbors(madrid, 2))
        .build();
final City closest = query.findWithScores().get(0).get();

For an introduction to Vector Search, more details and other supported languages see the Vector Search documentation.

  • BoxStore: deprecated Store.sizeOnDisk(). Instead use one of the new APIs to determine the size of a database:
    • Store.getDbSize() which for a file-based database returns the file size and for an in-memory database returns the approximately used memory,
    • Store.getDbSizeOnDisk() which only returns a non-zero size for a file-based database.
  • Query: add properly named setParameter(prop, value) methods that only accept a single parameter value, deprecated the old setParameters(prop, value) variants.
  • Sync: add SyncCredentials.userAndPassword(user, password).
  • Gradle plugin: the license of the Gradle plugin has changed to the GNU Affero General Public License (AGPL).
Commits
  • 944957e README: update for Vector Search
  • 8100d05 Prepare Java release 4.0.0
  • df9f5e4 Query: use singular setParameter name for changing single parameter
  • d81a3f7 Merge branch '208-hnsw-index' into 'dev'
  • b3fb592 HNSW index: add generic setParameter(float[]) method
  • c2c516b HNSW index: drop type suffix from condition, Java can overload methods
  • eb04e09 HNSW index: rename ObjectWithScore.getObject() to get() to avoid escaping
  • c4e33a8 HNSW index: update Flatbuffers generated model files
  • 2d4c61c Update Flatbuffers generated model files: backup API
  • f82daa1 Update Flatbuffers generated model files copyright
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

---
updated-dependencies:
- dependency-name: io.objectbox:objectbox-android-objectbrowser
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: io.objectbox:objectbox-android
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels May 20, 2024
@github-actions github-actions Bot enabled auto-merge May 20, 2024 21:25
@github-actions
Copy link
Copy Markdown
Contributor

I'm not approving this PR because it includes a major update of a dependency used in production

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Jun 3, 2024

Superseded by #179.

@dependabot dependabot Bot closed this Jun 3, 2024
auto-merge was automatically disabled June 3, 2024 21:44

Pull request was closed

@dependabot dependabot Bot deleted the dependabot/gradle/objectboxVersion-4.0.0 branch June 3, 2024 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants