|
62 | 62 | "voyage-finance-2", |
63 | 63 | "voyage-multilingual-2", |
64 | 64 | ] |
65 | | -VoyageMultimodalModel: TypeAlias = Literal["voyage-multimodal-3",] |
| 65 | +VoyageMultimodalModel: TypeAlias = Literal[ |
| 66 | + "voyage-multimodal-3", |
| 67 | + "voyage-multimodal-3.5", |
| 68 | +] |
66 | 69 | AWSModel: TypeAlias = Literal[ |
67 | 70 | "amazon.titan-embed-text-v1", |
68 | 71 | "cohere.embed-english-v3", |
@@ -566,6 +569,8 @@ class _Multi2VecVoyageaiConfig(_Multi2VecBase): |
566 | 569 | baseURL: Optional[AnyHttpUrl] |
567 | 570 | model: Optional[str] |
568 | 571 | truncation: Optional[bool] |
| 572 | + dimensions: Optional[int] |
| 573 | + videoFields: Optional[List[Multi2VecField]] |
569 | 574 |
|
570 | 575 | def _to_dict(self) -> Dict[str, Any]: |
571 | 576 | ret_dict = super()._to_dict() |
@@ -897,37 +902,39 @@ def multi2vec_cohere( |
897 | 902 | @staticmethod |
898 | 903 | def multi2vec_voyageai( |
899 | 904 | *, |
900 | | - model: Optional[Union[CohereMultimodalModel, str]] = None, |
| 905 | + model: Optional[Union[VoyageMultimodalModel, str]] = None, |
901 | 906 | truncation: Optional[bool] = None, |
902 | 907 | output_encoding: Optional[str], |
903 | 908 | vectorize_collection_name: bool = True, |
904 | 909 | base_url: Optional[AnyHttpUrl] = None, |
905 | 910 | image_fields: Optional[Union[List[str], List[Multi2VecField]]] = None, |
906 | 911 | text_fields: Optional[Union[List[str], List[Multi2VecField]]] = None, |
907 | 912 | ) -> _VectorizerConfigCreate: |
908 | | - """Create a `_Multi2VecCohereConfig` object for use when vectorizing using the `multi2vec-cohere` model. |
| 913 | + """Create a `_Multi2VecVoyageaiConfig` object for use when vectorizing using the `multi2vec-voyageai` model. |
909 | 914 |
|
910 | | - See the [documentation](https://weaviate.io/developers/weaviate/model-providers/cohere/embeddings-multimodal) |
| 915 | + See the [documentation](https://weaviate.io/developers/weaviate/model-providers/voyageai/embeddings-multimodal) |
911 | 916 | for detailed usage. |
912 | 917 |
|
913 | 918 | Args: |
914 | 919 | model: The model to use. Defaults to `None`, which uses the server-defined default. |
915 | | - truncate: The truncation strategy to use. Defaults to `None`, which uses the server-defined default. |
| 920 | + truncation: The truncation strategy to use. Defaults to `None`, which uses the server-defined default. |
916 | 921 | output_encoding: Deprecated, has no effect. |
917 | 922 | vectorize_collection_name: Deprecated, has no effect. |
918 | 923 | base_url: The base URL to use where API requests should go. Defaults to `None`, which uses the server-defined default. |
919 | 924 | image_fields: The image fields to use in vectorization. |
920 | 925 | text_fields: The text fields to use in vectorization. |
921 | 926 |
|
922 | 927 | Raises: |
923 | | - 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. |
| 928 | + pydantic.ValidationError: If `model` is not a valid value from the `VoyageMultimodalModel` type. |
924 | 929 | """ |
925 | 930 | return _Multi2VecVoyageaiConfig( |
926 | 931 | baseURL=base_url, |
927 | 932 | model=model, |
928 | 933 | truncation=truncation, |
| 934 | + dimensions=None, |
929 | 935 | imageFields=_map_multi2vec_fields(image_fields), |
930 | 936 | textFields=_map_multi2vec_fields(text_fields), |
| 937 | + videoFields=None, |
931 | 938 | ) |
932 | 939 |
|
933 | 940 | @staticmethod |
|
0 commit comments