Skip to content

Conversation

bevzzz
Copy link
Collaborator

@bevzzz bevzzz commented Jun 26, 2025

This PR extends collection / property configuration parameters and adds the ability for updating this configuration.

final var things = client.collection.use("Things");

things.config.update(collection -> collection
  .description("felt cute might delete later")
  .invertedIndex(idx -> idx.cleanupIntervalSeconds(30)
  .replication(repl -> repl.asyncEnabled(true))
  .propertyDescription("name", "what the thing is called"));

[Implementation detail]: Internally this is enabled by 2 handy methods that both Property and CollectionConfig have: "edit".

// Create config builder that has existing properties pre-filled.
var newConfigBuilder = oldConfig.edit();
newConfigBuilder.generativeModules(Generative.cohere());

// Creates a copy of the config object with changes applied.
var newConfig = oldConfig.edit(config -> config.rerankerModules(Reranker.cohere()));

Miscellaneous changes:

  • rename Property::name to Property::propertyName to avoid ambiguity (same for ReferenceProperty::propertyName)
  • rename WeaviateCollection to CollectionConfig
  • updated target Weaviate version to 1.29.1 (allows updating property descriptions)

@bevzzz bevzzz self-assigned this Jun 26, 2025
Copy link

@orca-security-eu orca-security-eu bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca

@bevzzz bevzzz marked this pull request as ready for review June 26, 2025 20:23
@bevzzz bevzzz merged commit 2ed24a4 into v6 Jun 27, 2025
2 checks passed
@bevzzz bevzzz deleted the v6-config-functions branch June 27, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants