Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/collections/config/types/vectorizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ export type Text2VecVoyageAIConfig = {
truncate?: boolean;
/** Whether to vectorize the collection name. */
vectorizeCollectionName?: boolean;
/** The number of dimensions for the generated embeddings. */
dimensions?: number;
};

/**
Expand Down
2 changes: 2 additions & 0 deletions src/collections/configure/unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1542,6 +1542,7 @@ describe('Unit testing of the vectorizer factory class', () => {
baseURL: 'base-url',
model: 'model',
truncate: true,
dimensions: 256,
});
expect(config).toEqual<VectorConfigCreate<never, 'test', 'hnsw', 'text2vec-voyageai'>>({
name: 'test',
Expand All @@ -1555,6 +1556,7 @@ describe('Unit testing of the vectorizer factory class', () => {
baseURL: 'base-url',
model: 'model',
truncate: true,
dimensions: 256,
},
},
});
Expand Down