Skip to content

Banchmark - #8

Merged
Ishaan29 merged 6 commits into
mainfrom
banchmark
Jul 13, 2026
Merged

Banchmark#8
Ishaan29 merged 6 commits into
mainfrom
banchmark

Conversation

@Ishaan29

Copy link
Copy Markdown
Owner

No description provided.

Ishaan29 and others added 6 commits July 13, 2026 18:04
Run go vet/build/test on ubuntu-latest (portable scalar C++ path) and
ubuntu-24.04-arm (native NEON kernels), each with CGO_ENABLED=1 and 0,
plus a gofmt check. docker-verify is deliberately not run in CI since
the hosted runners already cover both Linux arches natively.

Also make TestBadgerDBConnection hermetic: point Badger at t.TempDir()
instead of config.yaml's machine-specific absolute path, which doesn't
exist on CI runners and leaked state between local runs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
config.yaml pointed storage.path and badger.path at an absolute macOS
path from another machine, breaking any fresh checkout. Switch both to
the relative "data" directory (BadgerDB v4 creates missing dirs on
open; the logger already MkdirAll's file-sink dirs), fill in Logging and
Badger defaults in DefaultConfig() to match, document the logging/badger
sections in the README config example, and update the CLAUDE.md known-
quirks note. data/ and logs/ were already gitignored.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The live stack is internal/engine + internal/index (HNSW) + persistence
(BadgerDB), with cmd/vectordb, cmd/vectordb-server, and cmd/bench as
entry points. Remove the obsolete scaffolding it superseded:

- db/ (engine.go, badger_test.go) and storage/ (vector.go,
  vectorStore.go, simpleVectorStore.go): the legacy brute-force engine
  cluster, plus cmd/main.go, its only demo consumer. The public
  vectormath.CosineSimilarityMany batch API the old engine called is
  kept (benchmarked, documented SIMD core API).
- scratchpad.go: throwaway package-main experiment at the repo root.
- pkg/types: unused float64 MathVector type and its methods
  (NewMathVector, Dot, Magnitude, CosineSimilarity), plus the package
  Log var that existed only for MathVector's warning path.
- mempool: MemPool.Search and calculateSimilarity (byte-wise cosine)
  had no callers anywhere; also drop their private support decls
  (SearchResult, Block, ErrInvalidK, ErrInvalidDataType). The rest of
  the mempool/LRU cache is untouched.
- Docs: drop the db/, storage/ entries from the README project tree
  and CLAUDE.md architecture overview; reword the two db/engine.go
  references in README and docs/simd-benchmark-report.md.

go mod tidy is a no-op: every dependency of the removed code is still
used by live code.

Verified: CGO_ENABLED=1 and CGO_ENABLED=0 go test ./... pass,
go vet ./... and go build ./... clean, gofmt -l . empty.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Ishaan29
Ishaan29 merged commit f701b6d into main Jul 13, 2026
10 checks passed
Ishaan29 added a commit that referenced this pull request Jul 15, 2026
chore: sync CONTEXT.md with merged PRs #6-#8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant