Skip to content

Commit f00044e

Browse files
committed
refactor: shade 'vectorizeCollectionName' parameter in 'configure.vectors'
1 parent 84fb1f3 commit f00044e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/collections/configure/vectorizer.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,15 @@ export const vectors = {
796796
},
797797
};
798798

799+
type __VectorsShaded = typeof vectors & {
800+
multi2VecClipConfig: <N extends string | undefined = undefined, I extends VectorIndexType = 'hnsw'>(
801+
opts?: Omit<ConfigureNonTextVectorizerOptions<N, I, 'multi2vec-clip'>, 'vectorizeCollectionName'>
802+
) => VectorConfigCreate<never, N, I, 'multi2vec-clip'>,
803+
multi2VecCohere: <N extends string | undefined = undefined, I extends VectorIndexType = 'hnsw'>(
804+
opts?: Omit<ConfigureNonTextVectorizerOptions<N, I, 'multi2vec-cohere'>, 'vectorizeCollectionName'>
805+
) => VectorConfigCreate<never, N, I, 'multi2vec-cohere'>,
806+
}
807+
799808
export const multiVectors = {
800809
/**
801810
* Create a multi-vector `VectorConfigCreate` object with the vectorizer set to `'none'`.
@@ -831,7 +840,7 @@ export const multiVectors = {
831840
* @returns {VectorConfigCreate<PrimitiveKeys<T>, N, I, 'text2multivec-jinaai'>} The configuration object.
832841
*/
833842
text2VecJinaAI: <T, N extends string | undefined = undefined, I extends VectorIndexType = 'hnsw'>(
834-
opts?: ConfigureTextMultiVectorizerOptions<T, N, I, 'text2multivec-jinaai'>
843+
opts?: Omit<ConfigureTextMultiVectorizerOptions<T, N, I, 'text2multivec-jinaai'>, 'vectorizeCollectionName'>
835844
): VectorConfigCreate<PrimitiveKeys<T>, N, I, 'text2multivec-jinaai'> => {
836845
const { name, encoding, sourceProperties, quantizer, vectorIndexConfig, ...config } = opts || {};
837846
return makeVectorizer(
@@ -859,7 +868,7 @@ export const multiVectors = {
859868
* @returns {VectorConfigCreate<PrimitiveKeys<T>[], N, I, 'multi2multivec-jinaai'>} The configuration object.
860869
*/
861870
multi2VecJinaAI: <N extends string | undefined = undefined, I extends VectorIndexType = 'hnsw'>(
862-
opts?: ConfigureNonTextVectorizerOptions<N, I, 'multi2multivec-jinaai'>
871+
opts?: Omit<ConfigureNonTextVectorizerOptions<N, I, 'multi2multivec-jinaai'>, 'vectorizeCollectionName'>
863872
): VectorConfigCreate<never, N, I, 'multi2multivec-jinaai'> => {
864873
const { name, vectorIndexConfig, ...config } = opts || {};
865874
return makeVectorizer(name, {

0 commit comments

Comments
 (0)