6.0.0-beta1 - Async Client, Filters, BM25 and FetchObjects Queries, API-Key Authorization
Pre-release
Pre-release
·
109 commits
to main
since this release
The first beta of client6 has arrived!
🔑 Use the new API Key authorization to securely connect to your Weaviate instance:
final var client = new WeaviateClient(
Config.of("https", cfg -> cfg
.httpHost("localhost").httpPort(443)
.grpcHost("localhost").grpcPort(433)
.authorization(Authorization.apiKey("my-api-key"))));Similarly to Python and TS, client6 offers convenient helper .local() and .wcd() methods for connecting to you local instance or the one running in the Weaviate Cloud.
🔍 Search and retrieve objects using bm25 and fetchObjects queries:
final var books = client.collection.use("Books");
var crimeFiction = books.query.bm25("Sherlock Holmes", q -> q.queryProperties("main_character"));
var newestBooks = books.query.fetchObjects(
query -> query
.where(Where.property("yearPublished").gte(2024))
.limit(200));Explore other filters and query parameters by downloading the latest version from your local Maven Ce.....
💥 The first beta of client6 has arrived (asynchronously!!!) 💥
The Async Client presents the same familiar API. Its methods return an instance of CompletableFuture so they can be easily integrated with the existing processing pipelines. try it out!
// WeaviateClient and WeaviateClientAsync implement Closable
try (final var asyncClient = client.async()) {
final var things = asyncClient.collections.use("Things");
things.data.insert(Map.of("shape", "square"))
.thenAccept(square -> System.out.println("square has id=" + square.metadata().uuid()));
}What's Changed
- v6: Add async client to gRPC endpoints (query / aggregate) by @bevzzz in #383
- v6: Refactor REST endpoints and JSON de-/serialization by @bevzzz in #387
- v6: Filters and fetchObjects query by @bevzzz in #388
- v6: Authorization and connection helpers by @bevzzz in #389
- v6: add BM25 query by @bevzzz in #390
- v6: fix async toolchain by @bevzzz in #392
Full Changelog: 6.0.0-alpha2...6.0.0-beta1