11import {
22 Img2VecNeuralConfig ,
33 ModuleConfig ,
4+ Multi2MultivecJinaAIConfig ,
5+ Multi2VecAWSConfig ,
6+ Multi2VecBindConfig ,
7+ Multi2VecClipConfig ,
8+ Multi2VecCohereConfig ,
49 Multi2VecField ,
10+ Multi2VecGoogleConfig ,
11+ Multi2VecJinaAIConfig ,
12+ Multi2VecNvidiaConfig ,
13+ Multi2VecVoyageAIConfig ,
514 Ref2VecCentroidConfig ,
615 Text2MultiVecJinaAIConfig ,
716 Text2VecAWSConfig ,
@@ -10,11 +19,13 @@ import {
1019 Text2VecContextionaryConfig ,
1120 Text2VecDatabricksConfig ,
1221 Text2VecGPT4AllConfig ,
22+ Text2VecGoogleAiStudioConfig ,
1323 Text2VecGoogleConfig ,
1424 Text2VecHuggingFaceConfig ,
1525 Text2VecJinaAIConfig ,
1626 Text2VecMistralConfig ,
1727 Text2VecModel2Vec ,
28+ Text2VecMorphConfig ,
1829 Text2VecNvidiaConfig ,
1930 Text2VecOllamaConfig ,
2031 Text2VecOpenAIConfig ,
@@ -128,36 +139,43 @@ export type Img2VecNeuralConfigCreate = Img2VecNeuralConfig;
128139// image_fields: The image fields to use in vectorization.
129140// text_fields: The text fields to use in vectorization.
130141
142+ type Multi2VecOmissions =
143+ | 'audioFields'
144+ | 'depthFields'
145+ | 'imageFields'
146+ | 'IMUFields'
147+ | 'thermalFields'
148+ | 'textFields'
149+ | 'videoFields'
150+ | 'weights' ;
151+
131152/** The configuration for the `multi2vec-nvidia` vectorizer. */
132- export type Multi2VecNvidiaConfigCreate = {
133- /** The model to use. Defaults to `None`, which uses the server-defined default. */
134- model ?: string ;
135- /** The base URL where API requests should go. */
136- baseURL ?: string ;
137- /** Whether to apply truncation. */
138- truncation ?: boolean ;
153+ export type Multi2VecNvidiaConfigCreate = Omit < Multi2VecNvidiaConfig , Multi2VecOmissions > & {
154+ /** The image fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
155+ imageFields ?: string [ ] | Multi2VecField [ ] ;
139156 /** Format in which the embeddings are encoded. Defaults to `None`, so the embeddings are represented as a list of floating-point numbers. */
140157 outputEncoding ?: string ;
158+ /** The text fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
159+ textFields ?: string [ ] | Multi2VecField [ ] ;
160+ } ;
161+
162+ export type Multi2VecAWSConfigCreate = Omit < Multi2VecAWSConfig , Multi2VecOmissions > & {
141163 /** The image fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
142164 imageFields ?: string [ ] | Multi2VecField [ ] ;
143165 /** The text fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
144166 textFields ?: string [ ] | Multi2VecField [ ] ;
145167} ;
146168
147169/** The configuration for the `multi2vec-clip` vectorizer. */
148- export type Multi2VecClipConfigCreate = {
170+ export type Multi2VecClipConfigCreate = Omit < Multi2VecClipConfig , Multi2VecOmissions > & {
149171 /** The image fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
150172 imageFields ?: string [ ] | Multi2VecField [ ] ;
151- /** The inference url to use where API requests should go. */
152- inferenceUrl ?: string ;
153173 /** The text fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
154174 textFields ?: string [ ] | Multi2VecField [ ] ;
155- /** Whether to vectorize the collection name. */
156- vectorizeCollectionName ?: boolean ;
157175} ;
158176
159177/** The configuration for the `multi2vec-bind` vectorizer. */
160- export type Multi2VecBindConfigCreate = {
178+ export type Multi2VecBindConfigCreate = Omit < Multi2VecBindConfig , Multi2VecOmissions > & {
161179 /** The audio fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
162180 audioFields ?: string [ ] | Multi2VecField [ ] ;
163181 /** The depth fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
@@ -172,84 +190,43 @@ export type Multi2VecBindConfigCreate = {
172190 thermalFields ?: string [ ] | Multi2VecField [ ] ;
173191 /** The video fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
174192 videoFields ?: string [ ] | Multi2VecField [ ] ;
175- /** Whether to vectorize the collection name. */
176- vectorizeCollectionName ?: boolean ;
177193} ;
178194
179195/** The configuration for the `multi2vec-cohere` vectorizer. */
180- export type Multi2VecCohereConfigCreate = {
181- /** The base URL to use where API requests should go. */
182- baseURL ?: string ;
196+ export type Multi2VecCohereConfigCreate = Omit < Multi2VecCohereConfig , Multi2VecOmissions > & {
183197 /** The image fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
184198 imageFields ?: string [ ] | Multi2VecField [ ] ;
185- /** The specific model to use. */
186- model ?: string ;
187199 /** The text fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
188200 textFields ?: string [ ] | Multi2VecField [ ] ;
189- /** The truncation strategy to use. */
190- truncate ?: string ;
191- /** Whether to vectorize the collection name. */
192- vectorizeCollectionName ?: boolean ;
193201} ;
194202
195- export type Multi2MultivecJinaAIConfigCreate = {
196- /** The image fields to use in vectorization. */
197- imageFields ?: string [ ] ;
198- /** The text fields to use in vectorization. */
199- textFields ?: string [ ] ;
200- } ;
203+ export type Multi2MultivecJinaAIConfigCreate = Multi2MultivecJinaAIConfig ;
201204
202- export type Multi2VecJinaAIConfigCreate = {
203- /** The base URL to use where API requests should go. */
204- baseURL ?: string ;
205- /** The dimensionality of the vector once embedded. */
206- dimensions ?: number ;
207- /** The model to use. */
208- model ?: string ;
205+ export type Multi2VecJinaAIConfigCreate = Omit < Multi2VecJinaAIConfig , Multi2VecOmissions > & {
209206 /** The image fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
210207 imageFields ?: string [ ] | Multi2VecField [ ] ;
211208 /** The text fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
212209 textFields ?: string [ ] | Multi2VecField [ ] ;
213- /** Whether to vectorize the collection name. */
214- vectorizeCollectionName ?: boolean ;
215210} ;
216211
217212/** @deprecated Use `Multi2VecGoogleConfigCreate` instead.*/
218213export type Multi2VecPalmConfigCreate = Multi2VecGoogleConfigCreate ;
219214
220215/** The configuration for the `multi2vec-google` vectorizer. */
221- export type Multi2VecGoogleConfigCreate = {
222- /** The project id of the model in GCP. */
223- projectId : string ;
224- /** Where the model runs */
225- location : string ;
216+ export type Multi2VecGoogleConfigCreate = Omit < Multi2VecGoogleConfig , Multi2VecOmissions > & {
226217 /** The image fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
227218 imageFields ?: string [ ] | Multi2VecField [ ] ;
228219 /** The text fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
229220 textFields ?: string [ ] | Multi2VecField [ ] ;
230221 /** The video fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
231222 videoFields ?: string [ ] | Multi2VecField [ ] ;
232- /** The model ID to use. */
233- modelId ?: string ;
234- /** The dimensionality of the vector once embedded. */
235- dimensions ?: number ;
236- /** Whether to vectorize the collection name. */
237- vectorizeCollectionName ?: boolean ;
238223} ;
239224
240- export type Multi2VecVoyageAIConfigCreate = {
241- /** The base URL to use where API requests should go. */
242- baseURL ?: string ;
225+ export type Multi2VecVoyageAIConfigCreate = Omit < Multi2VecVoyageAIConfig , Multi2VecOmissions > & {
243226 /** The image fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
244227 imageFields ?: string [ ] | Multi2VecField [ ] ;
245- /** The model to use. */
246- model ?: string ;
247228 /** The text fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
248229 textFields ?: string [ ] | Multi2VecField [ ] ;
249- /** Whether the input should be truncated to fit the context window. */
250- truncate ?: boolean ;
251- /** Whether to vectorize the collection name. */
252- vectorizeCollectionName ?: boolean ;
253230} ;
254231
255232export type Ref2VecCentroidConfigCreate = Ref2VecCentroidConfig ;
@@ -276,6 +253,8 @@ export type Text2VecMistralConfigCreate = Text2VecMistralConfig;
276253
277254export type Text2VecModel2VecConfigCreate = Text2VecModel2Vec ;
278255
256+ export type Text2VecMorphConfigCreate = Text2VecMorphConfig ;
257+
279258export type Text2VecOllamaConfigCreate = Text2VecOllamaConfig ;
280259
281260export type Text2VecOpenAIConfigCreate = Text2VecOpenAIConfig ;
@@ -285,6 +264,8 @@ export type Text2VecPalmConfigCreate = Text2VecGoogleConfig;
285264
286265export type Text2VecGoogleConfigCreate = Text2VecGoogleConfig ;
287266
267+ export type Text2VecGoogleAiStudioConfigCreate = Text2VecGoogleAiStudioConfig ;
268+
288269export type Text2VecTransformersConfigCreate = Text2VecTransformersConfig ;
289270
290271export type Text2VecVoyageAIConfigCreate = Text2VecVoyageAIConfig ;
@@ -335,6 +316,8 @@ export type VectorizerConfigCreateType<V> = V extends 'img2vec-neural'
335316 ? Text2VecMistralConfigCreate | undefined
336317 : V extends 'text2vec-model2vec'
337318 ? Text2VecModel2VecConfigCreate | undefined
319+ : V extends 'text2vec-morph'
320+ ? Text2VecMorphConfigCreate | undefined
338321 : V extends 'text2vec-ollama'
339322 ? Text2VecOllamaConfigCreate | undefined
340323 : V extends 'text2vec-openai'
@@ -345,6 +328,8 @@ export type VectorizerConfigCreateType<V> = V extends 'img2vec-neural'
345328 ? Text2VecPalmConfigCreate | undefined
346329 : V extends 'text2vec-google'
347330 ? Text2VecGoogleConfigCreate | undefined
331+ : V extends 'text2vec-google-ai-studio'
332+ ? Text2VecGoogleAiStudioConfigCreate | undefined
348333 : V extends 'text2vec-transformers'
349334 ? Text2VecTransformersConfigCreate | undefined
350335 : V extends 'text2vec-voyageai'
0 commit comments