Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions test/collection/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,11 @@ def test_basic_config():
},
),
(
Configure.Vectorizer.text2vec_palm(
Configure.Vectorizer.text2vec_google(
project_id="project",
),
{
"text2vec-palm": {
"text2vec-google": {
"projectId": "project",
"vectorizeClassName": True,
}
Expand All @@ -336,7 +336,7 @@ def test_basic_config():
project_id="project",
),
{
"text2vec-palm": {
"text2vec-google": {
"projectId": "project",
"vectorizeClassName": True,
}
Expand All @@ -345,21 +345,21 @@ def test_basic_config():
(
Configure.Vectorizer.text2vec_google_aistudio(),
{
"text2vec-palm": {
"text2vec-google": {
"apiEndpoint": "generativelanguage.googleapis.com",
"vectorizeClassName": True,
}
},
),
(
Configure.Vectorizer.text2vec_palm(
Configure.Vectorizer.text2vec_palm( # not changed to text2vec_google to ensure BC
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kept these to ensure deprecated methods are tested until they're removed

project_id="project",
api_endpoint="api.google.com",
model_id="model",
vectorize_collection_name=False,
),
{
"text2vec-palm": {
"text2vec-google": {
"projectId": "project",
"apiEndpoint": "api.google.com",
"modelId": "model",
Expand All @@ -375,7 +375,7 @@ def test_basic_config():
vectorize_collection_name=False,
),
{
"text2vec-palm": {
"text2vec-google": {
"projectId": "project",
"apiEndpoint": "api.google.com",
"modelId": "model",
Expand Down Expand Up @@ -520,7 +520,7 @@ def test_basic_config():
},
),
(
Configure.Vectorizer.multi2vec_palm(
Configure.Vectorizer.multi2vec_palm( # not changed to _google to ensure BC
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kept these to ensure deprecated methods are tested until they're removed

image_fields=["image"],
text_fields=["text"],
video_fields=["video"],
Expand All @@ -529,7 +529,7 @@ def test_basic_config():
location="us-central1",
),
{
"multi2vec-palm": {
"multi2vec-google": {
"imageFields": ["image"],
"textFields": ["text"],
"videoFields": ["video"],
Expand All @@ -549,7 +549,7 @@ def test_basic_config():
location="us-central1",
),
{
"multi2vec-palm": {
"multi2vec-google": {
"imageFields": ["image"],
"textFields": ["text"],
"videoFields": ["video"],
Expand Down Expand Up @@ -1637,7 +1637,7 @@ def test_vector_config_flat_pq() -> None:
{
"test": {
"vectorizer": {
"text2vec-palm": {
"text2vec-google": {
"projectId": "project",
"properties": ["prop"],
"vectorizeClassName": True,
Expand All @@ -1658,7 +1658,7 @@ def test_vector_config_flat_pq() -> None:
{
"test": {
"vectorizer": {
"text2vec-palm": {
"text2vec-google": {
"projectId": "project",
"properties": ["prop"],
"vectorizeClassName": True,
Expand All @@ -1678,7 +1678,7 @@ def test_vector_config_flat_pq() -> None:
{
"test": {
"vectorizer": {
"text2vec-palm": {
"text2vec-google": {
"apiEndpoint": "generativelanguage.googleapis.com",
"properties": ["prop"],
"vectorizeClassName": True,
Expand Down Expand Up @@ -1815,7 +1815,7 @@ def test_vector_config_flat_pq() -> None:
{
"test": {
"vectorizer": {
"multi2vec-palm": {
"multi2vec-google": {
"imageFields": ["image"],
"textFields": ["text"],
"projectId": "project",
Expand All @@ -1839,7 +1839,7 @@ def test_vector_config_flat_pq() -> None:
{
"test": {
"vectorizer": {
"multi2vec-palm": {
"multi2vec-google": {
"imageFields": ["image"],
"textFields": ["text"],
"projectId": "project",
Expand Down Expand Up @@ -2165,7 +2165,7 @@ def test_config_with_named_vectors(
{
"test": {
"vectorizer": {
"text2vec-palm": {
"text2vec-google": {
"projectId": "project",
"properties": ["prop"],
"vectorizeClassName": True,
Expand All @@ -2187,7 +2187,7 @@ def test_config_with_named_vectors(
{
"test": {
"vectorizer": {
"text2vec-palm": {
"text2vec-google": {
"apiEndpoint": "generativelanguage.googleapis.com",
"properties": ["prop"],
"vectorizeClassName": True,
Expand Down Expand Up @@ -2322,7 +2322,7 @@ def test_config_with_named_vectors(
{
"test": {
"vectorizer": {
"multi2vec-palm": {
"multi2vec-google": {
"imageFields": ["image"],
"textFields": ["text"],
"projectId": "project",
Expand Down
12 changes: 6 additions & 6 deletions weaviate/collections/classes/config_vectorizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ class Vectorizers(str, Enum):
TEXT2VEC_GPT4ALL: Weaviate module backed by GPT-4-All text-based embedding models.
TEXT2VEC_HUGGINGFACE: Weaviate module backed by HuggingFace text-based embedding models.
TEXT2VEC_OPENAI: Weaviate module backed by OpenAI and Azure-OpenAI text-based embedding models.
TEXT2VEC_PALM: Weaviate module backed by PaLM text-based embedding models.
TEXT2VEC_GOOGLE: Weaviate module backed by a Google (and formerly PaLM) text-based embedding models.
TEXT2VEC_TRANSFORMERS: Weaviate module backed by Transformers text-based embedding models.
TEXT2VEC_JINAAI: Weaviate module backed by Jina AI text-based embedding models.
TEXT2VEC_VOYAGEAI: Weaviate module backed by Voyage AI text-based embedding models.
TEXT2VEC_NVIDIA: Weaviate module backed by NVIDIA text-based embedding models.
TEXT2VEC_WEAVIATE: Weaviate module backed by Weaviate's self-hosted text-based embedding models.
IMG2VEC_NEURAL: Weaviate module backed by a ResNet-50 neural network for images.
MULTI2VEC_CLIP: Weaviate module backed by a Sentence-BERT CLIP model for images and text.
MULTI2VEC_PALM: Weaviate module backed by a palm model for images and text.
MULTI2VEC_GOOGLE: Weaviate module backed by a Google (and formerly PaLM) model for images and text.
MULTI2VEC_BIND: Weaviate module backed by the ImageBind model for images, text, audio, depth, IMU, thermal, and video.
MULTI2VEC_VOYAGEAI: Weaviate module backed by a Voyage AI multimodal embedding models.
MULTI2VEC_NVIDIA: Weaviate module backed by NVIDIA multimodal embedding models.
Expand All @@ -118,7 +118,7 @@ class Vectorizers(str, Enum):
TEXT2VEC_NVIDIA = "text2vec-nvidia"
TEXT2VEC_OLLAMA = "text2vec-ollama"
TEXT2VEC_OPENAI = "text2vec-openai"
TEXT2VEC_PALM = "text2vec-palm" # change to google once 1.27 is the lowest supported version
TEXT2VEC_GOOGLE = "text2vec-google"
TEXT2VEC_TRANSFORMERS = "text2vec-transformers"
TEXT2VEC_JINAAI = "text2vec-jinaai"
TEXT2VEC_VOYAGEAI = "text2vec-voyageai"
Expand All @@ -129,7 +129,7 @@ class Vectorizers(str, Enum):
MULTI2VEC_JINAAI = "multi2vec-jinaai"
MULTI2MULTI_JINAAI = "multi2multivec-jinaai"
MULTI2VEC_BIND = "multi2vec-bind"
MULTI2VEC_PALM = "multi2vec-palm" # change to google once 1.27 is the lowest supported version
MULTI2VEC_GOOGLE = "multi2vec-google"
MULTI2VEC_VOYAGEAI = "multi2vec-voyageai"
MULTI2VEC_NVIDIA = "multi2vec-nvidia"
REF2VEC_CENTROID = "ref2vec-centroid"
Expand Down Expand Up @@ -316,7 +316,7 @@ def _to_dict(self) -> Dict[str, Any]:

class _Text2VecGoogleConfig(_VectorizerConfigCreate):
vectorizer: Union[Vectorizers, _EnumLikeStr] = Field(
default=Vectorizers.TEXT2VEC_PALM, frozen=True, exclude=True
default=Vectorizers.TEXT2VEC_GOOGLE, frozen=True, exclude=True
)
projectId: Optional[str]
apiEndpoint: Optional[str]
Expand Down Expand Up @@ -480,7 +480,7 @@ class _Multi2VecClipConfig(_Multi2VecBase):

class _Multi2VecGoogleConfig(_Multi2VecBase, _VectorizerConfigCreate):
vectorizer: Union[Vectorizers, _EnumLikeStr] = Field(
default=Vectorizers.MULTI2VEC_PALM, frozen=True, exclude=True
default=Vectorizers.MULTI2VEC_GOOGLE, frozen=True, exclude=True
)
videoFields: Optional[List[Multi2VecField]]
projectId: str
Expand Down