@@ -11,11 +11,18 @@ export type VectorConfig = Record<
11
11
}
12
12
> ;
13
13
14
+ /** @deprecated Use `multi2vec-google` instead. */
15
+ type Multi2VecPalmVectorizer = 'multi2vec-palm' ;
16
+
17
+ /** @deprecated Use `text2vec-google` instead. */
18
+ type Text2VecPalmVectorizer = 'text2vec-palm' ;
19
+
14
20
export type Vectorizer =
15
21
| 'img2vec-neural'
16
22
| 'multi2vec-clip'
17
23
| 'multi2vec-bind'
18
- | 'multi2vec-palm'
24
+ | Multi2VecPalmVectorizer
25
+ | 'multi2vec-google'
19
26
| 'ref2vec-centroid'
20
27
| 'text2vec-aws'
21
28
| 'text2vec-azure-openai'
@@ -29,7 +36,8 @@ export type Vectorizer =
29
36
| 'text2vec-octoai'
30
37
| 'text2vec-ollama'
31
38
| 'text2vec-openai'
32
- | 'text2vec-palm'
39
+ | Text2VecPalmVectorizer
40
+ | 'text2vec-google'
33
41
| 'text2vec-transformers'
34
42
| 'text2vec-voyageai'
35
43
| 'none' ;
@@ -113,12 +121,15 @@ export type Multi2VecBindConfig = {
113
121
} ;
114
122
} ;
115
123
116
- /** The configuration for multi-media vectorization using the PaLM model.
124
+ /** @deprecated Use `Multi2VecGoogleConfig` instead. */
125
+ export type Multi2VecPalmConfig = Multi2VecGoogleConfig ;
126
+
127
+ /** The configuration for multi-media vectorization using the Google module.
117
128
*
118
129
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/google/embeddings) for detailed usage.
119
130
*/
120
- export type Multi2VecPalmConfig = {
121
- /** The project ID of the Palm model. */
131
+ export type Multi2VecGoogleConfig = {
132
+ /** The project ID of the model in GCP . */
122
133
projectId : string ;
123
134
/** The location where the model runs. */
124
135
location : string ;
@@ -327,12 +338,15 @@ export type Text2VecOpenAIConfig = {
327
338
vectorizeCollectionName ?: boolean ;
328
339
} ;
329
340
341
+ /** @deprecated Use `Text2VecGoogleConfig` instead. */
342
+ export type Text2VecPalmConfig = Text2VecGoogleConfig ;
343
+
330
344
/**
331
- * The configuration for text vectorization using the PaLM module.
345
+ * The configuration for text vectorization using the Google module.
332
346
*
333
347
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/google/embeddings) for detailed usage.
334
348
*/
335
- export type Text2VecPalmConfig = {
349
+ export type Text2VecGoogleConfig = {
336
350
/** The API endpoint to use without a leading scheme such as `http://`. */
337
351
apiEndpoint ?: string ;
338
352
/** The model ID to use. */
@@ -385,13 +399,15 @@ export type VectorizerConfig =
385
399
| Img2VecNeuralConfig
386
400
| Multi2VecClipConfig
387
401
| Multi2VecBindConfig
402
+ | Multi2VecGoogleConfig
388
403
| Multi2VecPalmConfig
389
404
| Ref2VecCentroidConfig
390
405
| Text2VecAWSConfig
391
406
| Text2VecAzureOpenAIConfig
392
407
| Text2VecContextionaryConfig
393
408
| Text2VecCohereConfig
394
409
| Text2VecDatabricksConfig
410
+ | Text2VecGoogleConfig
395
411
| Text2VecGPT4AllConfig
396
412
| Text2VecHuggingFaceConfig
397
413
| Text2VecJinaConfig
@@ -407,7 +423,9 @@ export type VectorizerConfigType<V> = V extends 'img2vec-neural'
407
423
? Multi2VecClipConfig | undefined
408
424
: V extends 'multi2vec-bind'
409
425
? Multi2VecBindConfig | undefined
410
- : V extends 'multi2vec-palm'
426
+ : V extends 'multi2vec-google'
427
+ ? Multi2VecGoogleConfig
428
+ : V extends Multi2VecPalmVectorizer
411
429
? Multi2VecPalmConfig
412
430
: V extends 'ref2vec-centroid'
413
431
? Ref2VecCentroidConfig
@@ -419,6 +437,8 @@ export type VectorizerConfigType<V> = V extends 'img2vec-neural'
419
437
? Text2VecCohereConfig | undefined
420
438
: V extends 'text2vec-databricks'
421
439
? Text2VecDatabricksConfig
440
+ : V extends 'text2vec-google'
441
+ ? Text2VecGoogleConfig | undefined
422
442
: V extends 'text2vec-gpt4all'
423
443
? Text2VecGPT4AllConfig | undefined
424
444
: V extends 'text2vec-huggingface'
@@ -435,7 +455,7 @@ export type VectorizerConfigType<V> = V extends 'img2vec-neural'
435
455
? Text2VecOpenAIConfig | undefined
436
456
: V extends 'text2vec-azure-openai'
437
457
? Text2VecAzureOpenAIConfig
438
- : V extends 'text2vec-palm'
458
+ : V extends Text2VecPalmVectorizer
439
459
? Text2VecPalmConfig | undefined
440
460
: V extends 'text2vec-transformers'
441
461
? Text2VecTransformersConfig | undefined
0 commit comments