Knowhere is the C++ vector search library used by Milvus. Public interfaces live in
include/knowhere/, index implementations in src/index/, and unit tests in tests/ut/.
Maintain project instructions in this file and task-specific guidance in .agents/skills/.
CLAUDE.md imports this file. Read task-specific guidance through the skill links below,
and edit the shared files so agents receive the same guidance.
Read the relevant skill before working on its topic:
| Topic | Skill |
|---|---|
| Source layout, index implementations, dependencies | architecture |
| Build configuration and compiler errors | building |
| Running and adding tests | testing |
| Index performance optimization and benchmarks | index-optimization |
| Formatting and static analysis | code-quality |
| Commits, PR titles, DCO, and labels | git-workflow |
- Run commands from the repository root. Use
make helpfor build options. - Build CPU unit tests with
make WITH_UT=True; the default executable isbuild/Release/tests/ut/knowhere_tests. Select relevant tests by name or Catch2 tag. - Follow
.clang-format: Google C++ style, 120-column limit, four-space indentation. Runpre-commit run --files <changed-files>before committing. - Verify commands and supported features against the current
Makefile,conanfile.py, CMake files, index registrations, and tests. Update skill guidance when those sources change. - Keep changes scoped and preserve unrelated local work. Report the checks actually run and any validation still pending. Follow the user's requested boundary for committing, pushing, and creating PRs.
Keep CLAUDE.md as an @AGENTS.md import. Add new skills under .agents/skills/
and update the table above. Keep relative references inside a skill with that skill.