[PNNSGenerateDatabase] Batchsize > 1 fails `validate` due to only passing one vector.
Suppose we have a txtpb generated by `PNNSGenerateDatabase --output-database database.txtpb --row-count 10000 --vector-dimension 128 --metadata-size 100 --vector-type random` a 10000 element 128-dimension random vector database,
and a config json
```json
{
"batchSize" : 2,
"databasePacking" : {
"diagonal" : {
"babyStepGiantStep" : {
"babyStep" : 12,
"giantStep" : 11,
"vectorDimension" : 128
}
}
},
"distanceMetric" : {
"cosineSimilarity" : { }
},
"extraPlaintextModuli" : [ ],
"inputDatabase" : "database.txtpb",
"outputDatabase" : "processed-database.binpb",
"outputServerConfig" : "server-config.txtpb",
"queryPacking" : {
"denseRow" : { }
},
"rlweParameters" : "n_4096_logq_27_28_28_logt_17",
"trialTolerance" : 0.01,
"trials" : 10
}
```
(This is directly copied from the suggested config.json, only changing batchSize from 1 to 2),
And run `PNNSProcessDatabase config.json`, you get the error
`Error: Validation error Wrong vector count 256, expected 128`.
关闭于 2026-02-02 1 条评论