A lightweight, lightning-fast, in-process vector database
This report summarizes scanner evidence for alibaba/zvec, a C++ project with 16,092 GitHub stars. SynthScan examined 200,745 lines of code across 805 source files, recording 1934 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 12.2 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1408 finding(s).
Are imports declared and package/API names verified? 280 finding(s).
Are wrappers, guards, and repeated structures necessary? 679 finding(s).
Which changes need focused human review? 1934 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1934 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 281 | # DiskAnn is now statically linked into _zvec.so via --whole-archive | COMMENT |
| LOW | tools/core/helper.h | 1 | // Copyright 2025-present the zvec project | COMMENT |
| LOW | tools/core/helper.h | 21 | #include <ailego/parallel/lock.h> | COMMENT |
| LOW | tools/core/helper.h | 41 | #pragma clang diagnostic ignored "-Wshadow" | COMMENT |
| LOW | tools/core/index_meta_helper.h | 1 | // Copyright 2025-present the zvec project | COMMENT |
| LOW | tools/core/vecs_common.h | 1 | // Copyright 2025-present the zvec project | COMMENT |
| LOW | tools/core/filter_result_cache.h | 1 | // Copyright 2025-present the zvec project | COMMENT |
| LOW | tools/core/bench_result.h | 1 | // Copyright 2025-present the zvec project | COMMENT |
| LOW | tools/core/flow.h | 1 | // Copyright 2025-present the zvec project | COMMENT |
| LOW | tools/core/txt_input_reader.h | 1 | // Copyright 2025-present the zvec project | COMMENT |
| LOW | tools/core/vecs_reader.h | 1 | // Copyright 2025-present the zvec project | COMMENT |
| LOW | tools/core/meta_segment_common.h | 1 | // Copyright 2025-present the zvec project | COMMENT |
| LOW | tools/core/vecs_index_holder.h | 1 | // Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/__init__.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/zvec.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/extension/jina_function.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/extension/sentence_transformer_function.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/extension/qwen_rerank_function.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/extension/openai_function.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/extension/jina_embedding_function.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/extension/qwen_embedding_function.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/extension/multi_vector_reranker.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | …zvec/extension/sentence_transformer_rerank_function.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/extension/qwen_function.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/extension/__init__.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/extension/http_embedding_function.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/extension/rerank_function.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/extension/openai_embedding_function.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | …c/extension/sentence_transformer_embedding_function.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/extension/embedding_function.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/extension/bm25_embedding_function.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/typing/__init__.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/typing/enum.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/common/constants.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/common/__init__.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/model/convert.py | 1 | # Licensed under the Apache License, Version 2.0 (the "License"); | COMMENT |
| LOW | python/zvec/model/__init__.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/model/_validation.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/model/doc.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/model/collection.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/model/param/query.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/model/param/__init__.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/model/schema/collection_schema.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/model/schema/__init__.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/model/schema/field_schema.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/executor/__init__.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/executor/query_executor.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/tool/util.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/zvec/tool/__init__.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/tests/test_collection_fts.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/tests/test_turbo_hnsw_int8.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/tests/test_query_executor.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/tests/test_collection_group_by.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/tests/test_gil_release.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/tests/test_typing.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/tests/test_vamana.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/tests/test_collection.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/tests/test_collection_fts_vector_hybrid.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/tests/test_util.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| 789 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | python/zvec/__init__.py | 53 | # ============================== | COMMENT |
| MEDIUM⚡ | python/zvec/__init__.py | 55 | # ============================== | COMMENT |
| MEDIUM⚡ | python/zvec/__init__.py | 134 | # ============================== | COMMENT |
| MEDIUM⚡ | python/zvec/__init__.py | 136 | # ============================== | COMMENT |
| MEDIUM⚡ | python/zvec/__init__.py | 213 | # ============================== | COMMENT |
| MEDIUM⚡ | python/zvec/__init__.py | 215 | # ============================== | COMMENT |
| MEDIUM | python/tests/test_query_executor.py | 43 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_query_executor.py | 45 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_query_executor.py | 57 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_query_executor.py | 59 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_typing.py | 31 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_typing.py | 33 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_typing.py | 186 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_typing.py | 188 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_vamana.py | 67 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | python/tests/test_vamana.py | 69 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | python/tests/test_vamana.py | 145 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | python/tests/test_vamana.py | 147 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_vamana.py | 420 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_vamana.py | 422 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 194 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 196 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 202 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 204 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 311 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 313 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 415 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 417 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 424 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 426 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 585 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 587 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 752 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 754 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 805 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 807 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 872 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 874 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_collection.py | 218 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_collection.py | 220 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_collection.py | 457 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_collection.py | 459 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_convert.py | 11 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_convert.py | 13 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_convert.py | 394 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_convert.py | 396 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_util.py | 22 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_util.py | 24 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_reranker.py | 35 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_reranker.py | 37 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_reranker.py | 146 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_reranker.py | 148 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_reranker.py | 439 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_reranker.py | 441 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_reranker.py | 68 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_reranker.py | 70 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_reranker.py | 106 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_reranker.py | 108 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_schema.py | 29 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_schema.py | 31 | # ---------------------------- | COMMENT |
| 81 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | python/zvec/model/collection.py | 50 | def _require_positive_integer(value, name: str) -> None: | CODE |
| LOW | python/tests/test_collection_fts.py | 102 | def test_create_and_open_without_vectors(self, fts_collection: Collection): | CODE |
| LOW | python/tests/test_collection_fts.py | 110 | def test_create_schema_omitting_vectors_kwarg(self): | CODE |
| LOW | python/tests/test_collection_fts.py | 128 | def test_insert_and_fts_query(self, fts_collection: Collection): | CODE |
| LOW | python/tests/test_collection_fts.py | 154 | def test_optimize_rebuilds_fts(self, fts_collection: Collection): | CODE |
| LOW | python/tests/test_collection_fts.py | 173 | def test_vector_query_rejected(self, fts_collection: Collection): | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 47 | def hnsw_rabitq_collection_schema(): | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 132 | def collection_with_single_doc( | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 150 | def collection_with_multiple_docs( | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 187 | def test_vector_schema_validation(self, hnsw_rabitq_collection: Collection): | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 228 | def test_insert_multiple_docs( | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 275 | def test_fetch_nonexistent_doc(self, collection_with_single_doc: Collection): | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 319 | def test_query_with_different_ef_values( | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 381 | def test_query_with_output_fields( | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 401 | def test_query_with_include_vector( | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 488 | def test_delete_multiple_docs( | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 506 | def test_optimize_close_reopen_and_query( | CODE |
| LOW | python/tests/test_query_executor.py | 156 | def test_isinstance_compatibility(self): | CODE |
| LOW | python/tests/test_query_executor.py | 196 | def test_properties_with_weighted_reranker(self): | CODE |
| LOW | python/tests/test_query_executor.py | 211 | def test_properties_with_callback_reranker(self): | CODE |
| LOW | python/tests/test_query_executor.py | 231 | def test_do_build_without_queries(self): | CODE |
| LOW | python/tests/test_query_executor.py | 242 | def test_do_build_query_wo_vector(self): | CODE |
| LOW⚡ | python/tests/test_query_executor.py | 253 | def test_do_merge_rerank_results_single_without_reranker(self): | CODE |
| LOW⚡ | python/tests/test_query_executor.py | 263 | def test_do_merge_rerank_results_empty(self): | CODE |
| LOW⚡ | python/tests/test_query_executor.py | 272 | def test_do_merge_rerank_results_with_reranker(self): | CODE |
| LOW | python/tests/test_query_executor.py | 289 | def test_execute_python_pipeline(self): | CODE |
| LOW | python/tests/test_query_executor.py | 312 | def test_execute_single_query_batch_materializes(self): | CODE |
| LOW | python/tests/test_query_executor.py | 332 | def test_build_search_query_by_missing_id_raises_value_error(self): | CODE |
| LOW | python/tests/test_query_executor.py | 345 | def test_build_search_query_validates_query(self): | CODE |
| LOW | python/tests/test_query_executor.py | 359 | def test_build_search_query_preserves_fts_text(self): | CODE |
| LOW | python/tests/test_collection_group_by.py | 46 | def group_by_collection_schema(): | CODE |
| LOW | python/tests/test_collection_group_by.py | 139 | def group_by_collection_with_docs( | CODE |
| LOW | python/tests/test_collection_group_by.py | 234 | def test_group_by_with_filter(self, group_by_collection: Collection): | CODE |
| LOW | python/tests/test_collection_group_by.py | 250 | def test_group_by_include_vector(self, group_by_collection: Collection): | CODE |
| LOW | python/tests/test_collection_group_by.py | 267 | def test_group_by_output_fields(self, group_by_collection: Collection): | CODE |
| LOW | python/tests/test_collection_group_by.py | 282 | def test_group_by_invalid_field(self, group_by_collection: Collection): | CODE |
| LOW | python/tests/test_collection_group_by.py | 290 | def test_group_by_query_by_id(self, group_by_collection: Collection): | CODE |
| LOW | python/tests/test_collection_group_by.py | 306 | def test_group_by_rejects_unsupported_query( | CODE |
| LOW | python/tests/test_collection_group_by.py | 323 | def test_group_by_rejects_invalid_group_params( | CODE |
| LOW | python/tests/test_collection_group_by.py | 334 | def test_group_by_empty_collection(self, group_by_collection: Collection): | CODE |
| LOW | python/tests/test_collection_group_by.py | 345 | def test_group_by_public_api_exports(): | CODE |
| LOW | python/tests/test_gil_release.py | 86 | def test_gil_released_during_query(self, gil_test_collection: Collection): | CODE |
| LOW | python/tests/test_gil_release.py | 187 | def test_parallel_queries_correctness(self, gil_test_collection: Collection): | CODE |
| LOW | python/tests/test_gil_release.py | 224 | def test_thread_safety_concurrent_queries(self, gil_test_collection: Collection): | CODE |
| LOW | python/tests/test_gil_release.py | 252 | def test_concurrent_fetch_release_gil(self, gil_test_collection: Collection): | CODE |
| LOW | python/tests/test_typing.py | 75 | def test_metric_type_has_member(member): | CODE |
| LOW | python/tests/test_typing.py | 107 | def test_data_type_has_member(member): | CODE |
| LOW⚡ | python/tests/test_typing.py | 126 | def test_index_type_has_member(member): | CODE |
| LOW⚡ | python/tests/test_typing.py | 133 | def test_io_backend_type_has_member(member): | CODE |
| LOW⚡ | python/tests/test_typing.py | 137 | def test_current_io_backend_type(): | CODE |
| LOW | python/tests/test_typing.py | 162 | def test_quantize_type_has_member(member): | CODE |
| LOW⚡ | python/tests/test_typing.py | 182 | def test_status_code_has_member(member): | CODE |
| LOW | python/tests/test_vamana.py | 195 | def test_to_dict_includes_all_fields(self): | CODE |
| LOW | python/tests/test_vamana.py | 223 | def test_repr_contains_key_fields(self): | CODE |
| LOW⚡ | python/tests/test_vamana.py | 347 | def test_zero_prefetch_values_are_preserved(self): | CODE |
| LOW⚡ | python/tests/test_vamana.py | 352 | def test_prefetch_fields_can_override_defaults_independently(self): | CODE |
| LOW⚡ | python/tests/test_vamana.py | 361 | def test_repr_contains_key_fields(self): | CODE |
| LOW | python/tests/test_vamana.py | 396 | def test_default_prefetch_pickle_roundtrip(self): | CODE |
| LOW⚡ | python/tests/test_vamana.py | 412 | def test_index_type_enum_member(self): | CODE |
| LOW | python/tests/test_vamana.py | 470 | def test_insert_and_query_self_recall( | CODE |
| 372 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/core/convert_cohere_parquet.py | 1 | CODE | |
| LOW | python/zvec/__init__.py | 15 | CODE | |
| LOW | python/zvec/__init__.py | 57 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 60 | CODE | |
| LOW | python/zvec/__init__.py | 80 | CODE | |
| LOW | python/zvec/__init__.py | 81 | CODE | |
| LOW | python/zvec/__init__.py | 84 | CODE | |
| LOW | python/zvec/__init__.py | 85 | CODE | |
| LOW | python/zvec/__init__.py | 85 | CODE | |
| LOW | python/zvec/__init__.py | 85 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 89 | CODE | |
| LOW | python/zvec/__init__.py | 113 | CODE | |
| LOW | python/zvec/__init__.py | 113 | CODE | |
| LOW | python/zvec/__init__.py | 113 | CODE | |
| LOW | python/zvec/__init__.py | 116 | CODE | |
| LOW | python/zvec/__init__.py | 116 | CODE | |
| LOW | python/zvec/__init__.py | 116 | CODE | |
| LOW | python/zvec/__init__.py | 116 | CODE | |
| LOW | python/zvec/__init__.py | 119 | CODE | |
| LOW | python/zvec/__init__.py | 120 | CODE | |
| LOW | python/zvec/__init__.py | 120 | CODE | |
| LOW | python/zvec/__init__.py | 120 | CODE | |
| LOW | python/zvec/__init__.py | 120 | CODE | |
| LOW | python/zvec/__init__.py | 120 | CODE | |
| 214 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | python/zvec/zvec.py | 45 | Initialize Zvec with configuration options. This function must be called before any other operation. It can onl | STRING |
| HIGH | python/zvec/zvec.py | 192 | Create a new collection and open it for use. If a collection already exists at the given path, it may raise an erro | STRING |
| HIGH | python/zvec/zvec.py | 229 | Open an existing collection from disk. The collection must have been previously created with ``create_and_open``. | STRING |
| HIGH | python/zvec/extension/jina_function.py | 130 | Call Jina Embeddings API. Args: input (TEXT): Input text to embed. dimension (Optional[ | STRING |
| HIGH | python/zvec/extension/qwen_rerank_function.py | 106 | Re-rank documents using Qwen's TextReRank API. Sends document texts to DashScope TextReRank service along with | STRING |
| HIGH | python/zvec/extension/openai_function.py | 101 | Call OpenAI Embeddings API. Args: input (TEXT): Input text to embed. dimension (Optiona | STRING |
| HIGH | python/zvec/extension/jina_embedding_function.py | 25 | Dense text embedding function using Jina AI API. This class provides text-to-vector embedding capabilities using Ji | STRING |
| HIGH | python/zvec/extension/jina_embedding_function.py | 176 | Generate dense embedding vector for the input text. This method calls the Jina Embeddings API to convert input | STRING |
| HIGH | python/zvec/extension/qwen_embedding_function.py | 25 | Dense text embedding function using Qwen (DashScope) API. This class provides text-to-vector embedding capabilities | STRING |
| HIGH | python/zvec/extension/qwen_embedding_function.py | 183 | Generate dense embedding vector for the input text. This method calls the DashScope TextEmbedding API to conver | STRING |
| HIGH | python/zvec/extension/qwen_embedding_function.py | 273 | Sparse text embedding function using Qwen (DashScope) API. This class provides text-to-sparse-vector embedding capa | STRING |
| HIGH | python/zvec/extension/qwen_embedding_function.py | 426 | Generate sparse embedding vector for the input text. This method calls the DashScope TextEmbedding API with spa | STRING |
| HIGH | …zvec/extension/sentence_transformer_rerank_function.py | 28 | Re-ranker using Sentence Transformer cross-encoder models for semantic re-ranking. This re-ranker leverages pre-tra | STRING |
| HIGH | …zvec/extension/sentence_transformer_rerank_function.py | 288 | Re-rank documents using Sentence Transformer cross-encoder model. Evaluates each query-document pair using the | STRING |
| HIGH | python/zvec/extension/qwen_function.py | 93 | Call DashScope TextEmbedding API. Args: input (TEXT): Input text to embed. dimension (i | STRING |
| HIGH | python/zvec/extension/qwen_function.py | 147 | Call DashScope TextReRank API. Args: query (str): Query text for semantic matching. doc | STRING |
| HIGH | python/zvec/extension/http_embedding_function.py | 27 | Dense text embedding function using any OpenAI-compatible HTTP endpoint. This class calls any server that implement | STRING |
| HIGH | python/zvec/extension/http_embedding_function.py | 110 | Generate a dense embedding vector for the input text. Results are cached (LRU, up to 256 entries) so repeated s | STRING |
| HIGH | python/zvec/extension/openai_embedding_function.py | 25 | Dense text embedding function using OpenAI API. This class provides text-to-vector embedding capabilities using Ope | STRING |
| HIGH | python/zvec/extension/openai_embedding_function.py | 127 | Initialize the OpenAI dense embedding function. Args: model (str): OpenAI model name. Defaults to " | STRING |
| HIGH | python/zvec/extension/openai_embedding_function.py | 175 | Generate dense embedding vector for the input text. This method calls the OpenAI Embeddings API to convert inpu | STRING |
| HIGH | …c/extension/sentence_transformer_embedding_function.py | 28 | Default local dense embedding using all-MiniLM-L6-v2 model. This is the default implementation for dense text embed | STRING |
| HIGH | …c/extension/sentence_transformer_embedding_function.py | 215 | Generate dense embedding vector for the input text. This method uses the Sentence Transformer model to convert | STRING |
| HIGH | …c/extension/sentence_transformer_embedding_function.py | 314 | Default local sparse embedding using SPLADE model. This class provides sparse vector embedding using the SPLADE (SP | STRING |
| HIGH | …c/extension/sentence_transformer_embedding_function.py | 561 | Remove a specific model from cache. Args: model_source (str): Model source ("huggingface" or "model | STRING |
| HIGH | …c/extension/sentence_transformer_embedding_function.py | 597 | Initialize with SPLADE model. Args: model_source (Literal["huggingface", "modelscope"]): Model sour | STRING |
| HIGH | …c/extension/sentence_transformer_embedding_function.py | 669 | Generate sparse embedding vector for the input text. This method uses the SPLADE model to convert input text in | STRING |
| HIGH | python/zvec/extension/embedding_function.py | 89 | Abstract base class for sparse vector embedding functions. Sparse embedding functions map multimodal input (text, i | STRING |
| HIGH | python/zvec/extension/bm25_embedding_function.py | 25 | BM25-based sparse embedding function using DashText SDK. This class provides text-to-sparse-vector embedding capabi | STRING |
| HIGH | python/zvec/extension/bm25_embedding_function.py | 288 | Generate BM25 sparse embedding for the input text. This method computes BM25 scores for the input text using Da | STRING |
| HIGH | python/zvec/model/collection.py | 472 | Iterate over all documents in the collection. Streams documents one by one using an isolated snapshot taken at | STRING |
| HIGH | python/zvec/model/collection.py | 523 | Perform vector similarity search with optional filtering and re-ranking. At least one `Query` must be provided | STRING |
| HIGH | python/zvec/model/collection.py | 588 | Perform group-by vector search. Groups results by a scalar field value, returning the top-k documents w | STRING |
| HIGH | python/zvec/model/schema/collection_schema.py | 30 | Defines the structure of a collection in Zvec. A collection schema specifies the name of the collection and its fie | STRING |
| HIGH | python/zvec/tool/util.py | 21 | Import a Python module and raise a user-friendly error if it is not available. This utility helps provide actionabl | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/core/convert_cohere_parquet.py | 92 | except Exception: | CODE |
| LOW⚡ | python/zvec/__init__.py | 48 | except Exception: | CODE |
| LOW⚡ | python/zvec/__init__.py | 225 | except Exception: | CODE |
| LOW | python/zvec/extension/jina_function.py | 160 | except Exception as e: | CODE |
| LOW | python/zvec/extension/sentence_transformer_function.py | 136 | except Exception as e: | CODE |
| LOW | python/zvec/extension/openai_function.py | 127 | except Exception as e: | CODE |
| MEDIUM | python/zvec/extension/qwen_embedding_function.py | 126 | ... print(f"Error: {e}") | STRING |
| MEDIUM | python/zvec/extension/qwen_embedding_function.py | 378 | ... print(f"Error: {e}") | STRING |
| LOW | …zvec/extension/sentence_transformer_rerank_function.py | 260 | except Exception as e: | CODE |
| LOW | …zvec/extension/sentence_transformer_rerank_function.py | 378 | except Exception as e: | CODE |
| LOW | python/zvec/extension/qwen_function.py | 122 | except Exception as e: | CODE |
| LOW | python/zvec/extension/qwen_function.py | 169 | except Exception as e: | CODE |
| MEDIUM | python/zvec/extension/openai_embedding_function.py | 109 | ... print(f"Error: {e}") | STRING |
| MEDIUM | …c/extension/sentence_transformer_embedding_function.py | 145 | ... print(f"Error: {e}") | STRING |
| LOW | …c/extension/sentence_transformer_embedding_function.py | 305 | except Exception as e: | CODE |
| MEDIUM | …c/extension/sentence_transformer_embedding_function.py | 471 | ... print(f"Error: {e}") | STRING |
| LOW | …c/extension/sentence_transformer_embedding_function.py | 755 | except Exception as e: | CODE |
| MEDIUM | python/zvec/extension/bm25_embedding_function.py | 153 | ... print(f"Error: {e}") | STRING |
| LOW | python/zvec/extension/bm25_embedding_function.py | 250 | except Exception as e: | CODE |
| LOW | python/zvec/extension/bm25_embedding_function.py | 372 | except Exception as e: | CODE |
| LOW | python/zvec/model/doc.py | 147 | except Exception as e: | CODE |
| MEDIUM | python/zvec/model/doc.py | 138 | def __repr__(self) -> str: | CODE |
| LOW | python/zvec/model/schema/collection_schema.py | 216 | except Exception as e: | CODE |
| MEDIUM | python/zvec/model/schema/collection_schema.py | 208 | def __repr__(self) -> str: | CODE |
| LOW | python/zvec/model/schema/field_schema.py | 180 | except Exception as e: | CODE |
| LOW | python/zvec/model/schema/field_schema.py | 321 | except Exception as e: | CODE |
| MEDIUM | python/zvec/model/schema/field_schema.py | 176 | def __repr__(self) -> str: | CODE |
| MEDIUM | python/zvec/model/schema/field_schema.py | 317 | def __repr__(self) -> str: | CODE |
| LOW | python/tests/test_collection_fts.py | 75 | except Exception as e: | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 127 | except Exception as e: | CODE |
| LOW | python/tests/test_collection_group_by.py | 134 | except Exception as e: | CODE |
| LOW | python/tests/test_gil_release.py | 79 | except Exception: | CODE |
| LOW | python/tests/test_gil_release.py | 239 | except Exception as e: | CODE |
| LOW | python/tests/test_gil_release.py | 262 | except Exception as e: | CODE |
| MEDIUM | python/tests/test_gil_release.py | 230 | def worker(thread_id): | CODE |
| MEDIUM | python/tests/test_gil_release.py | 257 | def worker(thread_id): | CODE |
| LOW | python/tests/test_collection.py | 153 | except Exception as e: | CODE |
| LOW | python/tests/test_collection_fts_vector_hybrid.py | 82 | except Exception as e: | CODE |
| LOW | python/tests/test_collection_diskann.py | 146 | except Exception as e: | CODE |
| LOW | python/tests/test_iter_docs.py | 65 | except Exception as e: | CODE |
| LOW | python/tests/test_jieba_default_dict.py | 114 | except Exception as e: | CODE |
| MEDIUM | python/tests/detail/test_collection_dql.py | 1328 | def insert_operation(thread_id): | CODE |
| MEDIUM | python/tests/detail/test_collection_dql.py | 1339 | def update_operation(thread_id): | CODE |
| MEDIUM | python/tests/detail/test_collection_dql.py | 1350 | def upsert_operation(thread_id): | CODE |
| MEDIUM | python/tests/detail/test_collection_dql.py | 1361 | def query_operation(thread_id): | CODE |
| MEDIUM | python/tests/detail/test_collection_dql.py | 1378 | def delete_operation(thread_id): | CODE |
| LOW | python/tests/detail/test_collection_dql.py | 1336 | except Exception as e: | CODE |
| LOW | python/tests/detail/test_collection_dql.py | 1347 | except Exception as e: | CODE |
| LOW | python/tests/detail/test_collection_dql.py | 1358 | except Exception as e: | CODE |
| LOW | python/tests/detail/test_collection_dql.py | 1375 | except Exception as e: | CODE |
| LOW | python/tests/detail/test_collection_dql.py | 1388 | except Exception as e: | CODE |
| MEDIUM | python/tests/detail/test_collection_create_and_open.py | 423 | def create_collection_thread(thread_id): | CODE |
| MEDIUM | python/tests/detail/test_collection_create_and_open.py | 596 | def open_collection_thread(thread_id): | CODE |
| LOW | python/tests/detail/test_collection_create_and_open.py | 432 | except Exception as e: | CODE |
| LOW | python/tests/detail/test_collection_create_and_open.py | 606 | except Exception as e: | CODE |
| LOW | python/tests/detail/test_collection_concurrency.py | 86 | except Exception as e: | CODE |
| LOW | python/tests/detail/test_collection_concurrency.py | 112 | except Exception as e: | CODE |
| LOW | python/tests/detail/test_collection_concurrency.py | 119 | except Exception as e: | CODE |
| LOW | python/tests/detail/test_collection_concurrency.py | 176 | except Exception as e: | CODE |
| LOW | python/tests/detail/test_collection_concurrency.py | 238 | except Exception as e: | CODE |
| 16 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | python/zvec/extension/jina_embedding_function.py | 145 | # Initialize base class for API connection | COMMENT |
| MEDIUM | python/zvec/extension/qwen_embedding_function.py | 160 | # Initialize base class for API connection | COMMENT |
| MEDIUM | python/zvec/extension/qwen_embedding_function.py | 409 | # Initialize base class for API connection | COMMENT |
| MEDIUM | …zvec/extension/sentence_transformer_rerank_function.py | 189 | # Initialize base class for model loading | COMMENT |
| MEDIUM | python/zvec/extension/openai_embedding_function.py | 141 | # Initialize base class for API connection | COMMENT |
| MEDIUM | …c/extension/sentence_transformer_embedding_function.py | 185 | # Initialize base class for model loading | COMMENT |
| MEDIUM | …c/extension/sentence_transformer_embedding_function.py | 645 | # Initialize base class for model loading | COMMENT |
| MEDIUM | python/tests/test_embedding.py | 941 | # Create a normalized vector | COMMENT |
| MEDIUM | python/tests/test_embedding.py | 1258 | # Create a mock sparse matrix that simulates scipy.sparse behavior | COMMENT |
| MEDIUM | python/tests/test_embedding.py | 1262 | # Create a dense array representation with vocab_size=30522 | COMMENT |
| MEDIUM | python/tests/test_embedding.py | 1369 | # Create a mock sparse matrix | COMMENT |
| MEDIUM | python/tests/test_embedding.py | 1372 | # Create a dense array representation with vocab_size=30522 | COMMENT |
| MEDIUM | python/tests/test_embedding.py | 1472 | # Create a mock sparse matrix that simulates scipy.sparse behavior | COMMENT |
| MEDIUM | python/tests/test_embedding.py | 1476 | # Create a dense array representation with vocab_size=30522 | COMMENT |
| MEDIUM | python/tests/test_embedding.py | 1545 | # Create a dense array representation with vocab_size=30522 | COMMENT |
| MEDIUM | python/tests/test_iter_docs.py | 254 | # Create the iterator but do not consume it yet. | COMMENT |
| MEDIUM | python/tests/detail/test_collection_create_and_open.py | 543 | # Create a temporary directory and path for the collection | COMMENT |
| MEDIUM | python/tests/detail/test_collection_create_and_open.py | 575 | # Create the collection first | COMMENT |
| MEDIUM | .github/workflows/_build_wheel_job.yml | 165 | # Create a clean venv and install | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | python/zvec/extension/jina_embedding_function.py | 0 | int: the expected dimensionality of the embedding vector. | STRING |
| HIGH | python/zvec/extension/qwen_embedding_function.py | 0 | int: the expected dimensionality of the embedding vector. | STRING |
| HIGH | python/zvec/extension/openai_embedding_function.py | 0 | int: the expected dimensionality of the embedding vector. | STRING |
| HIGH | …c/extension/sentence_transformer_embedding_function.py | 0 | int: the expected dimensionality of the embedding vector. | STRING |
| HIGH | python/zvec/extension/jina_embedding_function.py | 0 | dict: extra parameters for model-specific customization. | STRING |
| HIGH | python/zvec/extension/qwen_embedding_function.py | 0 | dict: extra parameters for model-specific customization. | STRING |
| HIGH | python/zvec/extension/openai_embedding_function.py | 0 | dict: extra parameters for model-specific customization. | STRING |
| HIGH | …c/extension/sentence_transformer_embedding_function.py | 0 | dict: extra parameters for model-specific customization. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 630 | # Step 2: Create index | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 638 | # Step 3: Insert doc | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 699 | # Step 6: Fetch doc | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 707 | # Step 7: Query doc | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 711 | # Step 8: Drop index | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 714 | # Step 9: Insert doc | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 759 | # Step 12: Fetch doc | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 767 | # Step 13: Query doc | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 771 | # Step 14: Flush | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 778 | # Step 15: Destroy | COMMENT |
| LOW | python/tests/detail/test_collection_ddl.py | 618 | # Step 1: Create collection | COMMENT |
| LOW | python/tests/detail/test_collection_ddl.py | 653 | # Step 4: Upsert (existing doc) | COMMENT |
| LOW | python/tests/detail/test_collection_ddl.py | 668 | # Step 5: Update doc | COMMENT |
| LOW | python/tests/detail/test_collection_ddl.py | 729 | # Step 10: Update doc | COMMENT |
| LOW | python/tests/detail/test_collection_ddl.py | 744 | # Step 11: Upsert doc | COMMENT |
| LOW⚡ | .github/workflows/release.yml | 22 | # Step 1: Build prebuilt libraries for all platforms | COMMENT |
| LOW⚡ | .github/workflows/release.yml | 31 | # Step 2: Create release and upload prebuilt libraries | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 630 | # Step 2: Create index | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 638 | # Step 3: Insert doc | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 699 | # Step 6: Fetch doc | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 707 | # Step 7: Query doc | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 711 | # Step 8: Drop index | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 714 | # Step 9: Insert doc | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 759 | # Step 12: Fetch doc | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 767 | # Step 13: Query doc | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 771 | # Step 14: Flush | COMMENT |
| LOW⚡ | python/tests/detail/test_collection_ddl.py | 778 | # Step 15: Destroy | COMMENT |
| LOW | python/tests/detail/test_collection_ddl.py | 618 | # Step 1: Create collection | COMMENT |
| LOW | python/tests/detail/test_collection_ddl.py | 653 | # Step 4: Upsert (existing doc) | COMMENT |
| LOW | python/tests/detail/test_collection_ddl.py | 668 | # Step 5: Update doc | COMMENT |
| LOW | python/tests/detail/test_collection_ddl.py | 729 | # Step 10: Update doc | COMMENT |
| LOW | python/tests/detail/test_collection_ddl.py | 744 | # Step 11: Upsert doc | COMMENT |
| LOW⚡ | .github/workflows/release.yml | 22 | # Step 1: Build prebuilt libraries for all platforms | COMMENT |
| LOW⚡ | .github/workflows/release.yml | 31 | # Step 2: Create release and upload prebuilt libraries | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | python/zvec/__init__.py | 48 | except Exception: | CODE |
| HIGH | python/tests/test_gil_release.py | 79 | except Exception: | CODE |
| HIGH | python/tests/detail/test_collection_open.py | 1029 | except Exception as e: | CODE |
| HIGH | python/tests/detail/test_collection_open.py | 1004 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …c/extension/sentence_transformer_embedding_function.py | 760 | CODE | |
| LOW | python/zvec/extension/bm25_embedding_function.py | 287 | CODE | |
| LOW | python/tests/test_refine_query_params.py | 109 | CODE | |
| LOW | python/tests/detail/test_collection_dql.py | 107 | CODE | |
| LOW | python/tests/detail/test_collection_dql.py | 178 | CODE | |
| LOW | python/tests/detail/test_collection_dql.py | 232 | CODE | |
| LOW | python/tests/detail/test_collection_dql.py | 732 | CODE | |
| LOW | python/tests/detail/test_collection_ddl.py | 70 | CODE | |
| LOW | python/tests/detail/test_collection_ddl.py | 195 | CODE | |
| LOW | python/tests/detail/test_collection_ddl.py | 997 | CODE | |
| LOW | python/tests/detail/test_collection_concurrency.py | 344 | CODE | |
| LOW | python/tests/detail/test_collection_concurrency.py | 365 | CODE | |
| LOW | python/tests/detail/test_collection_recall.py | 210 | CODE | |
| LOW | python/tests/detail/test_collection_open.py | 177 | CODE | |
| LOW | python/tests/detail/doc_helper.py | 47 | CODE | |
| LOW | python/tests/detail/doc_helper.py | 111 | CODE | |
| LOW | python/tests/detail/doc_helper.py | 175 | CODE | |
| LOW | python/tests/detail/doc_helper.py | 263 | CODE | |
| LOW | python/tests/detail/doc_helper.py | 367 | CODE | |
| LOW | python/tests/detail/test_collection_dml.py | 429 | CODE | |
| LOW | python/tests/detail/test_collection_dml.py | 484 | CODE | |
| LOW | python/tests/detail/fixture_helper.py | 128 | CODE | |
| LOW | python/tests/detail/fixture_helper.py | 346 | CODE | |
| LOW | python/tests/detail/distance_helper.py | 295 | CODE | |
| LOW | python/tests/detail/distance_helper.py | 340 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | python/zvec/__init__.py | 137 | __all__ = [ | CODE |
| LOW | python/zvec/zvec.py | 24 | __all__ = ["create_and_open", "init", "open"] | CODE |
| LOW | python/zvec/extension/__init__.py | 36 | __all__ = [ | CODE |
| LOW | python/zvec/typing/__init__.py | 26 | __all__ = [ | CODE |
| LOW | python/zvec/typing/enum.py | 18 | __all__ = ["LogLevel", "LogType"] | CODE |
| LOW | python/zvec/common/__init__.py | 18 | __all__ = ["DenseVectorType", "SparseVectorType", "VectorType"] | CODE |
| LOW | python/zvec/model/__init__.py | 22 | __all__ = [ | CODE |
| LOW | python/zvec/model/doc.py | 22 | __all__ = [ | CODE |
| LOW | python/zvec/model/collection.py | 47 | __all__ = ["Collection"] | CODE |
| LOW | python/zvec/model/param/query.py | 30 | __all__ = ["Fts", "Query", "VectorQuery"] | CODE |
| LOW | python/zvec/model/param/__init__.py | 41 | __all__ = [ | CODE |
| LOW | python/zvec/model/schema/collection_schema.py | 24 | __all__ = [ | CODE |
| LOW | python/zvec/model/schema/__init__.py | 21 | __all__ = ["CollectionSchema", "CollectionStats", "FieldSchema", "VectorSchema"] | CODE |
| LOW | python/zvec/model/schema/field_schema.py | 33 | __all__ = [ | CODE |
| LOW | python/zvec/executor/__init__.py | 21 | __all__ = [ | CODE |
| LOW | python/zvec/executor/query_executor.py | 29 | __all__ = [ | CODE |
| LOW | python/zvec/tool/__init__.py | 18 | __all__ = ["require_module"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | python/zvec/extension/qwen_rerank_function.py | 59 | ... api_key="your-api-key" | STRING |
| HIGH | python/zvec/extension/qwen_embedding_function.py | 83 | >>> os.environ["DASHSCOPE_API_KEY"] = "your-api-key" | STRING |
| HIGH | python/zvec/extension/qwen_embedding_function.py | 334 | >>> os.environ["DASHSCOPE_API_KEY"] = "your-api-key" | STRING |
| HIGH | python/tests/test_reranker.py | 348 | export DASHSCOPE_API_KEY=your-api-key | STRING |
| HIGH⚡ | python/tests/test_embedding.py | 145 | export DASHSCOPE_API_KEY=your-api-key | STRING |
| HIGH | python/tests/test_embedding.py | 494 | export DASHSCOPE_API_KEY=your-api-key | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | python/zvec/extension/jina_function.py | 161 | # Check if it's an OpenAI API error | COMMENT |
| LOW | python/zvec/extension/sentence_transformer_function.py | 149 | # Check if model has sparse encoding methods | COMMENT |
| LOW | python/zvec/extension/openai_function.py | 128 | # Check if it's an OpenAI API error | COMMENT |
| LOW | …c/extension/sentence_transformer_embedding_function.py | 730 | # Check if it's a sparse matrix (duck typing - has toarray method) | COMMENT |
| LOW⚡ | python/tests/test_reranker.py | 429 | # Print results for manual verification (useful during development) | COMMENT |
| LOW | python/tests/test_reranker.py | 941 | # Print results for manual verification (useful during development) | COMMENT |
| LOW | python/tests/test_embedding.py | 958 | # Check if vector is normalized (L2 norm should be close to 1.0) | COMMENT |
| LOW | python/tests/detail/distance_helper.py | 31 | # Check if they have the same keys | COMMENT |
| LOW | python/tests/detail/distance_helper.py | 35 | # Check if all values are close | COMMENT |
| LOW | .github/workflows/build_wheel_on_windows.yml | 210 | # Check if version is empty | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | .github/workflows/clang_tidy.yml | 94 | # Auto-generated code is exempt from clang-tidy and must not be edited. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/build_android.sh | 8 | # Usage: | COMMENT |
| LOW | scripts/generate_standard_tokenizer_unicode.py | 5 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | python/zvec/zvec.py | 29 | CODE |