Skip to content

feat: add generative-deepseek module#2084

Open
pablopupo wants to merge 1 commit into
weaviate:mainfrom
pablopupo:feature/2074-generative-deepseek
Open

feat: add generative-deepseek module#2084
pablopupo wants to merge 1 commit into
weaviate:mainfrom
pablopupo:feature/2074-generative-deepseek

Conversation

@pablopupo

Copy link
Copy Markdown

Adds the generative-deepseek provider, following the existing xAI and Contextual AI
modules. It's available for both collection config (Configure.Generative.deepseek) and
query-time generation (GenerativeConfig.deepseek), with the settings listed in the issue:
model, max_tokens, temperature, frequency_penalty, presence_penalty, top_p, base_url, stop.

I regenerated the proto stubs for generative.proto alone (across the 4/5/6 trees) so the
diff stays limited to the deepseek messages. The GenerativeGoogle.location field that has
since landed on weaviate main is intentionally left out, since it's unrelated to this issue.

Response metadata isn't surfaced, which keeps this consistent with how xAI and Contextual AI
behave today. Happy to wire that up across those providers in a follow-up if you'd prefer.

Closes #2074

Add the generative-deepseek provider on both the collection-config
(Configure.Generative.deepseek) and query-time (GenerativeConfig.deepseek)
paths, mirroring the existing xAI and Contextual AI modules. Supported
settings: model, max_tokens, temperature, frequency_penalty,
presence_penalty, top_p, base_url, stop.

Regenerate the generative_pb2 stubs for the protobuf 4, 5, and 6 trees to
add the GenerativeDeepseek and GenerativeDeepseekMetadata messages.

@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?

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-deepseek module

2 participants