Skip to content

Conversation

bevzzz
Copy link
Collaborator

@bevzzz bevzzz commented Aug 27, 2025

It should now be possible to declare properties to include in text2vec-weaviate and text2vec-contextionary vectors.

.vectors(
    Vectorizers.text2vecWeaviate(t2v -> t2v.sourceProperties("firstName", "lastName"));
    Vectorizers.text2vecContextionary(t2v -> t2v.sourceProperties("middleName", "patronymic")));

Secondly, the syntax for adding several vectors to an object does not include a tucked-builder pattern anymore, making it similar to how vector indices are configured (see above).

.vectors(
    Vectors.of("1d", new float[]{...}),
    Vectors.of("2d", new float[][]{...}));

Also wrote Javadoc for methods and classes related to vectors/vectorizers.

@bevzzz bevzzz self-assigned this Aug 27, 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 added 2 commits August 27, 2025 12:55
This makes for a cleaner syntax in obj -> obj.vectors(Vectors.of(...), Vectors.of(named, ...));
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.

1 participant