Skip to content

Commit 5201826

Browse files
committed
chore: rename static factory to muli2vecJinaAI for consistency with text2VecJinaAI
1 parent 12702c1 commit 5201826

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/collections/configure/unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ describe('Unit testing of the vectorizer factory class', () => {
704704
});
705705

706706
requireAtLeast(1, 32, 0).it('should create the correct Multi2MultivecJinaAIConfig with values', () => {
707-
const config = configure.multiVectors.multi2MultivecJinaAI({
707+
const config = configure.multiVectors.multi2VecJinaAI({
708708
name: 'multi-jina',
709709
imageFields: ['field1', 'field2'],
710710
textFields: ['field3', 'field4'],

src/collections/configure/vectorizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ export const multiVectors = {
858858
* @param {ConfigureNonTextVectorizerOptions<N, I, 'multi2multivec-jinaai'>} [opts] The configuration options for the `multi2multivec-jinaai` vectorizer.
859859
* @returns {VectorConfigCreate<PrimitiveKeys<T>[], N, I, 'multi2multivec-jinaai'>} The configuration object.
860860
*/
861-
multi2MultivecJinaAI: <N extends string | undefined = undefined, I extends VectorIndexType = 'hnsw'>(
861+
multi2VecJinaAI: <N extends string | undefined = undefined, I extends VectorIndexType = 'hnsw'>(
862862
opts?: ConfigureNonTextVectorizerOptions<N, I, 'multi2multivec-jinaai'>
863863
): VectorConfigCreate<never, N, I, 'multi2multivec-jinaai'> => {
864864
const { name, vectorIndexConfig, ...config } = opts || {};

0 commit comments

Comments
 (0)