Skip to content

Commit 99bdcb5

Browse files
authored
Merge pull request #1833 from MaskyS/patch-1
Add jina-embeddings-v4 support
2 parents 14ebd72 + 4da4917 commit 99bdcb5

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

test/collection/test_config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,27 +408,27 @@ def test_basic_config():
408408
),
409409
(
410410
Configure.Vectorizer.text2vec_jinaai(
411-
model="jina-embeddings-v3",
411+
model="jina-embeddings-v4",
412412
vectorize_collection_name=False,
413413
dimensions=512,
414414
),
415415
{
416416
"text2vec-jinaai": {
417-
"model": "jina-embeddings-v3",
417+
"model": "jina-embeddings-v4",
418418
"vectorizeClassName": False,
419419
"dimensions": 512,
420420
}
421421
},
422422
),
423423
(
424424
Configure.Vectorizer.multi2vec_jinaai(
425-
model="jina-clip-v2",
425+
model="jina-embeddings-v4",
426426
dimensions=512,
427427
vectorize_collection_name=False,
428428
),
429429
{
430430
"multi2vec-jinaai": {
431-
"model": "jina-clip-v2",
431+
"model": "jina-embeddings-v4",
432432
"dimensions": 512,
433433
}
434434
},

weaviate/collections/classes/config_vectorizers.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@
4444
"jina-embeddings-v2-base-es",
4545
"jina-embeddings-v2-base-code",
4646
"jina-embeddings-v3",
47+
"jina-embeddings-v4",
4748
]
48-
JinaMultimodalModel: TypeAlias = Literal[
49-
"jina-clip-v1",
50-
"jina-clip-v2",
51-
]
49+
JinaMultimodalModel: TypeAlias = Literal["jina-clip-v1", "jina-clip-v2", "jina-embeddings-v4"]
5250
VoyageModel: TypeAlias = Literal[
5351
"voyage-3.5",
5452
"voyage-3.5-lite",

0 commit comments

Comments
 (0)