Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

multi2vec_* factories accept vectorize_collection_name and silently drop it

Aperta
#2,106 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@cpruijsen ci sta già lavorando.

Dal 8/10/2026.

  • #2138 di @mayuriphad — chiusa senza merge
  • #2193 di @cpruijsen — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
api

Direzione di ricerca

Inizia dagli entry point delle factory multi2vec_* e dalle otto classi _Multi2Vec*Config, quindi confrontali con le implementazioni della factory e della config testuale che includono già vectorizeClassName. Verifica se Weaviate supporta questa impostazione per le configurazioni multimodali, inclusa multi2vec_google, prima di scegliere la correzione. Il lavoro è completato quando il comportamento supportato è esplicito e l'argomento non viene più ignorato silenziosamente nei percorsi sincrono, asincrono e dei vettori non denominati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Every multi2vec_* factory accepts vectorize_collection_name and then drops it.

The text factories forward it. The multimodal ones take the same argument and never use it.
Nothing is logged either, so vectorize_collection_name=False has no effect and the collection name is still folded
into the vectors.

Reproduced on 4.22.0 with no server, since these factories are pure config builders. Asking every
factory for vectorize_collection_name=False and reading the config it emits:

text2vec_cohere      vectorizeClassName=False     honoured=True
text2vec_openai      vectorizeClassName=False     honoured=True
multi2vec_cohere     vectorizeClassName=<absent>  honoured=False
multi2vec_clip       vectorizeClassName=<absent>  honoured=False
multi2vec_voyageai   vectorizeClassName=<absent>  honoured=False
multi2vec_jinaai     vectorizeClassName=<absent>  honoured=False

The key is absent rather than wrong, so the server applies its own default. The docstring on these
same methods says that default is True.

While confirming it I found something that probably decides which fix you want. None of the eight
_Multi2Vec*Config classes has a vectorizeClassName field at all. Both text config classes do. So
the factories are accepting an argument the config model below them has no slot to hold, which
reads less like a missed line and more like the parameter was copied into signatures where it was
never supported.

That leaves a question I cannot answer from the client, and it changes the fix:

  • If Weaviate does support it for multimodal, the field needs adding to those config classes and
    passing through.
  • If it does not, the parameter cannot ever work there, and the fix is to drop it from those
    signatures or raise on it.

Happy to write either patch once you say which.

A note on severity. Not a security hole. It is just quiet: someone turning it off
for a multimodal collection gets vectors they did not ask for, and nothing tells them.

What I did not check. multi2vec_google needs location and project_id to build, so it is
covered by reading the code and not by the run above. I also did not check the async client or the
non-named-vector Configure.Vectorizer paths, which look like they have the same shape.

Lingua principale
Python
Stelle
228
Fork
158
Merge medio
2g 18h
PR unite (30g)
11

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di weaviate/weaviate-python-client

Tutte le issue di weaviate/weaviate-python-client

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.