{"record":{"id":"45d9f6f6b4927d10","repo":"weaviate/weaviate","slug":"sq-is-not-currently-supported-for-flat-indices","errorCode":null,"errorMessage":"SQ is not currently supported for flat indices","messagePattern":"SQ is not currently supported for flat indices","errorType":"validation","errorClass":null,"httpStatus":422,"severity":"error","filePath":"entities/vectorindex/flat/config.go","lineNumber":227,"sourceCode":"\t}\n\tif uc.RQ.Enabled {\n\t\ttotalEnabled++\n\t\t// Validate RQ bits\n\t\tif uc.RQ.Bits != 1 && uc.RQ.Bits != 8 {\n\t\t\treturn errors.New(\"RQ bits must be either 1 or 8\")\n\t\t}\n\t}\n\n\tif totalEnabled > 1 {\n\t\treturn errors.New(\"cannot enable multiple quantization methods at the same time\")\n\t}\n\n\t// TODO: remove once PQ and SQ are supported\n\tif uc.PQ.Enabled {\n\t\treturn errors.New(\"PQ is not currently supported for flat indices\")\n\t}\n\tif uc.SQ.Enabled {\n\t\treturn errors.New(\"SQ is not currently supported for flat indices\")\n\t}\n\n\treturn nil\n}\n\nfunc parseRQConfig(in interface{}, rq *RQUserConfig) error {\n\tconfigMap, ok := in.(map[string]interface{})\n\tif ok {\n\t\tif err := vectorindexcommon.OptionalBoolFromMap(configMap, \"enabled\", func(v bool) {\n\t\t\trq.Enabled = v\n\t\t}); err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tif err := vectorindexcommon.OptionalBoolFromMap(configMap, \"cache\", func(v bool) {\n\t\t\trq.Cache = v\n\t\t}); err != nil {\n\t\t\treturn err","sourceCodeStart":209,"sourceCodeEnd":245,"githubUrl":"https://github.com/weaviate/weaviate/blob/75aa4b6d11f8818305aafd4440b4e32794f7ca04/entities/vectorindex/flat/config.go#L209-L245","documentation":"Known limitation guard in flat index config parsing (marked TODO): scalar quantization (SQ) was requested for a flat index, but SQ is not yet implemented there. The check runs after the mutual-exclusion and RQ-bits checks in parseCompression, so a valid-but-unsupported SQ config reaches this error.","triggerScenarios":"Thrown at entities/vectorindex/flat/config.go:227 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use BQ or RQ compression, which are supported on flat indices","Switch the collection to an HNSW index if SQ is required","Disable quantization for the flat index"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"75aa4b6d11f8818305aafd4440b4e32794f7ca04","analyzedAt":"2026-09-04T14:58:20.392Z","contentChangedAt":"2026-09-04T14:58:20.392Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}