You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/collections/config/types/vectorizer.ts
+53-34
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ export type Vectorizer =
21
21
|'text2vec-azure-openai'
22
22
|'text2vec-cohere'
23
23
|'text2vec-contextionary'
24
+
|'text2vec-databricks'
24
25
|'text2vec-gpt4all'
25
26
|'text2vec-huggingface'
26
27
|'text2vec-jina'
@@ -33,9 +34,9 @@ export type Vectorizer =
33
34
|'text2vec-voyageai'
34
35
|'none';
35
36
36
-
/** The configuration for image vectorization using a neural network.
37
+
/** The configuration for image vectorization using a neural network module.
37
38
*
38
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/img2vec-neural) for detailed usage.
39
+
* See the [documentation](https://weaviate.io/developers/weaviate/modules/img2vec-neural) for detailed usage.
39
40
*/
40
41
exporttypeImg2VecNeuralConfig={
41
42
/** The image fields used when vectorizing. This is a required field and must match the property fields of the collection that are defined as `DataType.BLOB`. */
@@ -50,9 +51,9 @@ export type Multi2VecField = {
50
51
weight?: number;
51
52
};
52
53
53
-
/** The configuration for multi-media vectorization using CLIP.
54
+
/** The configuration for multi-media vectorization using the CLIP module.
54
55
*
55
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/multi2vec-clip) for detailed usage.
56
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/transformers/embeddings-multimodal) for detailed usage.
56
57
*/
57
58
exporttypeMulti2VecClipConfig={
58
59
/** The image fields used when vectorizing. */
@@ -72,9 +73,9 @@ export type Multi2VecClipConfig = {
72
73
};
73
74
};
74
75
75
-
/** The configuration for multi-media vectorization using Bind.
76
+
/** The configuration for multi-media vectorization using the Bind module.
76
77
*
77
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/multi2vec-bind) for detailed usage.
78
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/imagebind/embeddings-multimodal) for detailed usage.
78
79
*/
79
80
exporttypeMulti2VecBindConfig={
80
81
/** The audio fields used when vectorizing. */
@@ -112,9 +113,9 @@ export type Multi2VecBindConfig = {
112
113
};
113
114
};
114
115
115
-
/** The configuration for multi-media vectorization using Palm.
116
+
/** The configuration for multi-media vectorization using the PaLM model.
116
117
*
117
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-palm) for detailed usage.
118
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/google/embeddings) for detailed usage.
118
119
*/
119
120
exporttypeMulti2VecPalmConfig={
120
121
/** The project ID of the Palm model. */
@@ -144,9 +145,9 @@ export type Multi2VecPalmConfig = {
144
145
};
145
146
};
146
147
147
-
/** The configuration for reference-based vectorization using centroids.
148
+
/** The configuration for reference-based vectorization using the centroid method.
148
149
*
149
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/ref2vec-centroid) for detailed usage.
150
+
* See the [documentation](https://weaviate.io/developers/weaviate/modules/ref2vec-centroid) for detailed usage.
150
151
*/
151
152
exporttypeRef2VecCentroidConfig={
152
153
/** The properties used as reference points for vectorization. */
@@ -155,7 +156,7 @@ export type Ref2VecCentroidConfig = {
155
156
method: 'mean'|string;
156
157
};
157
158
158
-
/** The configuration for text vectorization using AWS.
159
+
/** The configuration for text vectorization using the AWS module.
159
160
*
160
161
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-aws) for detailed usage.
161
162
*/
@@ -172,9 +173,9 @@ export type Text2VecAWSConfig = {
172
173
vectorizeCollectionName?: boolean;
173
174
};
174
175
175
-
/** The configuration for text vectorization using Azure OpenAI.
176
+
/** The configuration for text vectorization using the OpenAI module with Azure.
176
177
*
177
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-azure-openai) for detailed usage.
178
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/openai/embeddings) for detailed usage.
178
179
*/
179
180
exporttypeText2VecAzureOpenAIConfig={
180
181
/** The base URL to use where API requests should go. */
@@ -187,9 +188,9 @@ export type Text2VecAzureOpenAIConfig = {
187
188
vectorizeCollectionName?: boolean;
188
189
};
189
190
190
-
/** The configuration for text vectorization using Cohere.
191
+
/** The configuration for text vectorization using the Cohere module.
191
192
*
192
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-cohere) for detailed usage.
193
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/cohere/embeddings) for detailed usage.
193
194
*/
194
195
exporttypeText2VecCohereConfig={
195
196
/** The base URL to use where API requests should go. */
@@ -202,28 +203,38 @@ export type Text2VecCohereConfig = {
202
203
vectorizeCollectionName?: boolean;
203
204
};
204
205
205
-
/** The configuration for text vectorization using Contextionary.
206
+
/** The configuration for text vectorization using the Contextionary module.
206
207
*
207
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-contextionary) for detailed usage.
208
+
* See the [documentation](https://weaviate.io/developers/weaviate/modules/text2vec-contextionary) for detailed usage.
208
209
*/
209
210
exporttypeText2VecContextionaryConfig={
210
211
/** Whether to vectorize the collection name. */
211
212
vectorizeCollectionName?: boolean;
212
213
};
213
214
214
-
/** The configuration for text vectorization using GPT4All.
215
+
/** The configuration for text vectorization using the Databricks module.
215
216
*
216
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-gpt4all) for detailed usage.
217
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/databricks/embeddings) for detailed usage.
218
+
*/
219
+
exporttypeText2VecDatabricksConfig={
220
+
endpoint: string;
221
+
instruction?: string;
222
+
vectorizeCollectionName?: boolean;
223
+
};
224
+
225
+
/** The configuration for text vectorization using the GPT-4-All module.
226
+
*
227
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/gpt4all/embeddings) for detailed usage.
217
228
*/
218
229
exporttypeText2VecGPT4AllConfig={
219
230
/** Whether to vectorize the collection name. */
220
231
vectorizeCollectionName?: boolean;
221
232
};
222
233
223
234
/**
224
-
* The configuration for text vectorization using Hugging Face.
235
+
* The configuration for text vectorization using the HuggingFace module.
225
236
*
226
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-huggingface) for detailed usage.
237
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/huggingface/embeddings) for detailed usage.
227
238
*/
228
239
exporttypeText2VecHuggingFaceConfig={
229
240
/** The endpoint URL to use. */
@@ -245,9 +256,9 @@ export type Text2VecHuggingFaceConfig = {
245
256
};
246
257
247
258
/**
248
-
* The configuration for text vectorization using Jina.
259
+
* The configuration for text vectorization using the Jina module.
249
260
*
250
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-jina) for detailed usage.
261
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/jinaai/embeddings) for detailed usage.
251
262
*/
252
263
exporttypeText2VecJinaConfig={
253
264
/** The model to use. */
@@ -257,7 +268,7 @@ export type Text2VecJinaConfig = {
257
268
};
258
269
259
270
/**
260
-
* The configuration for text vectorization using Mistral.
271
+
* The configuration for text vectorization using the Mistral module.
261
272
*
262
273
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/mistral/embeddings) for detailed usage.
263
274
*/
@@ -269,9 +280,9 @@ export type Text2VecMistralConfig = {
269
280
};
270
281
271
282
/**
272
-
* The configuration for text vectorization using OctoAI.
283
+
* The configuration for text vectorization using the OctoAI module.
273
284
*
274
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-octoai) for detailed usage.
285
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/octoai/embeddings) for detailed usage.
275
286
*/
276
287
exporttypeText2VecOctoAIConfig={
277
288
/** The base URL to use where API requests should go. */
@@ -283,9 +294,9 @@ export type Text2VecOctoAIConfig = {
283
294
};
284
295
285
296
/**
286
-
* The configuration for text vectorization using Ollama.
297
+
* The configuration for text vectorization using the Ollama module.
287
298
*
288
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-ollama) for detailed usage.
299
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/ollama/embeddings) for detailed usage.
289
300
*/
290
301
exporttypeText2VecOllamaConfig={
291
302
/** The base URL to use where API requests should go. */
@@ -297,9 +308,9 @@ export type Text2VecOllamaConfig = {
297
308
};
298
309
299
310
/**
300
-
* The configuration for text vectorization using OpenAI.
311
+
* The configuration for text vectorization using the OpenAI module.
301
312
*
302
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-openai) for detailed usage.
313
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/openai/embeddings) for detailed usage.
303
314
*/
304
315
exporttypeText2VecOpenAIConfig={
305
316
/** The base URL to use where API requests should go. */
@@ -317,9 +328,9 @@ export type Text2VecOpenAIConfig = {
317
328
};
318
329
319
330
/**
320
-
* The configuration for text vectorization using Palm.
331
+
* The configuration for text vectorization using the PaLM module.
321
332
*
322
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-palm) for detailed usage.
333
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/google/embeddings) for detailed usage.
323
334
*/
324
335
exporttypeText2VecPalmConfig={
325
336
/** The API endpoint to use without a leading scheme such as `http://`. */
@@ -334,6 +345,11 @@ export type Text2VecPalmConfig = {
334
345
vectorizeCollectionName?: boolean;
335
346
};
336
347
348
+
/**
349
+
* The configuration for text vectorization using the Transformers module.
350
+
*
351
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/transformers/embeddings) for detailed usage.
352
+
*/
337
353
exporttypeText2VecTransformersConfig={
338
354
/** The inference url to use where API requests should go. You can use either this OR (`passage_inference_url` & `query_inference_url`). */
339
355
inferenceUrl?: string;
@@ -348,9 +364,9 @@ export type Text2VecTransformersConfig = {
348
364
};
349
365
350
366
/**
351
-
* The configuration for text vectorization using Voyage AI.
367
+
* The configuration for text vectorization using the VoyageAI module.
352
368
*
353
-
* See the [documentation](https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-voyageai) for detailed usage.
369
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/voyageai/embeddings) for detailed usage.
354
370
*/
355
371
exporttypeText2VecVoyageAIConfig={
356
372
/** The base URL to use where API requests should go. */
@@ -375,6 +391,7 @@ export type VectorizerConfig =
375
391
|Text2VecAzureOpenAIConfig
376
392
|Text2VecContextionaryConfig
377
393
|Text2VecCohereConfig
394
+
|Text2VecDatabricksConfig
378
395
|Text2VecGPT4AllConfig
379
396
|Text2VecHuggingFaceConfig
380
397
|Text2VecJinaConfig
@@ -400,6 +417,8 @@ export type VectorizerConfigType<V> = V extends 'img2vec-neural'
0 commit comments