A lightweight, lightning-fast, in-process vector database
This report presents the forensic synthetic code analysis of alibaba/zvec, a C++ project with 14,877 GitHub stars. SynthScan v2.0 examined 177,571 lines of code across 633 source files, recording 1675 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 12.2 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1675 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 181 | COMPONENT python) | 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/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_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 |
| LOW | python/tests/test_reranker.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| LOW | python/tests/test_schema.py | 1 | # Copyright 2025-present the zvec project | COMMENT |
| 603 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | python/zvec/__init__.py | 51 | # ============================== | COMMENT |
| MEDIUM⚡ | python/zvec/__init__.py | 53 | # ============================== | COMMENT |
| MEDIUM⚡ | python/zvec/__init__.py | 144 | # ============================== | COMMENT |
| MEDIUM⚡ | python/zvec/__init__.py | 146 | # ============================== | COMMENT |
| MEDIUM⚡ | python/zvec/__init__.py | 226 | # ============================== | COMMENT |
| MEDIUM⚡ | python/zvec/__init__.py | 228 | # ============================== | COMMENT |
| MEDIUM | python/tests/test_query_executor.py | 42 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_query_executor.py | 44 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_query_executor.py | 56 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_query_executor.py | 58 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_typing.py | 27 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_typing.py | 29 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_typing.py | 124 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_typing.py | 126 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_vamana.py | 67 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | python/tests/test_vamana.py | 69 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | python/tests/test_vamana.py | 139 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | python/tests/test_vamana.py | 141 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_vamana.py | 352 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_vamana.py | 354 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 192 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 194 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 200 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 202 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 309 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 311 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 413 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 415 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 422 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 424 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 583 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 585 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 750 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 752 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 803 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 805 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 870 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | python/tests/test_collection.py | 872 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_collection.py | 216 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_collection.py | 218 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_collection.py | 455 | # ---------------------------- | COMMENT |
| MEDIUM | python/tests/test_collection.py | 457 | # ---------------------------- | 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 |
| 84 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | python/zvec/model/collection.py | 46 | 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 | 45 | def hnsw_rabitq_collection_schema(): | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 130 | def collection_with_single_doc( | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 148 | def collection_with_multiple_docs( | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 185 | def test_vector_schema_validation(self, hnsw_rabitq_collection: Collection): | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 226 | def test_insert_multiple_docs( | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 273 | def test_fetch_nonexistent_doc(self, collection_with_single_doc: Collection): | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 317 | def test_query_with_different_ef_values( | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 379 | def test_query_with_output_fields( | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 399 | def test_query_with_include_vector( | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 486 | def test_delete_multiple_docs( | CODE |
| LOW | python/tests/test_collection_hnsw_rabitq.py | 504 | def test_optimize_close_reopen_and_query( | CODE |
| LOW | python/tests/test_query_executor.py | 155 | def test_isinstance_compatibility(self): | CODE |
| LOW | python/tests/test_query_executor.py | 195 | def test_properties_with_weighted_reranker(self): | CODE |
| LOW | python/tests/test_query_executor.py | 210 | def test_properties_with_callback_reranker(self): | CODE |
| LOW | python/tests/test_query_executor.py | 230 | def test_do_build_without_queries(self): | CODE |
| LOW | python/tests/test_query_executor.py | 241 | def test_do_build_query_wo_vector(self): | CODE |
| LOW⚡ | python/tests/test_query_executor.py | 252 | def test_do_merge_rerank_results_single_without_reranker(self): | CODE |
| LOW⚡ | python/tests/test_query_executor.py | 262 | def test_do_merge_rerank_results_empty(self): | CODE |
| LOW⚡ | python/tests/test_query_executor.py | 271 | def test_do_merge_rerank_results_with_reranker(self): | CODE |
| LOW | python/tests/test_query_executor.py | 288 | def test_execute_python_pipeline(self): | CODE |
| LOW | python/tests/test_query_executor.py | 304 | def test_build_search_query_by_missing_id_raises_value_error(self): | CODE |
| LOW | python/tests/test_query_executor.py | 317 | def test_build_search_query_validates_query(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 | 59 | def test_metric_type_has_member(member): | CODE |
| LOW⚡ | python/tests/test_typing.py | 90 | def test_data_type_has_member(member): | CODE |
| LOW⚡ | python/tests/test_typing.py | 95 | def test_index_type_has_member(member): | CODE |
| LOW⚡ | python/tests/test_typing.py | 100 | def test_quantize_type_has_member(member): | CODE |
| LOW⚡ | python/tests/test_typing.py | 120 | def test_status_code_has_member(member): | CODE |
| LOW | python/tests/test_vamana.py | 180 | def test_to_dict_includes_all_fields(self): | CODE |
| LOW | python/tests/test_vamana.py | 202 | def test_repr_contains_key_fields(self): | CODE |
| LOW | python/tests/test_vamana.py | 299 | def test_repr_contains_key_fields(self): | CODE |
| LOW⚡ | python/tests/test_vamana.py | 344 | def test_index_type_enum_member(self): | CODE |
| LOW | python/tests/test_vamana.py | 400 | def test_insert_and_query_self_recall( | CODE |
| LOW | python/tests/test_vamana.py | 432 | def test_query_param_ef_search_affects_only_quality( | CODE |
| LOW⚡ | python/tests/test_collection.py | 301 | def test_create_index_field_is_not_exist(self, test_collection: Collection): | CODE |
| LOW⚡ | python/tests/test_collection.py | 588 | def test_empty_collection_update( | CODE |
| LOW⚡ | python/tests/test_collection.py | 755 | def test_empty_collection_upsert(self, test_collection: Collection, single_doc): | CODE |
| LOW⚡ | python/tests/test_collection.py | 764 | def test_empty_collection_upsert_batch( | CODE |
| LOW⚡ | python/tests/test_collection.py | 808 | def test_empty_collection_delete(self, test_collection: Collection, single_doc): | CODE |
| LOW⚡ | python/tests/test_collection.py | 813 | def test_empty_collection_delete_batch( | CODE |
| 315 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 | 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 | 70 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 73 | CODE | |
| LOW | python/zvec/__init__.py | 93 | CODE | |
| LOW | python/zvec/__init__.py | 94 | CODE | |
| LOW | python/zvec/__init__.py | 97 | CODE | |
| LOW | python/zvec/__init__.py | 98 | CODE | |
| LOW | python/zvec/__init__.py | 98 | CODE | |
| LOW | python/zvec/__init__.py | 98 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 102 | CODE | |
| LOW | python/zvec/__init__.py | 124 | CODE | |
| LOW | python/zvec/__init__.py | 124 | CODE | |
| LOW | python/zvec/__init__.py | 124 | CODE | |
| LOW | python/zvec/__init__.py | 127 | CODE | |
| LOW | python/zvec/__init__.py | 127 | CODE | |
| LOW | python/zvec/__init__.py | 127 | CODE | |
| LOW | python/zvec/__init__.py | 127 | CODE | |
| LOW | python/zvec/__init__.py | 130 | CODE | |
| 207 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 | 191 | 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 | 228 | 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 | 394 | Perform vector similarity search with optional filtering and re-ranking. At least one `Query` must be provided | STRING |
| HIGH | python/zvec/model/collection.py | 458 | 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 | 29 | 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 | 46 | except Exception: | CODE |
| LOW⚡ | python/zvec/__init__.py | 238 | 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 | 211 | except Exception as e: | CODE |
| MEDIUM | python/zvec/model/schema/collection_schema.py | 203 | def __repr__(self) -> str: | CODE |
| LOW | python/zvec/model/schema/field_schema.py | 173 | except Exception as e: | CODE |
| LOW | python/zvec/model/schema/field_schema.py | 298 | except Exception as e: | CODE |
| MEDIUM | python/zvec/model/schema/field_schema.py | 169 | def __repr__(self) -> str: | CODE |
| MEDIUM | python/zvec/model/schema/field_schema.py | 294 | 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 | 125 | 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 | 151 | 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 | 154 | 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 | 410 | def create_collection_thread(thread_id): | CODE |
| MEDIUM | python/tests/detail/test_collection_create_and_open.py | 583 | def open_collection_thread(thread_id): | CODE |
| LOW | python/tests/detail/test_collection_create_and_open.py | 419 | except Exception as e: | CODE |
| LOW | python/tests/detail/test_collection_create_and_open.py | 593 | 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 |
| LOW | python/tests/detail/test_collection_concurrency.py | 248 | 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/detail/test_collection_create_and_open.py | 530 | # Create a temporary directory and path for the collection | COMMENT |
| MEDIUM | python/tests/detail/test_collection_create_and_open.py | 562 | # Create the collection first | COMMENT |
| MEDIUM | .github/workflows/_build_wheel_job.yml | 96 | # 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 |
| 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 |
| 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/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 | 111 | 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 | 425 | CODE | |
| LOW | python/tests/detail/test_collection_dml.py | 480 | CODE | |
| LOW | python/tests/detail/fixture_helper.py | 145 | CODE | |
| LOW | python/tests/detail/fixture_helper.py | 364 | 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 | 147 | __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 | 25 | __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 | 43 | __all__ = ["Collection"] | CODE |
| LOW | python/zvec/model/param/query.py | 23 | __all__ = ["Fts", "Query", "VectorQuery"] | CODE |
| LOW | python/zvec/model/param/__init__.py | 39 | __all__ = [ | CODE |
| LOW | python/zvec/model/schema/collection_schema.py | 23 | __all__ = [ | CODE |
| LOW | python/zvec/model/schema/__init__.py | 21 | __all__ = ["CollectionSchema", "CollectionStats", "FieldSchema", "VectorSchema"] | CODE |
| LOW | python/zvec/model/schema/field_schema.py | 30 | __all__ = [ | CODE |
| LOW | python/zvec/executor/__init__.py | 21 | __all__ = [ | CODE |
| LOW | python/zvec/executor/query_executor.py | 30 | __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 |
|---|---|---|---|---|
| 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 |