Skip to content

Add support for Tokenization APIs#565

Open
bevzzz wants to merge 6 commits intomainfrom
feat/tokenizer
Open

Add support for Tokenization APIs#565
bevzzz wants to merge 6 commits intomainfrom
feat/tokenizer

Conversation

@bevzzz
Copy link
Copy Markdown
Collaborator

@bevzzz bevzzz commented Apr 21, 2026

This PR adds a new tokenize namespace, which will allow users to tokenize text strings before without writing the data into the collection. When selecting tokenization configuration, it is possible to either reference the config of an existing collection property or supply an arbitrary one.

// Referencing existing configuration
client.tokenize.text("hello world", "Pizzas", "recipe");

// Custom tokenization config
client.tokenize.text("hello world", tok -> tok
  .tokenization(Tokenization.TRIGRAM)
  .stopwords(Stopwords.of(s -> s.preset("fr")))
  .textAnalyzer(TextAnalyzer.of(txt -> txt.keepAscii("ß"))));

Reference Python implementation: weaviate/weaviate-python-client#2019

@bevzzz bevzzz requested review from amourao and dirkkul April 21, 2026 11:54
@bevzzz bevzzz self-assigned this Apr 21, 2026
@bevzzz bevzzz requested a review from a team as a code owner April 21, 2026 11:54
Copy link
Copy Markdown

@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 Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

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