Skip to content

Commit ea53dd2

Browse files
committed
fix: remove parameter not relevant to multi2vec-nvidia
1 parent 98aefb1 commit ea53dd2

File tree

4 files changed

+1
-8
lines changed

4 files changed

+1
-8
lines changed

src/collections/config/types/vectorizer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ export type Multi2VecNvidiaConfig = {
7777
baseURL?: string;
7878
/** Whether to apply truncation. */
7979
truncation?: boolean;
80-
/** Format in which the embeddings are encoded. Defaults to `None`, so the embeddings are represented as a list of floating-point numbers. */
81-
output_encoding?: string;
8280
/** The image fields used when vectorizing. */
8381
imageFields?: string[];
8482
/** The text fields used when vectorizing. */

src/collections/configure/types/vectorizer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ export type Multi2VecNvidiaConfigCreate = {
135135
baseURL?: string;
136136
/** Whether to apply truncation. */
137137
truncation?: boolean;
138-
/** Format in which the embeddings are encoded. Defaults to `None`, so the embeddings are represented as a list of floating-point numbers. */
139-
outputEncoding?: string;
140138
/** The image fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */
141139
imageFields?: string[] | Multi2VecField[];
142140
/** The text fields to use in vectorization. Can be string of `Multi2VecField` type. If string, weight 0 will be assumed. */

src/collections/configure/unit.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,6 @@ describe('Unit testing of the vectorizer factory class', () => {
643643
const config = configure.vectors.multi2VecNvidia({
644644
name: 'test',
645645
model: 'model-id',
646-
outputEncoding: 'base64',
647646
truncation: true,
648647
baseURL: 'example.com',
649648
imageFields: [
@@ -664,7 +663,6 @@ describe('Unit testing of the vectorizer factory class', () => {
664663
vectorizer: {
665664
name: 'multi2vec-nvidia',
666665
config: {
667-
output_encoding: 'base64',
668666
truncation: true,
669667
baseURL: 'example.com',
670668
imageFields: ['field1', 'field2'],

src/collections/configure/vectorizer.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ export const vectors = (({ text2VecPalm, multi2VecPalm, ...rest }) => ({
924924
multi2VecNvidia: <N extends string | undefined = undefined, I extends VectorIndexType = 'hnsw'>(
925925
opts?: ConfigureNonTextVectorizerOptions<N, I, 'multi2vec-nvidia'>
926926
): VectorConfigCreate<never, N, I, 'multi2vec-nvidia'> => {
927-
const { name, quantizer, vectorIndexConfig, outputEncoding, ...config } = opts || {};
927+
const { name, quantizer, vectorIndexConfig, ...config } = opts || {};
928928
const imageFields = config.imageFields?.map(mapMulti2VecField);
929929
const textFields = config.textFields?.map(mapMulti2VecField);
930930
let weights: Multi2VecNvidiaConfig['weights'] = {};
@@ -937,7 +937,6 @@ export const vectors = (({ text2VecPalm, multi2VecPalm, ...rest }) => ({
937937
name: 'multi2vec-nvidia',
938938
config: {
939939
...config,
940-
output_encoding: outputEncoding,
941940
imageFields: imageFields?.map((f) => f.name),
942941
textFields: textFields?.map((f) => f.name),
943942
weights: Object.keys(weights).length === 0 ? undefined : weights,

0 commit comments

Comments
 (0)