Skip to content

Commit 00c7403

Browse files
committed
VoyageAI's new multimodal embedding model - corrections
1 parent 6b1bcbf commit 00c7403

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

test/collection/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def test_basic_config():
107107
base_url="https://api.voyageai.com",
108108
),
109109
{
110-
"multi2vec-cohere": {
110+
"multi2vec-voyageai": {
111111
"model": "voyage-multimodal-3",
112112
"truncation": False,
113113
"output_encoding": None,

weaviate/collections/classes/config_named_vectors.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,7 @@ def multi2vec_bind(
757757
vector_index_config=vector_index_config,
758758
)
759759

760+
@staticmethod
760761
def multi2vec_voyageai(
761762
name: str,
762763
*,
@@ -769,9 +770,9 @@ def multi2vec_voyageai(
769770
image_fields: Optional[Union[List[str], List[Multi2VecField]]] = None,
770771
text_fields: Optional[Union[List[str], List[Multi2VecField]]] = None,
771772
) -> _NamedVectorConfigCreate:
772-
"""Create a named vector using the `multi2vec_cohere` model.
773+
"""Create a named vector using the `multi2vec_voyageai` model.
773774
774-
See the [documentation](https://weaviate.io/developers/weaviate/model-providers/cohere/embeddings-multimodal)
775+
See the [documentation](https://weaviate.io/developers/weaviate/model-providers/voyageai/embeddings-multimodal)
775776
for detailed usage.
776777
777778
Arguments:
@@ -793,7 +794,7 @@ def multi2vec_voyageai(
793794
The text fields to use in vectorization.
794795
795796
Raises:
796-
`pydantic.ValidationError` if `model` is not a valid value from the `CohereMultimodalModel` type or if `truncate` is not a valid value from the `CohereTruncation` type.
797+
`pydantic.ValidationError` if `model` is not a valid value from the `VoyageaiMultimodalModel` type.
797798
"""
798799
return _NamedVectorConfigCreate(
799800
name=name,

weaviate/collections/classes/config_vectorizers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@
5555
"voyage-finance-2",
5656
"voyage-multilingual-2",
5757
]
58-
VoyageMultimodalModel: TypeAlias = Literal[
59-
"voyage-multimodal-3",
60-
]
58+
VoyageMultimodalModel: TypeAlias = Literal["voyage-multimodal-3",]
6159
AWSModel: TypeAlias = Literal[
6260
"amazon.titan-embed-text-v1",
6361
"cohere.embed-english-v3",

0 commit comments

Comments
 (0)