feat(core): Add new index PartitionedHNSW for vectors #9469
Trunk Check
Checked 16 modified files
8 existing issues (use --show-existing to see them)
✖ 10 new lint issues
Details
To reproduce and test locally, run:
trunk check
For help resolving these issues, see our docs on running on PRs or debugging Trunk Check
Annotations
Check failure on line 28 in tok/partitioned_hnsw/partitioned_hnsw.go
github-actions / Trunk Check
golangci-lint2(unused)
[new] field vecCount is unused
Check failure on line 1432 in posting/index.go
github-actions / Trunk Check
golangci-lint2(errcheck)
[new] Error return value of `MemLayerInstance.IterateDisk` is not checked
Check failure on line 1586 in posting/index.go
github-actions / Trunk Check
golangci-lint2(errcheck)
[new] Error return value of `indexer.BuildInsert` is not checked
Check failure on line 1644 in posting/index.go
github-actions / Trunk Check
golangci-lint2(errcheck)
[new] Error return value of `indexer.BuildInsert` is not checked
Check failure on line 1658 in posting/index.go
github-actions / Trunk Check
golangci-lint2(errcheck)
[new] Error return value of `x.ExponentialRetry` is not checked
Check failure on line 122 in tok/hnsw/persistent_hnsw.go
github-actions / Trunk Check
golangci-lint2(staticcheck)
[new] S1023: redundant return statement
Check failure on line 67 in tok/partitioned_hnsw/partitioned_factory.go
github-actions / Trunk Check
golangci-lint2(staticcheck)
[new] ST1005: error strings should not be capitalized
Check failure on line 119 in tok/kmeans/kmeans.go
github-actions / Trunk Check
golangci-lint2(unused)
[new] func (*vectorCentroids[T]).getCentroids is unused
Check failure on line 140 in tok/kmeans/kmeans.go
github-actions / Trunk Check
golangci-lint2(unused)
[new] func (*vectorCentroids[T]).findNClosestCentroids is unused
Check failure on line 446 in systest/vector/vector_test.go
github-actions / Trunk Check
golangci-lint2(ineffassign)
[new] ineffectual assignment to err