Skip to content

Commit b783e08

Browse files
committed
update tests
1 parent 3cc1257 commit b783e08

1 file changed

Lines changed: 62 additions & 38 deletions

File tree

test/collection/test_config.py

Lines changed: 62 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2425,55 +2425,79 @@ def test_config_with_named_vectors(
24252425
},
24262426
),
24272427
(
2428-
Configure.Vectors.multi2vec_voyageai(
2429-
model="voyage-multimodal-3.5",
2430-
truncation=True,
2431-
base_url="https://api.voyageai.com",
2432-
),
2428+
[
2429+
Configure.Vectors.multi2vec_voyageai(
2430+
name="test",
2431+
model="voyage-multimodal-3.5",
2432+
truncation=True,
2433+
base_url="https://api.voyageai.com",
2434+
),
2435+
],
24332436
{
2434-
"multi2vec-voyageai": {
2435-
"model": "voyage-multimodal-3.5",
2436-
"truncation": True,
2437-
"baseURL": "https://api.voyageai.com/",
2437+
"test": {
2438+
"vectorizer": {
2439+
"multi2vec-voyageai": {
2440+
"model": "voyage-multimodal-3.5",
2441+
"truncation": True,
2442+
"baseURL": "https://api.voyageai.com/",
2443+
}
2444+
},
2445+
"vectorIndexType": "hnsw",
24382446
}
24392447
},
24402448
),
24412449
(
2442-
Configure.Vectors.multi2vec_voyageai(
2443-
model="voyage-multimodal-3.5",
2444-
truncation=True,
2445-
text_fields=[Multi2VecField(name="text", weight=0.2)],
2446-
image_fields=[Multi2VecField(name="image", weight=0.3)],
2447-
video_fields=[Multi2VecField(name="video", weight=0.5)],
2448-
),
2450+
[
2451+
Configure.Vectors.multi2vec_voyageai(
2452+
name="test",
2453+
model="voyage-multimodal-3.5",
2454+
truncation=True,
2455+
text_fields=[Multi2VecField(name="text", weight=0.2)],
2456+
image_fields=[Multi2VecField(name="image", weight=0.3)],
2457+
video_fields=[Multi2VecField(name="video", weight=0.5)],
2458+
)
2459+
],
24492460
{
2450-
"multi2vec-voyageai": {
2451-
"model": "voyage-multimodal-3.5",
2452-
"truncation": True,
2453-
"textFields": ["text"],
2454-
"imageFields": ["image"],
2455-
"videoFields": ["video"],
2456-
"weights": {
2457-
"textFields": [0.2],
2458-
"imageFields": [0.3],
2459-
"videoFields": [0.5],
2461+
"test": {
2462+
"vectorizer": {
2463+
"multi2vec-voyageai": {
2464+
"model": "voyage-multimodal-3.5",
2465+
"truncation": True,
2466+
"textFields": ["text"],
2467+
"imageFields": ["image"],
2468+
"videoFields": ["video"],
2469+
"weights": {
2470+
"textFields": [0.2],
2471+
"imageFields": [0.3],
2472+
"videoFields": [0.5],
2473+
},
2474+
}
24602475
},
2461-
}
2476+
"vectorIndexType": "hnsw",
2477+
},
24622478
},
24632479
),
24642480
(
2465-
Configure.Vectors.multi2vec_voyageai(
2466-
model="voyage-multimodal-3.5",
2467-
dimensions=512,
2468-
text_fields=["text"],
2469-
video_fields=["video"],
2470-
),
2481+
[
2482+
Configure.Vectors.multi2vec_voyageai(
2483+
name="test",
2484+
model="voyage-multimodal-3.5",
2485+
dimensions=512,
2486+
text_fields=["text"],
2487+
video_fields=["video"],
2488+
)
2489+
],
24712490
{
2472-
"multi2vec-voyageai": {
2473-
"model": "voyage-multimodal-3.5",
2474-
"dimensions": 512,
2475-
"textFields": ["text"],
2476-
"videoFields": ["video"],
2491+
"test": {
2492+
"vectorizer": {
2493+
"multi2vec-voyageai": {
2494+
"model": "voyage-multimodal-3.5",
2495+
"dimensions": 512,
2496+
"textFields": ["text"],
2497+
"videoFields": ["video"],
2498+
}
2499+
},
2500+
"vectorIndexType": "hnsw",
24772501
}
24782502
},
24792503
),

0 commit comments

Comments
 (0)