@@ -835,10 +835,9 @@ describe('Testing of the collection.config namespace', () => {
835835 }
836836 ) ;
837837
838- requireAtLeast ( 1 , 32 , 4 ) . it (
839- 'should be able to create a collection with an uncompressed quantizer' ,
840- async ( ) => {
841- const collectionName = 'TestCollectionConfigCreateWithUncompressedQuantizer' ;
838+ requireAtLeast ( 1 , 32 , 4 ) . describe ( 'uncompressed quantizer' , ( ) => {
839+ it ( 'should be able to create a collection with an uncompressed quantizer' , async ( ) => {
840+ const collectionName = 'TestCollectionUncompressedVector' ;
842841 const collection = await client . collections . create ( {
843842 name : collectionName ,
844843 vectorizers : weaviate . configure . vectors . selfProvided ( {
@@ -855,6 +854,27 @@ describe('Testing of the collection.config namespace', () => {
855854 . then ( ( schema ) =>
856855 expect ( schema . vectorConfig ?. default . vectorIndexConfig ?. skipDefaultQuantization ) . toBe ( true )
857856 ) ;
858- }
859- ) ;
857+ } ) ;
858+
859+ it ( 'should be able to create a collection with uncompressed named vector' , async ( ) => {
860+ const collectionName = 'TestCollectionUncompressedVectorNamed' ;
861+ const collection = await client . collections . create ( {
862+ name : collectionName ,
863+ vectorizers : weaviate . configure . vectors . selfProvided ( {
864+ name : 'custom' ,
865+ quantizer : weaviate . configure . vectorIndex . quantizer . none ( ) ,
866+ } ) ,
867+ } ) ;
868+ await collection . config
869+ . get ( )
870+ . then ( ( config ) =>
871+ expect ( ( config . vectorizers . custom . indexConfig as VectorIndexConfigHNSW ) . quantizer ) . toBeUndefined ( )
872+ ) ;
873+ await fetch ( `http://localhost:8080/v1/schema/${ collectionName } ` )
874+ . then ( ( res ) => res . json ( ) as WeaviateClass )
875+ . then ( ( schema ) =>
876+ expect ( schema . vectorConfig ?. custom . vectorIndexConfig ?. skipDefaultQuantization ) . toBe ( true )
877+ ) ;
878+ } ) ;
879+ } ) ;
860880} ) ;
0 commit comments