Skip to content

gh-409: Support audio fields in multi2vec-google vectorizer configs - #490

Open
sarankumar1325 wants to merge 2 commits into
weaviate:mainfrom
sarankumar1325:fix/409-multi2vec-google-audio-fields
Open

sarankumar1325 wants to merge 2 commits into
weaviate:mainfrom
sarankumar1325:fix/409-multi2vec-google-audio-fields

Conversation

@sarankumar1325

Copy link
Copy Markdown

Closes #409.

Adds audioFields support to the multi2vec-google and multi2vec-google-gemini vectorizer configs, matching the Python client (_Multi2VecGoogleConfig.audioFields).

Changes

  • Multi2VecGoogleConfig (and so Multi2VecGoogleGeminiConfig) gains audioFields and weights.audioFields.
  • Multi2VecGoogleConfigCreate / Multi2VecGoogleGeminiConfigCreate accept audioFields?: string[] | Multi2VecField[].
  • configure.vectors.multi2VecGoogle() / multi2VecGoogleGemini() (and the deprecated multi2VecPalm(), which shares the config type) map audio fields to names and collect their weights like image/text/video fields. Before this, audio fields passed through untyped as raw objects and their weights were dropped.

Tests

  • Extended the multi2vec-google "all values and weights" unit test with audio fields, and added a multi2vec-google-gemini audio fields + weights test. Both fail without the change.
  • node/configure/unit.test.ts: 139 passed. Prettier, ESLint, and tsc --noEmit for @weaviate/core are clean.

…onfigs

Add audioFields (and their weights) to the multi2vec-google and
multi2vec-google-gemini vectorizer config types and builders, matching
the Python client. The deprecated multi2vec-palm builder shares the same
config type and gets the same handling.

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

@sarankumar1325

Copy link
Copy Markdown
Author

I agree with the CLA.

This branch has not been deployed

No deployments
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 audio modality in multi2vec-google vectorizer

2 participants