Commit Graph

161 Commits

Author SHA1 Message Date
Zihao Wang d29bffca39
fix(quantizer): use rounded int8 values for SQ8 metadata to fix recall drop (#329)
fixes #328

Problem:
SQ8 metadata (squared_sum, sum) was computed from pre-rounded float
values, causing mismatch with actual stored int8 values. On asymmetric
datasets (e.g. OpenAI 1536D where |x_min| >> x_max), this leads to
severe recall drop.

Solution:
Move std::round before accumulating squared_sum and sum.

Co-authored-by: rayx <rui.xing@alibaba-inc.com>
2026-04-16 10:07:14 +08:00
feihongxu0824 6737810190
ci: refact android ci (#330) 2026-04-15 15:37:51 +08:00
Qinren Zhou 044a377eee
fix: crash recovery ut (#336) 2026-04-14 23:35:51 +08:00
Songqing Zhang 56ff00be82
fix: remove redundant Python-side vector index type validation in create_index (#297) 2026-04-14 21:56:56 +08:00
Jalin Wang 09f93c5869
fix: skip drive root in Windows MakePath (#337)
CreateDirectoryA("C:", nullptr) returns ERROR_ACCESS_DENIED on Windows
(not ERROR_ALREADY_EXISTS), causing MakePath to fail immediately for any
path on the C: drive. Skip the CreateDirectoryA call when the intermediate
path is a bare drive root (e.g. "C:").
2026-04-14 19:01:37 +08:00
dependabot[bot] 8f2d0e30a1
ci(deps): bump actions/github-script from 8 to 9 (#334)
Bumps [actions/github-script](https://github.com/actions/github-script) from 8 to 9.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v8...v9)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-version: '9'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-13 11:18:35 +08:00
feihongxu0824 41822413f3
fix: enhance ios ci (#332) 2026-04-10 18:10:30 +08:00
ZeFeng Yin 725519516d
Ci: fix coverage (#331) 2026-04-10 11:37:24 +08:00
feihongxu0824 30a20e14b0
feat: add iOS build support (#321)
* support ios build

* fix: ci

* fix: update build_ios.sh

* fix: pr

* fix: cmake minimum version

* fix: cmake minimum version

* fix: cmake minimum version in ci

* fix: add all test in ci

* fix: ci
2026-04-09 16:14:26 +08:00
dependabot[bot] eec0526650
ci(deps): bump android-actions/setup-android from 3 to 4 (#280)
Bumps [android-actions/setup-android](https://github.com/android-actions/setup-android) from 3 to 4.
- [Release notes](https://github.com/android-actions/setup-android/releases)
- [Commits](https://github.com/android-actions/setup-android/compare/v3...v4)

---
updated-dependencies:
- dependency-name: android-actions/setup-android
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ZeFeng Yin <yinzefeng.yzf@alibaba-inc.com>
Co-authored-by: feihongxu0824 <xufeihong.xfh@alibaba-inc.com>
2026-04-07 19:23:28 +08:00
dependabot[bot] 544fd1075e
ci(deps): bump kentaro-m/auto-assign-action from 2.0.0 to 2.0.2 (#278)
Bumps [kentaro-m/auto-assign-action](https://github.com/kentaro-m/auto-assign-action) from 2.0.0 to 2.0.2.
- [Release notes](https://github.com/kentaro-m/auto-assign-action/releases)
- [Commits](https://github.com/kentaro-m/auto-assign-action/compare/v2.0.0...v2.0.2)

---
updated-dependencies:
- dependency-name: kentaro-m/auto-assign-action
  dependency-version: 2.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ZeFeng Yin <yinzefeng.yzf@alibaba-inc.com>
Co-authored-by: feihongxu0824 <xufeihong.xfh@alibaba-inc.com>
2026-04-07 19:23:04 +08:00
dependabot[bot] cd3070bb0d
ci(deps): bump actions/github-script from 7 to 8 (#276)
Bumps [actions/github-script](https://github.com/actions/github-script) from 7 to 8.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v7...v8)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ZeFeng Yin <yinzefeng.yzf@alibaba-inc.com>
Co-authored-by: feihongxu0824 <xufeihong.xfh@alibaba-inc.com>
2026-04-07 19:22:29 +08:00
feihongxu0824 8df962171f
chore: clang format collection.cc (#319) 2026-04-07 14:10:33 +08:00
feihongxu0824 1c90b57e17
chore: fix some error message (#306) 2026-04-07 10:17:18 +08:00
dependabot[bot] 7647c06e7b
ci(deps): bump actions/download-artifact from 4 to 8 (#317)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v8)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-07 10:01:46 +08:00
dependabot[bot] ed37abdaa8
ci(deps): bump actions/upload-artifact from 4 to 7 (#318)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-07 10:01:16 +08:00
Jalin Wang 305786ca60
doc: add v0.3.0 release note (#312) 2026-04-03 15:47:19 +08:00
Jalin Wang ae13e9541b
fix(ci): wrong wheel version on Windows (#308)
use first-time setuptools-scm detected version to avoid leftover dir incfluence subsequent wheel version detection
2026-04-03 14:51:35 +08:00
Jalin Wang 2cb1a146fb
fix(ci): fix wheel version detection & windows wheel ci (#303) 2026-04-02 22:26:00 +08:00
Qinren Zhou b6f2d4367d
fix: fix python type annotations (#307) 2026-04-02 20:03:15 +08:00
feihongxu0824 3a9893ef31
chore: update codeowners (#269) 2026-04-02 16:12:07 +08:00
lichen2015 6ac9bb0177
fix: refact c struct name (#302) 2026-04-02 14:54:03 +08:00
ZeFeng Yin e2b0903fa5
fix: hnsw_streamer_test ut (#299) 2026-04-02 11:40:10 +08:00
Jalin Wang ca4b893755
fix: misc fix for Windows(BUILD_SHARED_LIBS, CI) (#296) 2026-04-02 09:23:35 +08:00
lichen2015 7af6a31ae8
fix: c api ut crash on window platform (#298)
* fix c api ut

* remove c query_by_group
2026-04-01 15:46:15 +08:00
feihongxu0824 dc8d1a586e
ci: ignore draft or wip pull request (#285) 2026-03-31 20:33:35 +08:00
lichen2015 ed8c010cfd
feat: add c language support (#167)
* init branch

Add GitHub Actions release workflow for C API

add release linux-arm64

remove c api version

refact some code

add api reference

* feat(c-api): add nullable/doc-result APIs for agency migration (#234)


* Flattened index parameters structure

* refact c api code

* remove RAII guard

* refact use opaque pointer pattern

* refact version info

* refact use pure opaque pointers

* use typedef instead of enum

* fix set_last_error

* fix build yml

* fix doc.h

* remove wheel exclude

* fix c msvc link

* remove release yml

* fix c link libstdc++

* fix c link libgcc

---------

Co-authored-by: Donny/강동윤 <kdy.1997.dev@gmail.com>
2026-03-31 18:00:08 +08:00
Jalin Wang 8182cfff93
feat: windows support (#216)
Preliminary support for Windows with remaining TODOs
2026-03-30 20:47:34 +08:00
dependabot[bot] cef9fbf2ab
ci(deps): bump codecov/codecov-action from 5 to 6 (#279)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5 to 6.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-30 10:02:07 +08:00
dependabot[bot] b92c0a1a25
ci(deps): bump actions/checkout from 4 to 6 (#277)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-30 10:00:20 +08:00
Qinren Zhou c8df06ab3e
fix: build on mac (#272) 2026-03-27 20:11:22 +08:00
Cuiys e5e1923462
Update WeChat QR code version in README (#273) 2026-03-27 18:05:43 +08:00
Qinren Zhou cbe9ece72a
minor: rewrite some log messages (#265) 2026-03-27 16:35:32 +08:00
liututu12 4e8829704a
test: Add test cases for field values in Chinese scenarios to open and dml (#264) 2026-03-26 19:42:27 +08:00
Qinren Zhou e26976bb2b
minor: update readme for twitter (#261) 2026-03-25 13:52:40 +08:00
Cuiys a2bf77c364
docs: update readme for support py313&314 (#260) 2026-03-25 10:15:18 +08:00
Qinren Zhou ae345ad070
fix: recovery from crash during optimization (#246) 2026-03-24 10:53:16 +08:00
feihongxu0824 209ef1fba8
ci: add issue auto assign workflow (#254) 2026-03-24 09:32:13 +08:00
feihongxu0824 c23ef686f3
ci: add macos-26-arm64 workflow (#253) 2026-03-23 21:57:48 +08:00
rayx 31aaa2febb
feat: add euclidean one2many (#188)
* add euclidean one2many implementation
2026-03-23 20:20:48 +08:00
feihongxu0824 22cb3cc4b5
ci: auto pr assign by CODEOWNERS (#249)
* ci: auto pr assign by CODEOWNERS

* fix

* Update .github/workflows/community-pr-handler.yml

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update .github/workflows/auto-assign.yml

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* add python owners

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-03-23 19:59:34 +08:00
egolearner cca16341c0
build: use PROJECT_ROOT_DIR to fix build as submodule (#250) 2026-03-23 14:49:17 +08:00
egolearner 0489b8e598
build: add clang ci (#214)
* build: add clang ci

* add lscpu

* add clang ci

* install libomp-dev

* address comments
2026-03-23 09:54:35 +08:00
rayx b49833bf56
Refactor/add scalar dist function and setup cmake with detailed cpu flag (#238)
* fix: add scalar

* fix: add avx512fp16

* fix: cmake config
2026-03-20 09:53:48 +08:00
egolearner e5ba11b6fe
feat: add hnsw-rabitq support (#69)
* feat: add hnsw-rabitq

* undefine transform

* support config rotator type

* support sample_count

* fix ut

* refactor: update interface

* refactor: update interface

* update rabitq index params

* fix interface update

* fix searcher test

* fix streamer test

* streamer support bf and add more ut

* rm env check

* add collection ut

* add schema check

* add rabitq query param binding

* add integration test

* fix local_builder

* cleanup dist calculator

* add RaBitQ-Library submodule

* cleanup rabitq converter/reformer

* add files

* disable build on mac

* disable Feature_Optimize_HNSW_RABITQ

* disable python/tests/test_collection_hnsw_rabitq.py:13

* check avx2/avx512

* fix refine

* fix mac ci

* add dimension check

* fix mac ci

* fix ci

* add missing lib

* fix centroids selection for Cosine/InnerProduct

* rename hnsw-rabitq to hnsw_rabitq

* address comments

* fix compile

* fix rabitqlib name

* fix mac compile

* check avx2/avx512 support

* runtime check again compile-time

* check AUTO_DETECT_ARCH

* rm debug log

* fix

* rabitq use avx2 by default

* add missing file

* fix search_bf/group_by dist

* address comments

* fix typo

* address comments

* rabitq support disable id_map

* address comments
2026-03-19 17:21:42 +08:00
ZeFeng Yin 432de52c5f
[enhance] buffer storage (#83) 2026-03-19 15:24:46 +08:00
rayx d4ffbf06af
fix: fix metric batch (#245) 2026-03-19 13:39:10 +08:00
feihongxu0824 bb167a836c
chore: update readme ci badge (#242) 2026-03-18 20:54:29 +08:00
luoxiaojian 840bcdad26
feat: Introduce turbo. (#243) 2026-03-18 20:43:18 +08:00
feihongxu0824 363f970da8
chore: android ci needs lint first (#240) 2026-03-18 16:16:49 +08:00