Skip to content

feat: add generative-meta module support - #2163

Closed
niukanen1 wants to merge 1 commit into
weaviate:mainfrom
niukanen1:feat/generative-meta
Closed

niukanen1 wants to merge 1 commit into
weaviate:mainfrom
niukanen1:feat/generative-meta

Conversation

@niukanen1

Copy link
Copy Markdown

Fixes #2158

Adds _GenerativeMeta, the META member in GenerativeSearches, and the GenerativeConfig.meta() factory following the existing module pattern. Fields: base_url, model, temperature, top_p, max_tokens, frequency_penalty, presence_penalty, reasoning_effort (none/minimal/low/medium/high/xhigh, mapped to the proto ReasoningEffort enum; anything else raises WeaviateInvalidInputError). None fields are omitted so server defaults apply

Tested with pytest test/collection/test_classes_generative.py: 30 passed (full grpc roundtrip case, all six reasoning_effort mappings, invalid value)

Adds the `generative-meta` module to the client: a `_GenerativeMeta`
config class, a `META` member in `GenerativeSearches`, and a
`GenerativeConfig.meta()` factory.

Supports base_url, model, temperature, top_p, max_tokens,
frequency_penalty, presence_penalty and reasoning_effort
(none/minimal/low/medium/high/xhigh, mapped to the proto enum);
invalid reasoning_effort raises WeaviateInvalidInputError. None values
are omitted so the server-side defaults apply.

Fixes weaviate#2158

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

Copy link
Copy Markdown

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

@weaviate-git-bot

Copy link
Copy Markdown

To avoid any confusion in the future about your contribution to Weaviate, we work with a Contributor License Agreement. If you agree, you can simply add a comment to this PR that you agree with the CLA so that we can merge.

beep boop - the Weaviate bot 👋🤖

PS:
Are you already a member of the Weaviate Forum?

@g-despot

Copy link
Copy Markdown
Collaborator

Already implemented and merged a bit earlier. Thanks for the contribution

@g-despot g-despot closed this Sep 17, 2026
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.

Add support for new generative-meta module

3 participants