Skip to content

Commit

Permalink
Add missing change from commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmith023 committed May 24, 2024
1 parent a1f30f0 commit ea914a8
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions src/collections/configure/unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ describe('Unit testing of the configure factory class', () => {

describe('Unit testing of the vectorizer factory class', () => {
it('should create the correct Img2VecNeuralConfig type with all values', () => {
const config = configure.vectorizers.img2VecNeural({
const config = configure.vectorizer.img2VecNeural({
name: 'test',
imageFields: ['field1', 'field2'],
});
Expand All @@ -217,7 +217,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Multi2VecClipConfig type with defaults', () => {
const config = configure.vectorizers.multi2VecClip();
const config = configure.vectorizer.multi2VecClip();
expect(config).toEqual<VectorConfigCreate<never, undefined, 'hnsw', 'multi2vec-clip'>>({
vectorName: undefined,
vectorIndex: {
Expand All @@ -232,7 +232,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Multi2VecClipConfig type with all values', () => {
const config = configure.vectorizers.multi2VecClip({
const config = configure.vectorizer.multi2VecClip({
name: 'test',
imageFields: ['field1', 'field2'],
textFields: ['field3', 'field4'],
Expand All @@ -256,7 +256,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Multi2VecClipConfig type with all values and weights', () => {
const config = configure.vectorizers.multi2VecClip({
const config = configure.vectorizer.multi2VecClip({
name: 'test',
imageFields: [
{ name: 'field1', weight: 0.1 },
Expand Down Expand Up @@ -290,7 +290,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Multi2VecBindConfig type with defaults', () => {
const config = configure.vectorizers.multi2VecBind();
const config = configure.vectorizer.multi2VecBind();
expect(config).toEqual<VectorConfigCreate<never, undefined, 'hnsw', 'multi2vec-bind'>>({
vectorName: undefined,
vectorIndex: {
Expand All @@ -305,7 +305,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Multi2VecBindConfig type with all values', () => {
const config = configure.vectorizers.multi2VecBind({
const config = configure.vectorizer.multi2VecBind({
name: 'test',
audioFields: ['field1', 'field2'],
depthFields: ['field3', 'field4'],
Expand Down Expand Up @@ -339,7 +339,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Multi2VecBindConfig type with all values and weights', () => {
const config = configure.vectorizers.multi2VecBind({
const config = configure.vectorizer.multi2VecBind({
name: 'test',
audioFields: [
{ name: 'field1', weight: 0.1 },
Expand Down Expand Up @@ -403,7 +403,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Multi2VecPalmConfig type with defaults', () => {
const config = configure.vectorizers.multi2VecPalm({
const config = configure.vectorizer.multi2VecPalm({
projectId: 'project-id',
location: 'location',
});
Expand All @@ -424,7 +424,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Multi2VecPalmConfig type with all values', () => {
const config = configure.vectorizers.multi2VecPalm({
const config = configure.vectorizer.multi2VecPalm({
name: 'test',
projectId: 'project-id',
imageFields: ['field1', 'field2'],
Expand Down Expand Up @@ -458,7 +458,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Multi2VecPalmConfig type with all values and weights', () => {
const config = configure.vectorizers.multi2VecPalm({
const config = configure.vectorizer.multi2VecPalm({
name: 'test',
projectId: 'project-id',
imageFields: [
Expand Down Expand Up @@ -506,7 +506,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecAWSConfig type with defaults', () => {
const config = configure.vectorizers.text2VecAWS({
const config = configure.vectorizer.text2VecAWS({
region: 'region',
service: 'service',
});
Expand All @@ -527,7 +527,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecAWSConfig type with all values', () => {
const config = configure.vectorizers.text2VecAWS({
const config = configure.vectorizer.text2VecAWS({
name: 'test',
endpoint: 'endpoint',
model: 'model',
Expand Down Expand Up @@ -555,7 +555,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecAzureOpenAIConfig type with defaults', () => {
const config = configure.vectorizers.text2VecAzureOpenAI({
const config = configure.vectorizer.text2VecAzureOpenAI({
deploymentID: 'deployment-id',
resourceName: 'resource-name',
});
Expand All @@ -576,7 +576,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecAzureOpenAIConfig type with all values', () => {
const config = configure.vectorizers.text2VecAzureOpenAI({
const config = configure.vectorizer.text2VecAzureOpenAI({
name: 'test',
baseURL: 'base-url',
deploymentID: 'deployment-id',
Expand All @@ -602,7 +602,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecCohereConfig type with defaults', () => {
const config = configure.vectorizers.text2VecCohere();
const config = configure.vectorizer.text2VecCohere();
expect(config).toEqual<VectorConfigCreate<never, undefined, 'hnsw', 'text2vec-cohere'>>({
vectorName: undefined,
vectorIndex: {
Expand All @@ -617,7 +617,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecCohereConfig type with all values', () => {
const config = configure.vectorizers.text2VecCohere({
const config = configure.vectorizer.text2VecCohere({
name: 'test',
baseURL: 'base-url',
model: 'model',
Expand All @@ -643,7 +643,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecContextionaryConfig type with defaults', () => {
const config = configure.vectorizers.text2VecContextionary();
const config = configure.vectorizer.text2VecContextionary();
expect(config).toEqual<VectorConfigCreate<never, undefined, 'hnsw', 'text2vec-contextionary'>>({
vectorName: undefined,
vectorIndex: {
Expand All @@ -658,7 +658,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecContextionaryConfig type with all values', () => {
const config = configure.vectorizers.text2VecContextionary({
const config = configure.vectorizer.text2VecContextionary({
name: 'test',
vectorizeCollectionName: true,
});
Expand All @@ -678,7 +678,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecGPT4AllConfig type with defaults', () => {
const config = configure.vectorizers.text2VecGPT4All();
const config = configure.vectorizer.text2VecGPT4All();
expect(config).toEqual<VectorConfigCreate<never, undefined, 'hnsw', 'text2vec-gpt4all'>>({
vectorName: undefined,
vectorIndex: {
Expand All @@ -693,7 +693,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecGPT4AllConfig type with all values', () => {
const config = configure.vectorizers.text2VecGPT4All({
const config = configure.vectorizer.text2VecGPT4All({
name: 'test',
vectorizeCollectionName: true,
});
Expand All @@ -713,7 +713,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecHuggingFaceConfig type with defaults', () => {
const config = configure.vectorizers.text2VecHuggingFace();
const config = configure.vectorizer.text2VecHuggingFace();
expect(config).toEqual<VectorConfigCreate<never, undefined, 'hnsw', 'text2vec-huggingface'>>({
vectorName: undefined,
vectorIndex: {
Expand All @@ -728,7 +728,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecHuggingFaceConfig type with all values', () => {
const config = configure.vectorizers.text2VecHuggingFace({
const config = configure.vectorizer.text2VecHuggingFace({
name: 'test',
endpointURL: 'endpoint-url',
model: 'model',
Expand Down Expand Up @@ -762,7 +762,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecJinaConfig type with defaults', () => {
const config = configure.vectorizers.text2VecJina();
const config = configure.vectorizer.text2VecJina();
expect(config).toEqual<VectorConfigCreate<never, undefined, 'hnsw', 'text2vec-jina'>>({
vectorName: undefined,
vectorIndex: {
Expand All @@ -777,7 +777,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecJinaConfig type with all values', () => {
const config = configure.vectorizers.text2VecJina({
const config = configure.vectorizer.text2VecJina({
name: 'test',
model: 'model',
vectorizeCollectionName: true,
Expand All @@ -799,7 +799,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecOpenAIConfig type with defaults', () => {
const config = configure.vectorizers.text2VecOpenAI();
const config = configure.vectorizer.text2VecOpenAI();
expect(config).toEqual<VectorConfigCreate<never, undefined, 'hnsw', 'text2vec-openai'>>({
vectorName: undefined,
vectorIndex: {
Expand All @@ -814,7 +814,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecOpenAIConfig type with all values', () => {
const config = configure.vectorizers.text2VecOpenAI({
const config = configure.vectorizer.text2VecOpenAI({
name: 'test',
baseURL: 'base-url',
dimensions: 256,
Expand Down Expand Up @@ -844,7 +844,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecPalmConfig type with defaults', () => {
const config = configure.vectorizers.text2VecPalm();
const config = configure.vectorizer.text2VecPalm();
expect(config).toEqual<VectorConfigCreate<never, undefined, 'hnsw', 'text2vec-palm'>>({
vectorName: undefined,
vectorIndex: {
Expand All @@ -859,7 +859,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecPalmConfig type with all values', () => {
const config = configure.vectorizers.text2VecPalm({
const config = configure.vectorizer.text2VecPalm({
name: 'test',
apiEndpoint: 'api-endpoint',
modelId: 'model-id',
Expand All @@ -885,7 +885,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecTransformersConfig type with defaults', () => {
const config = configure.vectorizers.text2VecTransformers();
const config = configure.vectorizer.text2VecTransformers();
expect(config).toEqual<VectorConfigCreate<never, undefined, 'hnsw', 'text2vec-transformers'>>({
vectorName: undefined,
vectorIndex: {
Expand All @@ -900,7 +900,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecTransformersConfig type with all values', () => {
const config = configure.vectorizers.text2VecTransformers({
const config = configure.vectorizer.text2VecTransformers({
name: 'test',
poolingStrategy: 'pooling-strategy',
vectorizeCollectionName: true,
Expand All @@ -922,7 +922,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecVoyageAIConfig type with defaults', () => {
const config = configure.vectorizers.text2VecVoyageAI();
const config = configure.vectorizer.text2VecVoyageAI();
expect(config).toEqual<VectorConfigCreate<never, undefined, 'hnsw', 'text2vec-voyageai'>>({
vectorName: undefined,
vectorIndex: {
Expand All @@ -937,7 +937,7 @@ describe('Unit testing of the vectorizer factory class', () => {
});

it('should create the correct Text2VecVoyageConfig type with all values', () => {
const config = configure.vectorizers.text2VecVoyageAI({
const config = configure.vectorizer.text2VecVoyageAI({
name: 'test',
baseURL: 'base-url',
model: 'model',
Expand Down

0 comments on commit ea914a8

Please sign in to comment.