Repository Analysis

StarTrail-org/LEANN

[MLsys2026]: RAG on Everything with LEANN. Enjoy 97% storage savings while running a fast, accurate, and 100% private RAG application on your personal device.

21.5 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of StarTrail-org/LEANN, a Python project with 12,678 GitHub stars. SynthScan v2.0 examined 74,054 lines of code across 239 source files, recording 1254 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 21.5 places this repository in the Moderate 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).

21.5
Adjusted Score
21.5
Raw Score
100%
Time Factor
2026-07-03
Last Push
12.7K
Stars
Python
Language
74.1K
Lines of Code
239
Files
1.3K
Pattern Hits
2026-07-14
Scan Date
0.04
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 10MEDIUM 145LOW 1099

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 1254 distinct pattern matches across 20 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.

Excessive Try-Catch Wrapping386 hits · 414 pts
SeverityFileLineSnippetContext
LOWtests/test_mcp_integration.py202 except Exception as e:CODE
LOWtests/test_mcp_standalone.py212 except Exception as e:CODE
LOWtests/test_prompt_template_e2e.py201 except Exception as e:CODE
LOWtests/test_prompt_template_e2e.py299 except Exception as e:CODE
LOWtests/test_prompt_template_e2e.py44 except Exception:CODE
LOWtests/test_prompt_template_e2e.py55 except Exception:CODE
LOWtests/test_prompt_template_e2e.py66 except Exception:CODE
LOWtests/test_prompt_template_e2e.py78 except Exception:CODE
LOWtests/test_prompt_template_e2e.py245 except Exception as e:CODE
LOWtests/test_prompt_template_e2e.py267 except Exception as e:CODE
LOWtests/test_prompt_template_e2e.py333 except Exception as e:CODE
LOWtests/test_prompt_template_e2e.py390 except Exception as e:CODE
LOWtests/support/fake_embedding_server_module.py49 except Exception:CODE
LOWdocs/code/embedding_model_compare.py81except Exception as e:CODE
LOWdocs/code/embedding_model_compare.py91except Exception as e:CODE
LOWexamples/spoiler_free_book_rag.py189 except Exception as e:CODE
LOWexamples/spoiler_free_book_rag.py237 except Exception as e:CODE
LOWexamples/spoiler_free_book_rag.py249 except Exception as e:CODE
LOWbenchmarks/run_evaluation.py58 except Exception as e:CODE
MEDIUMbenchmarks/run_evaluation.py59 print(f"An error occurred during data download: {e}")CODE
LOWbenchmarks/run_evaluation.py95 except Exception as e:CODE
MEDIUMbenchmarks/run_evaluation.py96 print(f"Error downloading embeddings: {e}")CODE
LOWbenchmarks/run_evaluation.py385 except Exception as e:CODE
LOWbenchmarks/micro_tpt.py224 except Exception as e:CODE
LOWbenchmarks/micro_tpt.py419 except Exception as e:CODE
LOWbenchmarks/micro_tpt.py487 except Exception as e:CODE
MEDIUMbenchmarks/micro_tpt.py488 print(f"Error during inference: {e}")CODE
LOWbenchmarks/micro_tpt.py651 except Exception as e:CODE
LOWbenchmarks/compare_faiss_vs_leann.py91 except Exception as e:CODE
LOWbenchmarks/llm_utils.py234 except Exception as e:CODE
LOWbenchmarks/llm_utils.py253 except Exception as e2:CODE
LOWbenchmarks/simple_mac_tpt_test.py54 except Exception as e:CODE
MEDIUMbenchmarks/simple_mac_tpt_test.py55 print(f"Error loading MLX model: {e}")CODE
LOWbenchmarks/simple_mac_tpt_test.py81 except Exception as e:CODE
LOWbenchmarks/simple_mac_tpt_test.py107 except Exception as e:CODE
LOWbenchmarks/simple_mac_tpt_test.py117 except Exception as e:CODE
MEDIUMbenchmarks/simple_mac_tpt_test.py118 print(f"Error during MLX inference: {e}")CODE
LOWbenchmarks/simple_mac_tpt_test.py212 except Exception as e:CODE
MEDIUMbenchmarks/simple_mac_tpt_test.py213 print(f"Error during inference: {e}")CODE
LOWbenchmarks/simple_mac_tpt_test.py260 except Exception as e:CODE
LOWbenchmarks/simple_mac_tpt_test.py297 except Exception as e:CODE
LOWbenchmarks/diskann_vs_hnsw_speed_comparison.py24except Exception:CODE
LOWbenchmarks/diskann_vs_hnsw_speed_comparison.py130 except Exception as e:CODE
LOWbenchmarks/diskann_vs_hnsw_speed_comparison.py265 except Exception as e:CODE
LOWbenchmarks/diskann_vs_hnsw_speed_comparison.py279 except Exception:CODE
LOWbenchmarks/diskann_vs_hnsw_speed_comparison.py281 except Exception:CODE
LOWbenchmarks/faiss_only.py98 except Exception as e:CODE
LOWbenchmarks/financebench/evaluate_financebench.py444 except Exception as e:CODE
LOWbenchmarks/financebench/evaluate_financebench.py500 except Exception as e:CODE
LOWbenchmarks/financebench/evaluate_financebench.py858 except Exception as e:CODE
LOWbenchmarks/financebench/evaluate_financebench.py919 except Exception as e:CODE
LOWbenchmarks/financebench/setup_financebench.py83 except Exception as e:CODE
LOWbenchmarks/financebench/setup_financebench.py166 except Exception as e:CODE
LOWbenchmarks/financebench/setup_financebench.py367 except Exception as e:CODE
LOWbenchmarks/financebench/setup_financebench.py456 except Exception as e:CODE
LOWbenchmarks/update/bench_update_vs_offline_search.py418 except Exception as _e:CODE
LOWbenchmarks/update/bench_update_vs_offline_search.py549 except Exception:CODE
LOWbenchmarks/update/plot_bench_results.py182 except Exception as e:CODE
LOWbenchmarks/update/plot_bench_results.py203 except Exception:CODE
LOWbenchmarks/update/plot_bench_results.py214 except Exception:CODE
326 more matches not shown…
Hyper-Verbose Identifiers406 hits · 407 pts
SeverityFileLineSnippetContext
LOWtests/test_document_rag.py23def test_document_rag_simulated(test_data_dir):CODE
LOWtests/test_document_rag.py64def test_document_rag_with_ast_chunking(test_data_dir):CODE
LOWtests/test_document_rag.py150def test_document_rag_error_handling(test_data_dir):CODE
LOWtests/test_cli_ask.py7def test_cli_ask_accepts_positional_query(tmp_path, monkeypatch):CODE
LOWtests/test_cli_ask.py20def test_cli_ask_parses_metadata_filters_flag():CODE
LOWtests/test_cli_ask.py38def test_cli_ask_metadata_filters_default_is_none():CODE
LOWtests/test_cli_ask.py47def test_cli_ask_rejects_invalid_metadata_filters_json(tmp_path, monkeypatch, capsys):CODE
LOWtests/test_cli_ask.py65def test_cli_ask_rejects_non_object_metadata_filters(tmp_path, monkeypatch, capsys):CODE
LOWtests/test_embedding_server_manager.py92def test_server_restarts_when_metadata_changes(tmp_path, embedding_manager):CODE
LOWtests/test_embedding_server_manager.py146def test_list_daemons_ignores_stale_records(tmp_path, monkeypatch):CODE
LOWtests/test_embedding_server_manager.py169def test_stop_daemons_filters_by_backend_and_passages(tmp_path, monkeypatch):CODE
LOWtests/test_embedding_server_manager.py220def test_daemon_registry_reuse_across_manager_instances(tmp_path, monkeypatch):CODE
LOWtests/test_embedding_server_manager.py266def test_stale_registry_falls_back_to_fresh_start(tmp_path, monkeypatch):CODE
LOWtests/test_embedding_server_manager.py323def test_build_server_command_includes_daemon_and_warmup_flags():CODE
LOWtests/test_embedding_server_manager.py351def test_corrupted_registry_file_is_recovered_on_start(tmp_path, monkeypatch):CODE
LOWtests/test_embedding_server_manager.py393def test_stop_server_detaches_when_daemon_mode(monkeypatch):CODE
LOWtests/test_embedding_server_manager.py417def test_concurrent_daemon_start_only_spawns_once(tmp_path, monkeypatch):CODE
LOWtests/test_embedding_server_manager.py462def test_registry_record_write_is_atomic(tmp_path, monkeypatch):CODE
LOWtests/test_embedding_server_manager.py492def test_different_passages_files_start_separate_daemons(tmp_path, monkeypatch):CODE
LOWtests/test_embedding_server_manager.py581def test_same_passages_file_reuses_existing_daemon(tmp_path, monkeypatch):CODE
LOWtests/test_embedding_server_manager.py627def test_stale_lock_info_removed_when_pid_dead(tmp_path, monkeypatch):CODE
LOWtests/test_hybrid_search.py91 def test_hybrid_search_balanced(self, sample_index):CODE
LOWtests/test_hybrid_search.py104 def test_hybrid_search_vector_heavy(self, sample_index):CODE
LOWtests/test_hybrid_search.py119 def test_hybrid_search_keyword_heavy(self, sample_index):CODE
LOWtests/test_hybrid_search.py136 def test_hybrid_search_score_combination(self, sample_index):CODE
LOWtests/test_hybrid_search.py154 def test_hybrid_search_with_metadata_filters(self, sample_index):CODE
LOWtests/test_prompt_template_persistence.py47 def test_prompt_template_saved_to_metadata(self, temp_index_dir, mock_embeddings):CODE
LOWtests/test_prompt_template_persistence.py100 def test_prompt_template_absent_when_not_provided(self, temp_index_dir, mock_embeddings):CODE
LOWtests/test_prompt_template_persistence.py158 def test_search_without_template_in_metadata(self, temp_index_dir, mock_embeddings):CODE
LOWtests/test_prompt_template_persistence.py214 def test_search_auto_loads_query_template(self, temp_index_dir, mock_compute_embeddings):CODE
LOWtests/test_prompt_template_persistence.py270 def test_search_backward_compat_single_template(self, temp_index_dir, mock_compute_embeddings):CODE
LOWtests/test_prompt_template_persistence.py316 def test_search_backward_compat_no_template(self, temp_index_dir, mock_compute_embeddings):CODE
LOWtests/test_prompt_template_persistence.py362 def test_search_override_via_provider_options(self, temp_index_dir, mock_compute_embeddings):CODE
LOWtests/test_prompt_template_persistence.py436 def mock_embedding_server_manager(self):CODE
LOWtests/test_prompt_template_persistence.py485 def test_prompt_template_metadata_with_embedding_modes(CODE
LOWtests/test_prompt_template_persistence.py578 def test_query_template_applied_in_fallback_path(self, temp_index_with_template):CODE
LOWtests/test_prompt_template_persistence.py636 def test_query_template_applied_in_server_path(self, temp_index_with_template):CODE
LOWtests/test_prompt_template_persistence.py675 def mock_ensure_server_running(passages_file, port, **kwargs):CODE
LOWtests/test_prompt_template_persistence.py678 def mock_compute_embedding_via_server(chunks, port):CODE
LOWtests/test_prompt_template_persistence.py697 def test_query_template_without_template_parameter(self, temp_index_with_template):CODE
LOWtests/test_prompt_template_persistence.py750 def test_query_template_consistency_between_paths(self, temp_index_with_template):CODE
LOWtests/test_prompt_template_persistence.py806 def mock_ensure_server_running(passages_file, port, **kwargs):CODE
LOWtests/test_prompt_template_persistence.py809 def mock_compute_embedding_via_server(chunks, port):CODE
LOWtests/test_prompt_template_persistence.py828 def test_query_template_with_empty_string(self, temp_index_with_template):CODE
LOWtests/test_embedding_prompt_template.py51 def test_prompt_template_prepended_to_all_texts(self, mock_openai_module, mock_openai_client):CODE
LOWtests/test_embedding_prompt_template.py91 def test_template_not_applied_when_missing_or_empty(CODE
LOWtests/test_embedding_prompt_template.py160 def test_prompt_template_with_multiple_batches(self, mock_openai_module, mock_openai_client):CODE
LOWtests/test_embedding_prompt_template.py252 def test_prompt_template_with_special_characters(self, mock_openai_module, mock_openai_client):CODE
LOWtests/test_embedding_prompt_template.py279 def test_prompt_template_integration_with_existing_validation(CODE
LOWtests/test_embedding_prompt_template.py301 def test_prompt_template_with_api_key_and_base_url(CODE
LOWtests/test_sync.py11 def test_no_changes_if_root_hash_same(self):CODE
LOWtests/test_sync.py24 def test_added_removed_modified(self):CODE
LOWtests/test_sync.py59 def test_generate_file_hashes(self):CODE
LOWtests/test_sync.py67 def test_generate_file_hashes_skips_binary_extensions(self):CODE
LOWtests/test_sync.py81 def test_generate_file_hashes_explicit_files_only(self):CODE
LOWtests/test_sync.py118 def test_check_for_changes_detected(self):CODE
LOWtests/test_sync.py142 def test_touch_no_false_positive(self):CODE
LOWtests/test_embedding_server_manager_e2e.py8def _configure_fake_module_env(monkeypatch):CODE
LOWtests/test_embedding_server_manager_e2e.py25def test_daemon_reuse_with_real_subprocess(tmp_path, monkeypatch):CODE
LOWtests/test_embedding_server_manager_e2e.py64def test_daemon_ttl_expiry_with_real_subprocess(tmp_path, monkeypatch):CODE
346 more matches not shown…
Modern AI Meta-Vocabulary47 hits · 150 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md232## RAG on Everything!COMMENT
MEDIUMREADME.md369LEANN_EMBEDDING_DEVICE # GPU for embedding model (e.g., cuda:0, cuda:1, cpu)CODE
MEDIUMREADME.md440# Or use the specialized code RAG for better code understandingCOMMENT
MEDIUMREADME.md494### 📧 Your Personal Email Secretary: RAG on Apple Mail!COMMENT
MEDIUMREADME.md539### 🔍 Time Machine for the Web: RAG Your Entire Chrome Browser History!COMMENT
MEDIUMREADME.md894### MCP Integration: RAG on Live Data from Any PlatformCOMMENT
MEDIUMCLAUDE.md83### RAG Applications (`apps/`)COMMENT
MEDIUMCLAUDE.md142# Document RAG (easiest to test)COMMENT
MEDIUMCLAUDE.md145# Code RAGCOMMENT
MEDIUMtests/test_prompt_template_e2e.py207 # Get any available embedding modelCOMMENT
MEDIUMtests/test_prompt_template_e2e.py310 # Get any available embedding modelCOMMENT
MEDIUMtests/test_prompt_template_e2e.py162 # Get any available embedding modelCOMMENT
MEDIUMtests/test_prompt_template_e2e.py367 # Get any available embedding modelCOMMENT
MEDIUMdocs/metadata_filtering.md221# Run the spoiler-free book RAG exampleCOMMENT
MEDIUMdocs/THINKING_BUDGET_FEATURE.md24# RAG ExamplesCOMMENT
MEDIUMdocs/THINKING_BUDGET_FEATURE.md98### RAG ExamplesCOMMENT
MEDIUMdocs/THINKING_BUDGET_FEATURE.md100# Email RAG with high reasoningCOMMENT
MEDIUMdocs/THINKING_BUDGET_FEATURE.md103# Document RAG with medium reasoningCOMMENT
MEDIUMdocs/slack-setup-guide.md155### 5.3 Real RAG Query ExamplesCOMMENT
MEDIUMdocs/configuration-guide.md64# First, pull an embedding modelCOMMENT
MEDIUMdocs/ast_chunking_guide.md82### Document RAG with Code SupportCOMMENT
MEDIUMdocs/ast_chunking_guide.md85# Enable code chunking in document RAGCOMMENT
MEDIUMdocs/issue-proposals/smart-embedding-default.md1# Smart default embedding model based on platform and corpus sizeCOMMENT
MEDIUMbenchmarks/financebench/README.md1# FinanceBench Benchmark for LEANN-RAGCOMMENT
MEDIUMbenchmarks/financebench/README.md49# RAG generation evaluation with Qwen3-8BCOMMENT
MEDIUMbenchmarks/financebench/README.md69### LEANN-RAG Performance (sentence-transformers/all-mpnet-base-v2)COMMENT
MEDIUMbenchmarks/financebench/README.md88### LEANN-RAG Generation Performance (Qwen3-8B)COMMENT
MEDIUMbenchmarks/update/bench_update_vs_offline_search.py583 # Warmup the embedding model before benchmarking (do this for both --only B and --only both)COMMENT
MEDIUMbenchmarks/laion/README.md129### LEANN-RAG Performance (CLIP ViT-L/14 + Qwen2.5-VL)COMMENT
MEDIUMbenchmarks/enron_emails/evaluate_enron_emails.py166 # Read metadata to get passage source and embedding modelCOMMENT
MEDIUMbenchmarks/enron_emails/setup_enron_emails.py221 # Read meta for passage source and embedding modelCOMMENT
MEDIUMbenchmarks/data/README.md5# LEANN-RAG Evaluation DataCOMMENT
MEDIUMpackages/leann-core/src/leann/embedding_compute.py1124 # Check if it's an embedding model (by name patterns or known models)COMMENT
MEDIUMpackages/leann-core/src/leann/mcp.py224 # Auto-detect embedding model from existing index to ensure incrementalCOMMENT
MEDIUMapps/email_rag.py147 # Example queries for email RAGCOMMENT
MEDIUMapps/chatgpt_rag.py171 # Example queries for ChatGPT RAGCOMMENT
MEDIUMapps/wechat_rag.py179 # Example queries for WeChat RAGCOMMENT
MEDIUMapps/claude_rag.py174 # Example queries for Claude RAGCOMMENT
MEDIUMapps/browser_rag.py161 # Example queries for browser history RAGCOMMENT
MEDIUMapps/twitter_rag.py186 # Run the standard RAG pipelineCOMMENT
MEDIUMapps/slack_rag.py218 # Run the standard RAG pipelineCOMMENT
MEDIUMapps/document_rag.py111 # Example queries for document RAGCOMMENT
MEDIUMapps/colqwen_rag.py401 # Initialize ColQwen RAGCOMMENT
MEDIUMapps/code_rag.py165 use_ast_chunking=True, # Always use AST for code RAGCODE
MEDIUMapps/code_rag.py184 # Example queries for code RAGCOMMENT
MEDIUMapps/image_rag.py41 # Override default embedding model to use CLIPCOMMENT
MEDIUMapps/base_rag_example.py308 # Warn if any chunks may exceed the embedding model's token limitCOMMENT
Deep Nesting124 hits · 104 pts
SeverityFileLineSnippetContext
LOWtests/test_build_from_arrays.py128CODE
LOWtests/test_build_from_arrays.py231CODE
LOWtests/support/fake_embedding_server_module.py7CODE
LOWbenchmarks/run_evaluation.py168CODE
LOWbenchmarks/micro_tpt.py228CODE
LOWbenchmarks/micro_tpt.py455CODE
LOWbenchmarks/compare_faiss_vs_leann.py98CODE
LOWbenchmarks/simple_mac_tpt_test.py88CODE
LOWbenchmarks/financebench/evaluate_financebench.py582CODE
LOWbenchmarks/financebench/setup_financebench.py271CODE
LOWbenchmarks/financebench/verify_recall.py48CODE
LOWbenchmarks/update/bench_update_vs_offline_search.py297CODE
LOWbenchmarks/update/plot_bench_results.py116CODE
LOWbenchmarks/update/bench_hnsw_rng_recompute.py362CODE
LOWbenchmarks/laion/evaluate_laion.py391CODE
LOWbenchmarks/laion/setup_laion.py462CODE
LOWbenchmarks/contextbench/scripts/auto_run.py77CODE
LOWbenchmarks/contextbench/scripts/auto_run.py219CODE
LOWbenchmarks/contextbench/scripts/auto_run.py272CODE
LOWbenchmarks/contextbench/scripts/auto_run.py380CODE
LOWbenchmarks/contextbench/scripts/auto_run.py454CODE
LOWbenchmarks/contextbench/scripts/auto_run.py522CODE
LOWbenchmarks/contextbench/scripts/auto_run.py667CODE
LOWbenchmarks/contextbench/scripts/batch_run_selected.py92CODE
LOWbenchmarks/contextbench/scripts/batch_run_random.py38CODE
LOWbenchmarks/enron_emails/evaluate_enron_emails.py366CODE
LOWbenchmarks/bm25_diskann_baselines/run_bm25.py23CODE
LOWbenchmarks/bm25_diskann_baselines/run_bm25.py66CODE
LOWpackages/leann-core/src/leann/react_agent.py129CODE
LOWpackages/leann-core/src/leann/react_agent.py182CODE
LOWpackages/leann-core/src/leann/interactive_utils.py131CODE
LOWpackages/leann-core/src/leann/chunking_utils.py73CODE
LOWpackages/leann-core/src/leann/chunking_utils.py196CODE
LOWpackages/leann-core/src/leann/chunking_utils.py294CODE
LOWpackages/leann-core/src/leann/chunking_utils.py404CODE
LOWpackages/leann-core/src/leann/embedding_compute.py136CODE
LOWpackages/leann-core/src/leann/embedding_compute.py202CODE
LOWpackages/leann-core/src/leann/embedding_compute.py422CODE
LOWpackages/leann-core/src/leann/embedding_compute.py502CODE
LOWpackages/leann-core/src/leann/embedding_compute.py1051CODE
LOWpackages/leann-core/src/leann/embedding_compute.py1225CODE
LOWpackages/leann-core/src/leann/api.py138CODE
LOWpackages/leann-core/src/leann/api.py379CODE
LOWpackages/leann-core/src/leann/api.py836CODE
LOWpackages/leann-core/src/leann/api.py1240CODE
LOWpackages/leann-core/src/leann/api.py1516CODE
LOWpackages/leann-core/src/leann/chat.py203CODE
LOWpackages/leann-core/src/leann/chat.py251CODE
LOWpackages/leann-core/src/leann/chat.py322CODE
LOWpackages/leann-core/src/leann/chat.py1094CODE
LOWpackages/leann-core/src/leann/chat.py499CODE
LOWpackages/leann-core/src/leann/chat.py566CODE
LOWpackages/leann-core/src/leann/cli.py900CODE
LOWpackages/leann-core/src/leann/cli.py926CODE
LOWpackages/leann-core/src/leann/cli.py1035CODE
LOWpackages/leann-core/src/leann/cli.py1145CODE
LOWpackages/leann-core/src/leann/cli.py1297CODE
LOWpackages/leann-core/src/leann/cli.py1395CODE
LOWpackages/leann-core/src/leann/cli.py1457CODE
LOWpackages/leann-core/src/leann/cli.py2075CODE
64 more matches not shown…
Redundant / Tautological Comments62 hits · 90 pts
SeverityFileLineSnippetContext
LOWbenchmarks/run_evaluation.py68 # Check if specific dataset embeddings existCOMMENT
LOWbenchmarks/micro_tpt.py131 # Check if using SDPA (only on CUDA)COMMENT
LOWbenchmarks/micro_tpt.py238 # Check if using custom 8bit quantizationCOMMENT
LOWbenchmarks/micro_tpt.py328 # Check if model loaded successfullyCOMMENT
LOWbenchmarks/compare_faiss_vs_leann.py144 # Check if index already existsCOMMENT
LOWbenchmarks/faiss_only.py82 # Check if index already exists and try to load itCOMMENT
LOWbenchmarks/financebench/evaluate_financebench.py604 # Check if baseline existsCOMMENT
LOWbenchmarks/financebench/evaluate_financebench.py877 # Print resultsCOMMENT
LOWbenchmarks/financebench/setup_financebench.py134 # Check if we have PDFsCOMMENT
LOWbenchmarks/financebench/verify_recall.py161 # Check if files existCOMMENT
LOWbenchmarks/laion/evaluate_laion.py419 # Check if baseline existsCOMMENT
LOWbenchmarks/enron_emails/evaluate_enron_emails.py524 # Check if Stage 4 results existCOMMENT
LOWpackages/leann-core/src/leann/embedding_compute.py1124 # Check if it's an embedding model (by name patterns or known models)COMMENT
LOWpackages/leann-core/src/leann/embedding_compute.py1129 # Check if model exists (handle versioned names) and resolve to full nameCOMMENT
LOWpackages/leann-core/src/leann/embedding_compute.py1090 # Check if Ollama is runningCOMMENT
LOWpackages/leann-core/src/leann/embedding_compute.py1106 # Check if model exists and provide helpful suggestionsCOMMENT
LOWpackages/leann-core/src/leann/embedding_compute.py695 # Set model to eval mode and disable gradients for inferenceSTRING
LOWpackages/leann-core/src/leann/embedding_compute.py265 # Set NODE_PATH to include global modules for @lmstudio/sdk resolutionSTRING
LOWpackages/leann-core/src/leann/embedding_compute.py562 # Check if model is already cachedSTRING
LOWpackages/leann-core/src/leann/api.py428 # Check if we need to use cosine distance for normalized embeddingsCOMMENT
LOWpackages/leann-core/src/leann/chat.py92 # Check if exact model existsCOMMENT
LOWpackages/leann-core/src/leann/chat.py332 # Check if the model exists remotely and get available tagsCOMMENT
LOWpackages/leann-core/src/leann/chat.py478 # Check if the Ollama server is responsiveCOMMENT
LOWpackages/leann-core/src/leann/chat.py667 # Check if this is a Qwen model and add /no_think by defaultCOMMENT
LOWpackages/leann-core/src/leann/chat.py841 # Check if this is an o-series model (partial match for model names)COMMENT
LOWpackages/leann-core/src/leann/cli.py914 # Check if this path appears in .gitmodulesCOMMENT
LOWpackages/leann-core/src/leann/cli.py1476 # Check if this is a git submodule - if so, skip itCOMMENT
LOWpackages/leann-core/src/leann/cli.py1579 # Check if we should process PDFsCOMMENT
LOWpackages/leann-core/src/leann/cli.py1584 # Check if file matches any exclude patternCOMMENT
LOWpackages/leann-core/src/leann/cli.py1735 # Check if AST chunking is requestedCOMMENT
LOWpackages/leann-core/src/leann/cli.py1768 # Check if this is a code file based on source pathCOMMENT
LOW…ckend-diskann/leann_backend_diskann/graph_partition.py77 # Check if executables were createdCOMMENT
LOW…ckend-diskann/leann_backend_diskann/diskann_backend.py165 # Check if all required files existCOMMENT
LOW.github/workflows/release-manual.yml151 # Check if tag already existsCOMMENT
LOW.github/workflows/release-manual.yml160 # Check if release already existsCOMMENT
LOW.github/workflows/build-reusable.yml323 # Set CMAKE_PREFIX_PATH to let CMake find all packages automaticallyCOMMENT
LOWapps/wechat_rag.py60 # Check if WeChat is runningCOMMENT
LOWapps/document_rag.py63 # Check if data directory existsCOMMENT
LOWapps/colqwen_rag.py289 # Display resultsCOMMENT
LOWapps/code_rag.py87 # Check if repository directory existsCOMMENT
LOWapps/code_rag.py105 # Check if in excluded directoryCOMMENT
LOWapps/base_rag_example.py419 # Check if index existsCOMMENT
LOWapps/semantic_file_search/leann-plus-temporal-search.py108 # Check if clean_query is less than 4 charactersCOMMENT
LOWapps/semantic_file_search/leann-plus-temporal-search.py150 # Print resultsCOMMENT
LOWapps/semantic_file_search/spotlight_index_dump.py69 # Check if it's an absolute path or relativeCOMMENT
LOWapps/history_data/wechat_history.py154 # Check if dict has any readable text fieldsCOMMENT
LOWapps/history_data/wechat_history.py189 # Check if there's actual readable text (not just XML or system messages)COMMENT
LOWapps/history_data/wechat_history.py505 # Check if this is a readable text messageSTRING
LOWapps/history_data/wechat_history.py684 # Check if wechat-exporter directory existsSTRING
LOWapps/history_data/wechat_history.py715 # Check if export was successfulSTRING
LOW…l/vision-based-pdf-multi-vector/vidore_v1_benchmark.py254 # Check if we have any queriesCOMMENT
LOW…l/vision-based-pdf-multi-vector/vidore_v1_benchmark.py304 # Print resultsCOMMENT
LOW…al/vision-based-pdf-multi-vector/leann_multi_vector.py1271 # Check if Fast-Plaid index existsCOMMENT
LOW…al/vision-based-pdf-multi-vector/leann_multi_vector.py1286 # Check if LEANN index existsCOMMENT
LOW…al/vision-based-pdf-multi-vector/leann_multi_vector.py1396 # Check if we have any queries to evaluateCOMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py651 # Check if this image was already seenCOMMENT
LOW…l/vision-based-pdf-multi-vector/vidore_v2_benchmark.py97 # Check if dataset has language field before filteringCOMMENT
LOW…l/vision-based-pdf-multi-vector/vidore_v2_benchmark.py104 # Check if filtering resulted in empty datasetCOMMENT
LOW…l/vision-based-pdf-multi-vector/vidore_v2_benchmark.py238 # Check if we have any queriesCOMMENT
LOW…l/vision-based-pdf-multi-vector/vidore_v2_benchmark.py288 # Print resultsCOMMENT
2 more matches not shown…
Decorative Section Separators22 hits · 76 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_react_dual_source.py33# ── 1. Dual-source presence ──────────────────────────────────────────COMMENT
MEDIUMtests/test_react_dual_source.py58# ── 2. Routing behavior ─────────────────────────────────────────────COMMENT
MEDIUMtests/test_react_dual_source.py132# ── 3. Pipeline correctness ─────────────────────────────────────────COMMENT
MEDIUMtests/test_react_dual_source.py197# ── 4. Edge cases ────────────────────────────────────────────────────COMMENT
MEDIUMbenchmarks/contextbench/scripts/auto_run.py449# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmarks/contextbench/scripts/auto_run.py451# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmarks/contextbench/scripts/auto_run.py722# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmarks/contextbench/scripts/auto_run.py724# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmarks/contextbench/scripts/auto_run.py887# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmarks/contextbench/scripts/auto_run.py889# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmarks/enron_emails/setup_enron_emails.py31 # ----------------------------COMMENT
MEDIUMbenchmarks/enron_emails/setup_enron_emails.py33 # ----------------------------COMMENT
MEDIUMbenchmarks/enron_emails/setup_enron_emails.py70 # ----------------------------COMMENT
MEDIUMbenchmarks/enron_emails/setup_enron_emails.py72 # ----------------------------COMMENT
MEDIUMbenchmarks/enron_emails/setup_enron_emails.py163 # ----------------------------COMMENT
MEDIUMbenchmarks/enron_emails/setup_enron_emails.py165 # ----------------------------COMMENT
MEDIUMbenchmarks/enron_emails/setup_enron_emails.py270 # ----------------------------COMMENT
MEDIUMbenchmarks/enron_emails/setup_enron_emails.py272 # ----------------------------COMMENT
MEDIUMpackages/leann-core/src/leann/chunking_utils.py320 # ── Token-aware auto-scaling ──────────────────────────────────────COMMENT
MEDIUMpackages/leann-core/src/leann/chunking_utils.py371 # ── Post-chunk validation ─────────────────────────────────────────COMMENT
MEDIUMpackages/leann-core/src/leann/cli.py3395 # ── index-* shared handler ──────────────────────────────────────COMMENT
MEDIUMpackages/leann-core/src/leann/cli.py749 # ── index-* commands: data source indexing ──────────────────────STRING
Structural Annotation Overuse40 hits · 75 pts
SeverityFileLineSnippetContext
LOWREADME.md1001# Step 1: Use MCP app to fetch and index dataCOMMENT
LOWREADME.md1004# Step 2: The data is now indexed and available via CLICOMMENT
LOWdocs/slack-setup-guide.md17## Step 1: Create a Slack AppCOMMENT
LOWdocs/slack-setup-guide.md67## Step 2: Install Slack MCP ServerCOMMENT
LOWdocs/slack-setup-guide.md86## Step 3: Install and Configure Ollama (for Real LLM Responses)COMMENT
LOWdocs/slack-setup-guide.md117## Step 4: Configure Environment VariablesCOMMENT
LOWdocs/slack-setup-guide.md132## Step 5: Test the SetupCOMMENT
LOWexamples/spoiler_free_book_rag.py180 # Step 1: Prepare book dataCOMMENT
LOWexamples/spoiler_free_book_rag.py186 # Step 2: Build the index (in practice, this would be done once)COMMENT
LOWexamples/spoiler_free_book_rag.py196 # Step 3: Demonstrate various spoiler-free searchesCOMMENT
LOWbenchmarks/financebench/evaluate_financebench.py765 # Step 1: Analyze current (compact) indexCOMMENT
LOWbenchmarks/financebench/evaluate_financebench.py770 # Step 2: Use existing non-compact index or create if neededCOMMENT
LOWbenchmarks/financebench/evaluate_financebench.py805 # Step 4: Performance comparison between the two indexesCOMMENT
LOWbenchmarks/financebench/evaluate_financebench.py814 # Step 5: Generation evaluationCOMMENT
LOWbenchmarks/financebench/evaluate_financebench.py786 # Step 3: Compare index sizesCOMMENT
LOWbenchmarks/financebench/setup_financebench.py418 # Step 1: Download datasetCOMMENT
LOWbenchmarks/financebench/setup_financebench.py421 # Step 2: Download PDFsCOMMENT
LOWbenchmarks/financebench/setup_financebench.py427 # Step 3: Build LEANN indexCOMMENT
LOWbenchmarks/financebench/setup_financebench.py433 # Step 4: Build FAISS flat baselineCOMMENT
LOWbenchmarks/financebench/setup_financebench.py438 # Step 5: Verify setupCOMMENT
LOWbenchmarks/laion/evaluate_laion.py567 # Step 1: Analyze current (compact) indexCOMMENT
LOWbenchmarks/laion/evaluate_laion.py572 # Step 2: Use existing non-compact index or create if neededCOMMENT
LOWbenchmarks/laion/evaluate_laion.py586 # Step 3: Compare index sizes (.index only)COMMENT
LOWbenchmarks/laion/evaluate_laion.py605 # Step 4: Performance comparison between the two indexesCOMMENT
LOWbenchmarks/laion/setup_laion.py483 # Step 1: Download LAION subsetCOMMENT
LOWbenchmarks/laion/setup_laion.py488 # Step 2: Generate CLIP image embeddingsCOMMENT
LOWbenchmarks/laion/setup_laion.py492 # Step 3: Create LEANN passages (image metadata with embeddings)COMMENT
LOWbenchmarks/laion/setup_laion.py509 # Step 4: Build LEANN indexes (both compact and non-compact)COMMENT
LOWbenchmarks/laion/setup_laion.py525 # Step 5: Build FAISS flat baselineCOMMENT
LOWbenchmarks/laion/setup_laion.py539 # Step 6: Create evaluation queriesCOMMENT
LOW…modal/vision-based-pdf-multi-vector/colqwen_forward.py57 # Step 1: Load or create test imageCOMMENT
LOW…modal/vision-based-pdf-multi-vector/colqwen_forward.py71 # Step 2: Load modelCOMMENT
LOW…modal/vision-based-pdf-multi-vector/colqwen_forward.py91 # Step 3: Test forward passCOMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py512# Step 4: Build index if neededCOMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py683# Step 6: Similarity maps for top-K resultsCOMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py166# Step 1: Check if we can skip data loading (index already exists)COMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py207# Step 2: Load data only if we need to build the indexCOMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py479# Step 3: Load model and processor (only if we need to build index or perform search)COMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py568# Step 5: Embed query and searchCOMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py720# Step 7: Optional answer generationCOMMENT
Verbosity Indicators33 hits · 64 pts
SeverityFileLineSnippetContext
LOWexamples/spoiler_free_book_rag.py180 # Step 1: Prepare book dataCOMMENT
LOWexamples/spoiler_free_book_rag.py186 # Step 2: Build the index (in practice, this would be done once)COMMENT
LOWexamples/spoiler_free_book_rag.py196 # Step 3: Demonstrate various spoiler-free searchesCOMMENT
LOWbenchmarks/financebench/evaluate_financebench.py765 # Step 1: Analyze current (compact) indexCOMMENT
LOWbenchmarks/financebench/evaluate_financebench.py770 # Step 2: Use existing non-compact index or create if neededCOMMENT
LOWbenchmarks/financebench/evaluate_financebench.py805 # Step 4: Performance comparison between the two indexesCOMMENT
LOWbenchmarks/financebench/evaluate_financebench.py814 # Step 5: Generation evaluationCOMMENT
LOWbenchmarks/financebench/evaluate_financebench.py786 # Step 3: Compare index sizesCOMMENT
LOWbenchmarks/financebench/setup_financebench.py418 # Step 1: Download datasetCOMMENT
LOWbenchmarks/financebench/setup_financebench.py421 # Step 2: Download PDFsCOMMENT
LOWbenchmarks/financebench/setup_financebench.py427 # Step 3: Build LEANN indexCOMMENT
LOWbenchmarks/financebench/setup_financebench.py433 # Step 4: Build FAISS flat baselineCOMMENT
LOWbenchmarks/financebench/setup_financebench.py438 # Step 5: Verify setupCOMMENT
LOWbenchmarks/laion/evaluate_laion.py567 # Step 1: Analyze current (compact) indexCOMMENT
LOWbenchmarks/laion/evaluate_laion.py572 # Step 2: Use existing non-compact index or create if neededCOMMENT
LOWbenchmarks/laion/evaluate_laion.py586 # Step 3: Compare index sizes (.index only)COMMENT
LOWbenchmarks/laion/evaluate_laion.py605 # Step 4: Performance comparison between the two indexesCOMMENT
LOWbenchmarks/laion/setup_laion.py483 # Step 1: Download LAION subsetCOMMENT
LOWbenchmarks/laion/setup_laion.py488 # Step 2: Generate CLIP image embeddingsCOMMENT
LOWbenchmarks/laion/setup_laion.py492 # Step 3: Create LEANN passages (image metadata with embeddings)COMMENT
LOWbenchmarks/laion/setup_laion.py509 # Step 4: Build LEANN indexes (both compact and non-compact)COMMENT
LOWbenchmarks/laion/setup_laion.py525 # Step 5: Build FAISS flat baselineCOMMENT
LOWbenchmarks/laion/setup_laion.py539 # Step 6: Create evaluation queriesCOMMENT
LOW…modal/vision-based-pdf-multi-vector/colqwen_forward.py57 # Step 1: Load or create test imageCOMMENT
LOW…modal/vision-based-pdf-multi-vector/colqwen_forward.py71 # Step 2: Load modelCOMMENT
LOW…modal/vision-based-pdf-multi-vector/colqwen_forward.py91 # Step 3: Test forward passCOMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py512# Step 4: Build index if neededCOMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py683# Step 6: Similarity maps for top-K resultsCOMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py166# Step 1: Check if we can skip data loading (index already exists)COMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py207# Step 2: Load data only if we need to build the indexCOMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py479# Step 3: Load model and processor (only if we need to build index or perform search)COMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py568# Step 5: Embed query and searchCOMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py720# Step 7: Optional answer generationCOMMENT
Unused Imports49 hits · 48 pts
SeverityFileLineSnippetContext
LOWbenchmarks/micro_tpt.py145CODE
LOWbenchmarks/micro_tpt.py157CODE
LOWscripts/hf_upload.py13CODE
LOWscripts/hf_upload.py43CODE
LOWpackages/leann-core/src/leann/react_agent.py13CODE
LOWpackages/leann-core/src/leann/server.py15CODE
LOWpackages/leann-core/src/leann/registry.py11CODE
LOWpackages/leann-core/src/leann/__init__.py27CODE
LOWpackages/leann-core/src/leann/__init__.py27CODE
LOWpackages/leann-core/src/leann/__init__.py27CODE
LOWpackages/leann-core/src/leann/__init__.py28CODE
LOWpackages/leann-core/src/leann/__init__.py28CODE
LOWpackages/leann-core/src/leann/__init__.py29CODE
LOWpackages/leann-core/src/leann/settings.py3CODE
LOWpackages/leann/__init__.py10CODE
LOWpackages/leann/__init__.py10CODE
LOWpackages/leann/__init__.py10CODE
LOW…nn-backend-flashlib/leann_backend_flashlib/__init__.py3CODE
LOW…nn-backend-flashlib/leann_backend_flashlib/__init__.py3CODE
LOW…nn-backend-flashlib/leann_backend_flashlib/__init__.py3CODE
LOW…nd-flashlib-ivf/leann_backend_flashlib_ivf/__init__.py3CODE
LOW…nd-flashlib-ivf/leann_backend_flashlib_ivf/__init__.py3CODE
LOW…nd-flashlib-ivf/leann_backend_flashlib_ivf/__init__.py3CODE
LOW…eann-backend-diskann/leann_backend_diskann/__init__.py58CODE
LOW…eann-backend-diskann/leann_backend_diskann/__init__.py59CODE
LOW…eann-backend-diskann/leann_backend_diskann/__init__.py62CODE
LOW…eann-backend-diskann/leann_backend_diskann/__init__.py62CODE
LOW…ckages/leann-backend-ivf/leann_backend_ivf/__init__.py3CODE
LOW…ckages/leann-backend-ivf/leann_backend_ivf/__init__.py3CODE
LOW…ckages/leann-backend-ivf/leann_backend_ivf/__init__.py3CODE
LOW…ckages/leann-backend-ivf/leann_backend_ivf/__init__.py3CODE
LOW…ckages/leann-backend-ivf/leann_backend_ivf/__init__.py3CODE
LOW…ages/leann-backend-hnsw/leann_backend_hnsw/__init__.py58CODE
LOWapps/history_data/__init__.py1CODE
LOWapps/chunking/__init__.py13CODE
LOWapps/chunking/__init__.py13CODE
LOWapps/chunking/__init__.py13CODE
LOWapps/chunking/__init__.py13CODE
LOWapps/chunking/__init__.py13CODE
LOWapps/chunking/__init__.py13CODE
LOWapps/chunking/__init__.py13CODE
LOWapps/chunking/__init__.py27CODE
LOWapps/chunking/__init__.py27CODE
LOWapps/chunking/__init__.py27CODE
LOWapps/chunking/__init__.py27CODE
LOWapps/chunking/__init__.py27CODE
LOWapps/chunking/__init__.py27CODE
LOWapps/chunking/__init__.py27CODE
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py10CODE
Modern Structural Boilerplate40 hits · 40 pts
SeverityFileLineSnippetContext
LOWtests/test_prompt_template_e2e.py33logger = logging.getLogger(__name__)CODE
LOWbenchmarks/compare_faiss_vs_leann.py19logger = logging.getLogger(__name__)CODE
LOWbenchmarks/update/bench_update_vs_offline_search.py54logger = logging.getLogger(__name__)CODE
LOWbenchmarks/update/__init__.py16__all__ = ["find_repo_root"]CODE
LOWbenchmarks/update/bench_hnsw_rng_recompute.py45logger = logging.getLogger(__name__)CODE
LOWpackages/leann-core/src/leann/sync.py9logger = logging.getLogger(__name__)CODE
LOWpackages/leann-core/src/leann/react_agent.py23logger = logging.getLogger(__name__)CODE
LOWpackages/leann-core/src/leann/registry.py14logger = logging.getLogger(__name__)CODE
LOWpackages/leann-core/src/leann/metadata_filter.py12logger = logging.getLogger(__name__)CODE
LOWpackages/leann-core/src/leann/__init__.py33__all__ = [CODE
LOWpackages/leann-core/src/leann/chunking_utils.py12logger = logging.getLogger(__name__)CODE
LOWpackages/leann-core/src/leann/embedding_compute.py23logger = logging.getLogger(__name__)CODE
LOWpackages/leann-core/src/leann/api.py31logger = logging.getLogger(__name__)CODE
LOWpackages/leann-core/src/leann/api.py836 def update_index(self, index_path: str, remove_passage_ids: Optional[list[str]] = None) -> None:CODE
LOWpackages/leann-core/src/leann/chat.py27logger = logging.getLogger(__name__)CODE
LOWpackages/leann-core/src/leann/settings.py10logger = logging.getLogger(__name__)CODE
LOWpackages/leann-core/src/leann/web_search.py8logger = logging.getLogger(__name__)CODE
LOW…kages/leann-core/src/leann/embedding_server_manager.py25logger = logging.getLogger(__name__)CODE
LOWpackages/leann/__init__.py12__all__ = ["LeannBuilder", "LeannChat", "LeannSearcher"]CODE
LOWpackages/wechat-exporter/__init__.py1__all__ = []CODE
LOW…nn-backend-flashlib/leann_backend_flashlib/__init__.py9__all__ = [CODE
LOW…nd-flashlib/leann_backend_flashlib/flashlib_backend.py37logger = logging.getLogger(__name__)CODE
LOW…nd-flashlib-ivf/leann_backend_flashlib_ivf/__init__.py9__all__ = [CODE
LOW…ivf/leann_backend_flashlib_ivf/flashlib_ivf_backend.py44logger = logging.getLogger(__name__)CODE
LOW…eann-backend-diskann/leann_backend_diskann/__init__.py64__all__ = ["GraphPartitioner", "diskann_backend", "graph_partition", "partition_graph"]CODE
LOW…kann/leann_backend_diskann/diskann_embedding_server.py20logger = logging.getLogger(__name__)CODE
LOW…ckend-diskann/leann_backend_diskann/diskann_backend.py20logger = logging.getLogger(__name__)CODE
LOW…ckages/leann-backend-ivf/leann_backend_ivf/__init__.py11__all__ = [CODE
LOW…ges/leann-backend-ivf/leann_backend_ivf/ivf_backend.py28logger = logging.getLogger(__name__)CODE
LOW…eann-backend-hnsw/leann_backend_hnsw/convert_to_csr.py14logger = logging.getLogger(__name__)CODE
LOW…/leann-backend-hnsw/leann_backend_hnsw/hnsw_backend.py19logger = logging.getLogger(__name__)CODE
LOW…ckend-hnsw/leann_backend_hnsw/hnsw_embedding_server.py21logger = logging.getLogger(__name__)CODE
LOWapps/history_data/__init__.py3__all__ = ["ChromeHistoryReader"]CODE
LOWapps/chunking/__init__.py39__all__ = [CODE
LOW…al/vision-based-pdf-multi-vector/leann_multi_vector.py16logger = logging.getLogger(__name__)CODE
LOWapps/gemini_data/gemini_reader.py6logger = logging.getLogger(__name__)CODE
LOWapps/qwen_data/qwen_reader.py6logger = logging.getLogger(__name__)CODE
LOWapps/slack_data/slack_mcp_reader.py16logger = logging.getLogger(__name__)CODE
LOWapps/twitter_data/twitter_mcp_reader.py15logger = logging.getLogger(__name__)CODE
LOWapps/email_data/email.py16logger = logging.getLogger(__name__)CODE
Self-Referential Comments10 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_prompt_template_persistence.py582 # Create a concrete implementation for testingCOMMENT
MEDIUMtests/test_prompt_template_persistence.py640 # Create a concrete implementation for testingCOMMENT
MEDIUMtests/test_metadata_filtering.py306 # Create a real PassageManager instance just for the filtering methodCOMMENT
MEDIUMtests/test_token_truncation.py123 # Create a text that definitely exceeds limitCOMMENT
MEDIUMexamples/mlx_demo.py5# Define the path for our new MLX-based indexCOMMENT
MEDIUMpackages/leann-core/src/leann/cli.py1610 # Create a simple document structureCOMMENT
MEDIUMpackages/leann-core/src/leann/cli.py1636 # Create a custom file filter function using our PathSpecCOMMENT
MEDIUM…modal/vision-based-pdf-multi-vector/colqwen_forward.py24 # Create a simple RGB image (800x600)COMMENT
MEDIUMapps/email_data/email.py64 # Import required librariesCOMMENT
MEDIUMapps/email_data/email.py161 # Create a temporary mbox fileCOMMENT
Magic Placeholder Names5 hits · 28 pts
SeverityFileLineSnippetContext
HIGHREADME.md251export OPENAI_API_KEY="your-api-key-here"CODE
HIGHREADME.md964 export TWITTER_API_KEY="your-api-key"CODE
HIGHdocs/metadata_filtering.md219export OPENAI_API_KEY="your-api-key-here"CODE
HIGHdocs/code/embedding_model_compare.py12# export OPENAI_API_KEY="your-api-key-here"COMMENT
HIGHexamples/mcp_integration_demo.py124 print(" export TWITTER_API_KEY='your-api-key'")CODE
AI Slop Vocabulary8 hits · 22 pts
SeverityFileLineSnippetContext
LOWbenchmarks/micro_tpt.py374 # For now, just use standard loading with INT8 configCOMMENT
MEDIUMbenchmarks/financebench/evaluate_financebench.py626 # Test with more queries for robust measurementCOMMENT
MEDIUMbenchmarks/financebench/evaluate_financebench.py666 # Use more queries for robust measurementCOMMENT
MEDIUMbenchmarks/laion/evaluate_laion.py436 # Test with queries for robust measurementCOMMENT
MEDIUMbenchmarks/laion/evaluate_laion.py470 # Use subset for robust measurementCOMMENT
MEDIUMbenchmarks/laion/evaluate_laion.py622 # Print comprehensive resultsCOMMENT
MEDIUMpackages/leann-core/src/leann/cli.py1132 # Always do a comprehensive search for safetyCOMMENT
MEDIUM…eann-backend-hnsw/leann_backend_hnsw/convert_to_csr.py83 count = -1 # Initialize count for robust error handlingCODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHapps/imessage_data/imessage_reader.py0initialize. args: concatenate_conversations: whether to concatenate messages within conversations for better contextSTRING
HIGHapps/chatgpt_data/chatgpt_reader.py0initialize. args: concatenate_conversations: whether to concatenate messages within conversations for better contextSTRING
HIGHapps/claude_data/claude_reader.py0initialize. args: concatenate_conversations: whether to concatenate messages within conversations for better contextSTRING
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippetContext
LOWREADME.md1161leann watch INDEX_NAMECOMMENT
LOWbenchmarks/financebench/verify_recall.py1#!/usr/bin/env python3COMMENT
LOW…marks/contextbench/scripts/prepare_repos_with_leann.py61 # "SWE-Bench-Pro__javascript__maintenance__bugfix__93b583ae",COMMENT
LOWbenchmarks/contextbench/scripts/batch_run_selected.py21# Instances to run. Set instance_ids here or pass via SELECTED_IDS env var (comma-separated).COMMENT
LOWbenchmarks/contextbench/scripts/batch_run_random.py101 # instance_id=instance_id,COMMENT
LOWbenchmarks/contextbench/scripts/batch_run_random.py121 # print(f"✅ Result saved for {instance_id}")COMMENT
LOWbenchmarks/bm25_diskann_baselines/run_bm25.py1# /// scriptCOMMENT
LOW…-pdf-multi-vector/multi-vector-leann-similarity-map.py41QUERY = "The paper talk about the latent video generative model and data curation in the related work part?"COMMENT
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtests/test_lmstudio_bridge.py194 mock_result.stdout = '{"contextLength": null, "identifier": "test-model"}'CODE
AI Structural Patterns6 hits · 5 pts
SeverityFileLineSnippetContext
LOWbenchmarks/llm_utils.py278CODE
LOWpackages/leann-core/src/leann/chunking_utils.py404CODE
LOWpackages/leann-core/src/leann/api.py1240CODE
LOWpackages/leann-core/src/leann/api.py1689CODE
LOW…ckend-diskann/leann_backend_diskann/diskann_backend.py475CODE
LOW…l/vision-based-pdf-multi-vector/vidore_v2_benchmark.py186CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…ckend-diskann/leann_backend_diskann/graph_partition.py96 Partition a disk-based index for improved performance. Args: index_prefix_path: Path to thSTRING
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/openclaw/run_docker_test.sh6# Usage:COMMENT
LOW…ckend-diskann/leann_backend_diskann/graph_partition.py288# Example usage:COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpackages/leann-core/src/leann/mcp.py320def handle_request(request):CODE