• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Stevenic / vectra / 26368506539
96%

Build:
DEFAULT BRANCH: main
Ran 24 May 2026 05:52PM UTC
Jobs 1
Files 31
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 May 2026 05:52PM UTC coverage: 95.962% (+2.2%) from 93.763%
26368506539

push

github

web-flow
Stevenic/perf improvements (#124)

* perf improvements

* perf and bug fixes

 array.

  3. Batch chunk removal in deleteDocument (src/LocalDocumentIndex.ts:180)
  Added a new public LocalIndex.deleteItems(ids: Iterable<string>) that does a single filter pass. deleteDocument now uses it instead of looping deleteItem
  per chunk, taking M-chunk deletion from O(N·M) to O(N).

  4. Parallel external metadata loads in queryItems (src/LocalIndex.ts:354)
  Top-K metadata file reads now run concurrently via Promise.all.

  Tests: 7 new tests (deleteItems batch behavior + shallow snapshot semantics) plus one existing test updated to stub the new code path. 130/130 pass, lint
  and build clean.

  Docs: docs/changelog.md and docs/api-reference.md updated.

  Fix: addItemToUpdate now includes norm: newItem.norm in the upsert replacement (src/LocalIndex.ts:495). Previously, upserting a new vector kept the old
  norm, which would skew cosine-similarity rankings until the next insertItem of the same id (which isn't allowed — unique=true throws on duplicate). So in
  practice the stale norm could persist indefinitely on any upsertItem that changed the vector.

  Test: new case in beginUpdate shallow snapshot proves the norm is recomputed (insert [3,4] → norm 5, upsert [6,8] → norm 10).

* version bump

* bug fixes and better coverage

947 of 1036 branches covered (91.41%)

Branch coverage included in aggregate %.

118 of 121 new or added lines in 5 files covered. (97.52%)

1905 of 1936 relevant lines covered (98.4%)

33.25 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
97.03
-1.24% src/LocalIndex.ts
1
92.95
11.59% src/FolderWatcher.ts
Jobs
ID Job ID Ran Files Coverage
1 26368506539.1 24 May 2026 05:52PM UTC 31
95.96
GitHub Action Run
Source Files on build 26368506539
  • Tree
  • List 31
  • Changed 8
  • Source Changed 5
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26368506539
  • 7052e739 on github
  • Prev Build on main (#26335207186)
  • Next Build on main (#26370044991)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc