File tree Expand file tree Collapse file tree
tests/StackExchange.Redis.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ public async Task VectorSetAdd_WithAttributes()
6565 public async Task VectorSetAdd_WithEverything ( VectorSetQuantization quantization , bool useFp32 )
6666 {
6767 await using var conn = Create ( require : RedisFeatures . v8_0_0_M04 ) ;
68+ var server = conn . GetServer ( RedisKey . Null ) ;
69+ Log ( $ "Server version: { server . Version } ") ;
6870 var db = conn . GetDatabase ( ) ;
6971 var key = Me ( ) + "/" + quantization ;
7072
@@ -79,7 +81,7 @@ public async Task VectorSetAdd_WithEverything(VectorSetQuantization quantization
7981 attributes ) ;
8082 request . UseFp32 = useFp32 ;
8183 request . Quantization = quantization ;
82- request . ReducedDimensions = 64 ;
84+ request . ReducedDimensions = 4 ;
8385 request . BuildExplorationFactor = 300 ;
8486 request . MaxConnections = 32 ;
8587 request . UseCheckAndSet = true ;
Original file line number Diff line number Diff line change 55
66namespace StackExchange . Redis . Tests ;
77
8- [ Collection ( NonParallelCollection . Name ) ] // because of the FP32 suppression
98public sealed class VectorSetUnitTests ( ITestOutputHelper output )
109{
1110 // the aim of this test is to validate that we're sending the right thing - VADD is complex
@@ -34,7 +33,7 @@ public async Task VectorSetAdd_WithEverything(VectorSetQuantization quantization
3433 attributes ) ;
3534 request . UseFp32 = useFp32 ;
3635 request . Quantization = quantization ;
37- request . ReducedDimensions = 64 ;
36+ request . ReducedDimensions = 4 ;
3837 request . BuildExplorationFactor = 300 ;
3938 request . MaxConnections = 32 ;
4039 request . UseCheckAndSet = true ;
@@ -56,7 +55,7 @@ public async Task VectorSetAdd_WithEverything(VectorSetQuantization quantization
5655 Assert . Equal ( "VADD" , req [ 0 ] ) ;
5756 Assert . Equal ( "mykey" , req [ 1 ] ) ;
5857 Assert . Equal ( "REDUCE" , req [ 2 ] ) ;
59- Assert . Equal ( 64 , req [ 3 ] ) ;
58+ Assert . Equal ( 4 , req [ 3 ] ) ;
6059 req = req . Slice ( 4 ) ;
6160
6261 if ( useFp32 )
You can’t perform that action at this time.
0 commit comments