AI Slop Code RIsk Monitor

PromtEngineer/localGPT

Chat with your documents on your local device using GPT models. No data leaves your device and 100% private.

11.5 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for PromtEngineer/localGPT, a Python project with 22,193 GitHub stars. SynthScan examined 88,801 lines of code across 191 source files, recording 509 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 11.5 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

11.5
Adjusted Signal
11.5
Raw Pattern Score
100%
Time Factor
2026-08-26
Last Push
22.2K
Stars
Python
Language
88.8K
Lines of Code
191
Files
509
Pattern Hits
2026-10-12
Scan Date
0.15
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 22.1/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 235 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.7/100 · LOW

Are imports declared and package/API names verified? 20 finding(s).

Agent Over-Engineering Ratio 27.4/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 282 finding(s).

PR Review Velocity Impact 45.9/100 · MEDIUM

Which changes need focused human review? 509 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 28MEDIUM 221LOW 260

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 509 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Modern AI Meta-Vocabulary107 hits · 290 pts
SeverityFileLineSnippetContext
MEDIUMWATSONX_README.md112python -m rag_system.main api # RAG API on port 8001CODE
MEDIUMDOCKER_README.md121### RAG API Container (rag-api)COMMENT
MEDIUMDOCKER_README.md272# RAG API container (most debugging happens here)COMMENT
MEDIUMDOCKER_README.md284# Test RAG system initializationCOMMENT
MEDIUMDOCKER_README.md298# Verify the backend can reach the RAG API by service nameCOMMENT
MEDIUMDOCKER_README.md354#### Every chat answers "Could not connect to the RAG API server"COMMENT
MEDIUMDOCKER_README.md373# (changing the embedding model requires rebuilding your indexes)COMMENT
MEDIUMREADME.md182# Skip frontend (Ollama + RAG API + backend only)COMMENT
MEDIUMREADME.md209# Terminal 2: Start RAG APICOMMENT
MEDIUMREADME.md309# Test the RAG importsCOMMENT
MEDIUMREADME.md405# Talk to the RAG API directlyCOMMENT
MEDIUMREADME.md630#### Dimension mismatch after changing the embedding modelCOMMENT
MEDIUMREADME.md746### RAG API — http://localhost:8001COMMENT
MEDIUMCONTRIBUTING.md47 # Config, agent construction, embedding model and LanceDB accessCOMMENT
MEDIUMCONTRIBUTING.md50 # Start Ollama + RAG API + backend + frontendCOMMENT
MEDIUMCONTRIBUTING.md200├── agent/ # Triage, decomposition, orchestration and verification loopCODE
MEDIUMCONTRIBUTING.md226# Config, agent construction, embedding model, LanceDB access, sample queryCOMMENT
MEDIUMdocker-compose.yml23 # RAG API serverCOMMENT
MEDIUMDOCKER_TROUBLESHOOTING.md102#### Problem: RAG API can't connect to OllamaCOMMENT
MEDIUMDOCKER_TROUBLESHOOTING.md159### 3. Backend / RAG API WiringCOMMENT
MEDIUMDOCKER_TROUBLESHOOTING.md161#### Problem: every chat fails with 502 "Could not connect to the RAG API server"COMMENT
MEDIUMDOCKER_TROUBLESHOOTING.md276# Lighter configuration (rebuild indexes after changing the embedding model)COMMENT
MEDIUMDOCKER_TROUBLESHOOTING.md281# Or switch the whole RAG API to the fast profileCOMMENT
MEDIUMDOCKER_TROUBLESHOOTING.md352#### Problem: `changing the embedding model requires rebuilding the index`COMMENT
MEDIUMDOCKER_TROUBLESHOOTING.md365# RAG API container (most issues happen here)COMMENT
MEDIUMDOCKER_TROUBLESHOOTING.md408# Backend ↔ RAG API by service nameCOMMENT
MEDIUMDOCKER_TROUBLESHOOTING.md467# RAG API aloneCOMMENT
MEDIUMDOCKER_TROUBLESHOOTING.md575# Smaller embedding model (rebuild indexes afterwards)COMMENT
MEDIUMDOCKER_TROUBLESHOOTING.md600#### 2. Minimal Docker (RAG API only)COMMENT
MEDIUMtest_docker_build.sh75# 1. RAG API (no dependencies)COMMENT
MEDIUMtest_docker_build.sh82# 2. Backend (depends on RAG API)COMMENT
MEDIUMDocumentation/api_reference.md1# 📚 API Reference (Backend Gateway & RAG API)COMMENT
MEDIUMDocumentation/api_reference.md37| `/sessions/<id>/index` | POST | Index the session's documents | [Index options](#14-index-options) (optional) | the RACODE
MEDIUMDocumentation/api_reference.md149## 2. RAG API — `http://localhost:8001`COMMENT
MEDIUMDocumentation/architecture_overview.md103It is deliberately biased toward RAG. The agent-side triage in [§2.4](#24-in-process-pipeline-inside-the-rag-api) still CODE
MEDIUMDocumentation/architecture_overview.md122### 2.4 In-process pipeline inside the RAG APICOMMENT
MEDIUMDocumentation/system_overview.md403# Start the RAG APICOMMENT
MEDIUMDocumentation/research_roadmap.md103## Phase 4 — Ideas adopted from agentic-file-search (implemented + benchmarked 2026-08-09)COMMENT
MEDIUMDocumentation/research_roadmap.md120Source: [PromtEngineer/agentic-file-search](https://github.com/PromtEngineer/agentic-file-search)CODE
MEDIUMDocumentation/deployment_guide.md131curl http://localhost:8001/health # RAG APICODE
MEDIUMDocumentation/deployment_guide.md230# Terminal 1: RAG APICOMMENT
MEDIUMDocumentation/deployment_guide.md252python run_system.py --no-frontend # Ollama + RAG API + backend onlyCODE
MEDIUMDocumentation/deployment_guide.md596# 4. Disable late chunking so a second embedding model is not loadedCOMMENT
MEDIUMDocumentation/installation_guide.md261# Deep check: imports, config, LanceDB, embedding model, sample queryCOMMENT
MEDIUMDocumentation/installation_guide.md410#### **RAG System Test:**COMMENT
MEDIUMDocumentation/installation_guide.md412# Test RAG system initialization (factory.py is the single entry point)COMMENT
MEDIUMDocumentation/installation_guide.md579sudo ufw deny 8001/tcp # RAG API (internal only)CODE
MEDIUM⚡Documentation/quick_start.md91curl http://localhost:8001/health # RAG APICODE
MEDIUMDocumentation/quick_start.md152# Terminal 1: RAG APICOMMENT
MEDIUMDocumentation/quick_start.md178curl http://localhost:8001/health # RAG APICODE
MEDIUMDocumentation/quick_start.md250python run_system.py --no-frontend # Ollama + RAG API + backend onlyCODE
MEDIUMDocumentation/quick_start.md257python -m rag_system.api_server # RAG API onlyCODE
MEDIUMDocumentation/quick_start.md383├── 📁 rag_system/ # RAG API, agent, pipelines (config in main.py)CODE
MEDIUMDocumentation/quick_start.md412# Start the RAG API (same as `python -m rag_system.api_server`)COMMENT
MEDIUMDocumentation/docker_usage.md402#### Chats return "Could not connect to the RAG API server"COMMENT
MEDIUMDocumentation/research/industry-evidence-2026.md12## SECTION 1 — AGENTIC RAG vs CLASSIC PIPELINES: WHAT THE INDUSTRY CONVERGED ONCOMMENT
MEDIUMDocumentation/research/industry-evidence-2026.md22**SOURCE:** LangChain — Build a custom RAG agent with LangGraph — https://docs.langchain.com/oss/python/langgraph/agentiCODE
MEDIUMDocumentation/research/industry-evidence-2026.md36**SOURCE:** LlamaIndex / Jerry Liu — "Beyond Chatbots: Adopting Agentic Document Workflows for Enterprises" — https://wwCODE
MEDIUMDocumentation/research/industry-evidence-2026.md40**SOURCE:** LlamaIndex — "Agentic Document Workflows: A Practical Guide" — https://www.llamaindex.ai/blog/introducing-agCODE
MEDIUMDocumentation/research/industry-evidence-2026.md73### 1.4 The counter-case: when agentic loops loseCOMMENT
47 more matches not shown…
Decorative Section Separators87 hits · 286 pts
SeverityFileLineSnippetContext
MEDIUM⚡backend/server.py108# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡backend/server.py110# ---------------------------------------------------------------------------COMMENT
MEDIUMeval/run_eval.py174# --------------------------------------------------------------------------COMMENT
MEDIUMeval/run_eval.py176# --------------------------------------------------------------------------COMMENT
MEDIUMeval/run_eval.py243# --------------------------------------------------------------------------COMMENT
MEDIUMeval/run_eval.py245# --------------------------------------------------------------------------COMMENT
MEDIUMeval/run_eval.py420# --------------------------------------------------------------------------COMMENT
MEDIUMeval/run_eval.py422# --------------------------------------------------------------------------COMMENT
MEDIUMeval/run_eval.py494# --------------------------------------------------------------------------COMMENT
MEDIUMeval/run_eval.py496# --------------------------------------------------------------------------COMMENT
MEDIUMeval/multiturn/decomp_stability.py59# --------------------------------------------------------------------------COMMENT
MEDIUMeval/multiturn/decomp_stability.py61# --------------------------------------------------------------------------COMMENT
MEDIUMeval/multiturn/decomp_stability.py139# --------------------------------------------------------------------------COMMENT
MEDIUMeval/multiturn/decomp_stability.py141# --------------------------------------------------------------------------COMMENT
MEDIUMeval/multiturn/run_e2e_multiturn.py64# --------------------------------------------------------------------------COMMENT
MEDIUMeval/multiturn/run_e2e_multiturn.py66# --------------------------------------------------------------------------COMMENT
MEDIUMeval/multiturn/run_e2e_multiturn.py160# --------------------------------------------------------------------------COMMENT
MEDIUMeval/multiturn/run_e2e_multiturn.py162# --------------------------------------------------------------------------COMMENT
MEDIUM⚡rag_system/__init__.py4# ---------------------------------------------------------COMMENT
MEDIUM⚡rag_system/__init__.py6# ---------------------------------------------------------COMMENT
MEDIUM⚡rag_system/__init__.py10# ---------------------------------------------------------COMMENT
MEDIUMrag_system/__init__.py27# ---------------------------------------------------------COMMENT
MEDIUMrag_system/__init__.py29# ---------------------------------------------------------COMMENT
MEDIUM⚡rag_system/main.py14# ============================================================================COMMENT
MEDIUM⚡rag_system/main.py16# ============================================================================COMMENT
MEDIUMrag_system/main.py55# ============================================================================COMMENT
MEDIUMrag_system/main.py57# ============================================================================COMMENT
MEDIUMrag_system/main.py221# ============================================================================COMMENT
MEDIUMrag_system/main.py223# ============================================================================COMMENT
MEDIUMrag_system/ingestion/docling_chunker.py49 # ------------------------------------------------------------------COMMENT
MEDIUMrag_system/ingestion/docling_chunker.py100 # ------------------------------------------------------------------COMMENT
MEDIUMrag_system/ingestion/docling_chunker.py102 # ------------------------------------------------------------------COMMENT
MEDIUM⚡rag_system/ingestion/docling_chunker.py212 # --------------------------------------------------------------COMMENT
MEDIUM⚡rag_system/ingestion/docling_chunker.py215 # --------------------------------------------------------------COMMENT
MEDIUMrag_system/rerankers/sentence_pruner.py30 # ---------------------------------------------------------------------COMMENT
MEDIUMrag_system/rerankers/sentence_pruner.py32 # ---------------------------------------------------------------------COMMENT
MEDIUM⚡rag_system/rerankers/sentence_pruner.py55 # ------------------------------------------------------------------COMMENT
MEDIUM⚡rag_system/rerankers/sentence_pruner.py57 # ------------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py32# ---------------------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py34# ---------------------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py94 # ------------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py96 # ------------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py319 # ------------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py321 # ------------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py739 # ------------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py741 # ------------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py894 # ---------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py896 # ---------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py940 # -----------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py942 # -----------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py985 # ------------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py1037 # ------------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py1210 # ------------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py1212 # ------------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py1550 # ------------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py1552 # ------------------------------------------------------------------COMMENT
MEDIUMrag_system/pipelines/retrieval_pipeline.py604 # ------------------------------------------------------------------STRING
MEDIUMrag_system/pipelines/retrieval_pipeline.py607 # ------------------------------------------------------------------STRING
MEDIUM⚡rag_system/pipelines/indexing_pipeline.py316 # ---------------------------------------------------COMMENT
MEDIUM⚡rag_system/pipelines/indexing_pipeline.py318 # ---------------------------------------------------COMMENT
27 more matches not shown…
Excessive Try-Catch Wrapping139 hits · 134 pts
SeverityFileLineSnippetContext
LOWsystem_health_check.py21 except Exception:CODE
LOWsystem_health_check.py41 except Exception as e:CODE
LOWsystem_health_check.py79 except Exception as e:CODE
LOWsystem_health_check.py120 except Exception as e:CODE
LOWsystem_health_check.py140 except Exception as e:CODE
LOWsystem_health_check.py163 except Exception as e:CODE
LOWsystem_health_check.py200 except Exception as e:CODE
LOWcreate_index_script.py55 except Exception as e:CODE
LOWcreate_index_script.py257 except Exception as e:CODE
LOWcreate_index_script.py284 except Exception as e:CODE
LOWcreate_index_script.py337 except Exception as e:CODE
LOWcreate_index_script.py403 except Exception as e:CODE
LOWrun_system.py320 except Exception as e:CODE
LOWrun_system.py392 except Exception as e:CODE
LOWrun_system.py654 except Exception as e:CODE
MEDIUMrun_system.py350def _read_pidfile(self) -> Dict:CODE
MEDIUMbackend/server.py983def handle_get_indexes(self):CODE
MEDIUMbackend/server.py1000def handle_create_index(self):CODE
LOW⚡backend/server.py485 except Exception as e:CODE
LOW⚡backend/server.py494 except Exception as e:CODE
LOW⚡backend/server.py978 except Exception as e:CODE
LOW⚡backend/server.py987 except Exception as e:CODE
LOW⚡backend/server.py997 except Exception as e:CODE
LOW⚡backend/server.py1108 except Exception as e:CODE
LOW⚡backend/server.py1115 except Exception as e:CODE
LOWbackend/server.py411 except Exception as e:CODE
LOWbackend/server.py505 except Exception as e:CODE
LOWbackend/server.py518 except Exception as e:CODE
LOWbackend/server.py539 except Exception as e:CODE
LOWbackend/server.py562 except Exception as e:CODE
LOWbackend/server.py587 except Exception as e:CODE
LOWbackend/server.py672 except Exception as e:CODE
LOWbackend/server.py719 except Exception as e:CODE
LOWbackend/server.py783 except Exception as e:CODE
LOWbackend/server.py920 except Exception as e:CODE
LOWbackend/server.py940 except Exception as e:CODE
LOWbackend/server.py1029 except Exception as e:CODE
LOWbackend/server.py1088 except Exception as e:CODE
LOWbackend/server.py1134 except Exception as e:CODE
LOWbackend/server.py1145 except Exception as e:CODE
LOWbackend/server.py1189 except Exception as e:CODE
LOWbackend/server.py1223 except Exception as e:CODE
LOWbackend/server.py1243 except Exception as e:CODE
MEDIUMbackend/ollama_client.py57 print(f"Error fetching models: {e}")CODE
MEDIUMbackend/ollama_client.py81 print(f"Error pulling model: {e}")CODE
LOWbackend/database.py19 except Exception:CODE
LOWbackend/database.py483 except Exception as e:STRING
LOWbackend/database.py485 except Exception as e:STRING
LOWbackend/database.py580 except Exception as e:STRING
LOWbackend/database.py710 except Exception as e:STRING
LOWbackend/database.py714 except Exception as e:STRING
LOWeval/smoke_e2e.py331 except Exception as e: # noqa: BLE001 — a crash here is a smoke failure, not a tracebackCODE
LOWeval/multiturn/decomp_stability.py126 except Exception:CODE
LOWeval/multiturn/run_e2e_multiturn.py91 except Exception:CODE
LOWrag_system/__init__.py59 except Exception as exc: # pragma: no cover – best-effort loginCODE
LOWrag_system/api_server.py143 except Exception as e:CODE
LOWrag_system/api_server.py168 except Exception as e:CODE
LOWrag_system/api_server.py331 except Exception as e:CODE
LOWrag_system/api_server.py374 except Exception as e:CODE
LOWrag_system/api_server.py383 except Exception as e:CODE
79 more matches not shown…
Empty Error Handlers24 hits · 120 pts
SeverityFileLineSnippetContext
HIGHrun_system.py359except OSError:CODE
HIGHrun_system.py551except psutil.Error:CODE
HIGHrun_system.py557except psutil.Error:CODE
HIGHrun_system.py564except psutil.Error:CODE
HIGHrun_system.py622except ProcessLookupError:CODE
HIGHbackend/server.py490except (BrokenPipeError, ConnectionResetError):CODE
HIGHbackend/ollama_client.py20except ValueError:CODE
HIGHbackend/database.py19except Exception:CODE
HIGHbackend/database.py498except FileNotFoundError:CODE
HIGHbackend/database.py652except:CODE
HIGHbackend/database.py640except (json.JSONDecodeError, KeyError):CODE
HIGHbackend/database.py679except:CODE
HIGHeval/smoke_e2e.py120except requests.RequestException:CODE
HIGHeval/smoke_e2e.py352except OSError:CODE
HIGHrag_system/api_server.py378except BrokenPipeError:CODE
HIGHrag_system/ingestion/document_converter.py159except Exception:CODE
HIGHrag_system/pipelines/retrieval_pipeline.py658except (TypeError, ValueError):CODE
HIGHrag_system/utils/ollama_client.py107except Exception:CODE
HIGHrag_system/utils/ollama_client.py207except Exception:CODE
HIGHrag_system/utils/ollama_client.py47except ValueError:CODE
HIGHrag_system/agent/escalation.py122except (TypeError, ValueError):CODE
HIGHrag_system/agent/escalation.py257except Exception:CODE
HIGHrag_system/retrieval/document_fetch.py119except ValueError:CODE
HIGHrag_system/indexing/overview_builder.py153except OSError:CODE
Deep Nesting41 hits · 36 pts
SeverityFileLineSnippetContext
LOWcreate_index_script.py96CODE
LOWrun_system.py433CODE
LOWrun_system.py570CODE
LOWrun_system.py659CODE
LOWbackend/server.py268CODE
LOWbackend/server.py302CODE
LOWbackend/server.py888CODE
LOWbackend/server.py1118CODE
LOWbackend/ollama_client.py60CODE
LOWbackend/database.py463CODE
LOWbackend/database.py518CODE
LOWeval/run_eval.py774CODE
LOWeval/finalize_goldset.py118CODE
LOWeval/verify_rfc_goldset.py67CODE
LOWeval/smoke_e2e.py105CODE
LOWeval/smoke_e2e.py152CODE
LOWeval/smoke_e2e.py278CODE
LOWeval/judge.py245CODE
LOWrag_system/api_server.py429CODE
LOWrag_system/ask_folder.py152CODE
LOWrag_system/ingestion/chunking.py34CODE
LOWrag_system/rerankers/reranker.py26CODE
LOWrag_system/pipelines/retrieval_pipeline.py268CODE
LOWrag_system/pipelines/retrieval_pipeline.py428CODE
LOWrag_system/pipelines/retrieval_pipeline.py842CODE
LOWrag_system/pipelines/retrieval_pipeline.py1040CODE
LOWrag_system/pipelines/retrieval_pipeline.py1056CODE
LOWrag_system/pipelines/retrieval_pipeline.py1467CODE
LOWrag_system/pipelines/indexing_pipeline.py161CODE
LOWrag_system/utils/batch_processor.py76CODE
LOWrag_system/utils/ollama_client.py353CODE
LOWrag_system/utils/watsonx_client.py183CODE
LOWrag_system/agent/loop.py109CODE
LOWrag_system/agent/loop.py128CODE
LOWrag_system/agent/loop.py393CODE
LOWrag_system/retrieval/retrievers.py142CODE
LOWrag_system/retrieval/filters.py180CODE
LOWrag_system/indexing/crossref.py208CODE
LOWrag_system/indexing/crossref.py136CODE
LOWrag_system/indexing/overview_builder.py36CODE
LOWrag_system/indexing/overview_builder.py130CODE
Structural Annotation Overuse17 hits · 28 pts
SeverityFileLineSnippetContext
LOWDocumentation/quick_start.md30### Step 1: CloneCOMMENT
LOWDocumentation/quick_start.md40### Step 2: Install Ollama LocallyCOMMENT
LOWDocumentation/quick_start.md59### Step 3: Start Docker ContainersCOMMENT
LOW⚡Documentation/quick_start.md82### Step 4: Verify DeploymentCOMMENT
LOW⚡Documentation/quick_start.md99### Step 5: Access ApplicationCOMMENT
LOWDocumentation/quick_start.md112### Step 1: Clone and Install DependenciesCOMMENT
LOWDocumentation/quick_start.md125### Step 2: Install and Configure OllamaCOMMENT
LOWDocumentation/quick_start.md139### Step 3: Start the SystemCOMMENT
LOWDocumentation/quick_start.md166### Step 4: Verify InstallationCOMMENT
LOWDocumentation/quick_start.md181### Step 5: Access ApplicationCOMMENT
LOWDocumentation/docker_usage.md40### Step 1: CloneCOMMENT
LOWDocumentation/docker_usage.md50### Step 2: OllamaCOMMENT
LOWDocumentation/docker_usage.md90### Step 3: Start ContainersCOMMENT
LOW⚡rag_system/pipelines/indexing_pipeline.py375 # Step 4: Embedded-overview sidecar (roadmap item 4.3)COMMENT
LOWrag_system/pipelines/indexing_pipeline.py179 # Step 1: Document Processing and ChunkingCOMMENT
LOWrag_system/pipelines/indexing_pipeline.py266 # Step 2: Optional Contextual Enrichment (before indexing for consistency)COMMENT
LOWrag_system/pipelines/indexing_pipeline.py282 # Step 3: Embed chunks into LanceDB and build the native FTS indexCOMMENT
Hyper-Verbose Identifiers25 hits · 22 pts
SeverityFileLineSnippetContext
LOWsystem_health_check.py112def check_agent_initialization():CODE
LOWcreate_index_script.py350def create_sample_batch_config():CODE
LOW⚡backend/server.py1111 def handle_link_index_to_session(self, session_id: str, index_id: str):CODE
LOW⚡backend/server.py1118 def handle_get_session_indexes(self, session_id: str):CODE
LOWbackend/server.py544 def handle_get_session_documents(self, session_id: str):CODE
LOWbackend/database.py355 def get_documents_for_session(self, session_id: str) -> List[str]:STRING
LOWbackend/database.py518 def inspect_and_populate_index_metadata(self, index_id: str) -> dict:STRING
LOWeval/run_eval.py447def decomposition_sub_queries(pipeline: RetrievalPipeline, gold: list, args,CODE
LOWeval/smoke_e2e.py96def port_accepting_connections(port: int, host: str = "localhost") -> bool:CODE
LOWrag_system/api_server.py100def _generation_model_override(requested_model):CODE
LOWrag_system/api_server.py120def _apply_index_embedding_model(idx_ids):CODE
LOWrag_system/api_server.py147def _get_table_name_for_session(session_id):CODE
LOWrag_system/api_server.py231def _build_index_config_override(base_config, *, table_name, options):CODE
LOW⚡rag_system/ingestion/document_converter.py193 def _convert_general_to_markdown(self, file_path: str, input_format: InputFormat) -> ConversionResults:CODE
LOWrag_system/pipelines/retrieval_pipeline.py158 def _overview_prefilter_config(self) -> Dict[str, Any]:CODE
LOWrag_system/pipelines/retrieval_pipeline.py428 def _get_surrounding_chunks_lancedb(self, chunk: Dict[str, Any], window_size: int,CODE
LOWrag_system/pipelines/retrieval_pipeline.py504 def _budget_synthesis_context(self, final_docs):CODE
LOWrag_system/pipelines/retrieval_pipeline.py796 def _overview_prefilter_documents(self, query: str) -> Optional[List[str]]:CODE
LOWrag_system/pipelines/retrieval_pipeline.py1362 def _retrieve_candidates_filtered(self, query, base_table, sub_queries, event_callback,CODE
LOW⚡rag_system/utils/ollama_client.py299 async def generate_completion_async(CODE
LOW⚡rag_system/utils/watsonx_client.py149 async def generate_completion_async(CODE
LOW⚡rag_system/agent/loop.py128 def load_overviews_for_indexes(self, idx_ids: list[str]):CODE
LOWrag_system/agent/loop.py214 def _format_query_with_history(self, query: str, history: list) -> str:CODE
LOWrag_system/agent/loop.py309 def _pipeline_config_overrides(self, *, ai_rerank: Optional[bool] = None, retrieval_k: Optional[int] = None, contextSTRING
LOWrag_system/indexing/representations.py45def default_query_instruction(model_name: str) -> str:CODE
Self-Referential Comments8 hits · 19 pts
SeverityFileLineSnippetContext
MEDIUMcreate_index_script.py226 # Create the indexCOMMENT
MEDIUMrun_system.py117 # Create main loggerCOMMENT
MEDIUMbackend/server.py838 # Create a unique filename to avoid overwritesCOMMENT
MEDIUMbackend/database.py752 # Create a test sessionSTRING
MEDIUMrag_system/ingestion/chunking.py124 "chunk_id": f"{document_id}_{i}", # Create a more unique IDCODE
MEDIUMrag_system/pipelines/retrieval_pipeline.py472 # Define the window for the searchCOMMENT
MEDIUMrag_system/agent/loop.py425 # Create a contextual query that includes history for most operationsSTRING
MEDIUMrag_system/indexing/contextualizer.py11# Define the structured prompt templates, adapted from the exampleCOMMENT
Over-Commented Block16 hits · 16 pts
SeverityFileLineSnippetContext
LOWrequirements.txt21COMMENT
LOWbackend/server.py101 or non-200 upstream → 502.COMMENT
LOWeval/run_eval.py141 os.path.join(REPO_ROOT, "Documentation", "*.md")],COMMENT
LOWeval/run_eval.py261 # is: one LLM call per document. Roadmap item 4.3's prefilter cannot beCOMMENT
LOWeval/decisions/phase2-gateway.md221## 5. CommandsCOMMENT
LOW… QUIC A UDP-Based Multiplexed and Secure Transport.txt8361 pn_hwin = pn_win / 2COMMENT
LOWrag_system/main.py41#COMMENT
LOWrag_system/main.py81 "enabled": TrueCOMMENT
LOWrag_system/main.py141 # against every query are dropped, so easy questions send a small,COMMENT
LOWrag_system/utils/ollama_client.py21#COMMENT
LOWrag_system/utils/ollama_client.py101 f"⚠️ Ollama FRONT-TRUNCATED this prompt below the requested window: "COMMENT
LOWrag_system/agent/loop.py541 else:COMMENT
LOWrag_system/indexing/embedders.py1import lancedbCOMMENT
LOWrag_system/indexing/embedders.py21# invalidates vectors written before this existed, so it is recordedCOMMENT
LOWrag_system/indexing/representations.py21# instruction.COMMENT
LOWrag_system/indexing/overview_builder.py1from __future__ import annotationsCOMMENT
Unused Imports15 hits · 15 pts
SeverityFileLineSnippetContext
LOWsystem_health_check.py10CODE
LOWrun_system.py36CODE
LOWbackend/database.py6CODE
LOWeval/corpora/make_hr_handbook.py19CODE
LOWeval/corpora/rfc/download.py23CODE
LOWrag_system/ask_folder.py50CODE
LOWrag_system/ingestion/docling_chunker.py1CODE
LOWrag_system/rerankers/sentence_pruner.py1CODE
LOWrag_system/utils/watsonx_client.py1CODE
LOWrag_system/agent/escalation.py39CODE
LOWrag_system/retrieval/document_fetch.py20CODE
LOWrag_system/retrieval/filters.py41CODE
LOWrag_system/indexing/latechunk.py1CODE
LOWrag_system/indexing/crossref.py32CODE
LOWrag_system/indexing/overview_builder.py1CODE
AI Slop Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMeval/run_eval.py108# documents this harness is tracked in, so every eval-related edit would changeCOMMENT
MEDIUMeval/run_eval.py280 # harness never calls Agent.run(). Sub-queries, when --decompose is passed,COMMENT
MEDIUMeval/run_eval.py352 # fix, so the fingerprint carries the harness's index-code version.COMMENT
MEDIUMeval/run_eval.py576 # retriever directly, so the harness measures the shipped behaviour.COMMENT
MEDIUMrag_system/indexing/embedders.py29# in different database directories (the eval harness does exactly that).COMMENT
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHWATSONX_README.md176 api_key="your_api_key",CODE
HIGHrag_system/utils/watsonx_client.py251 api_key="your-api-key",CODE
Redundant / Tautological Comments9 hits · 9 pts
SeverityFileLineSnippetContext
LOWrun_system.py265 # Check if port is in useCOMMENT
LOWrun_system.py310 # Check if process is still runningCOMMENT
LOWrun_system.py480 # Check if Ollama is already runningCOMMENT
LOWbackend/server.py378 # Check if Ollama is runningCOMMENT
LOWbackend/ollama_client.py212 # Check if Ollama is runningCOMMENT
LOW⚡backend/database.py529 # Check if metadata is already populatedSTRING
LOW⚡backend/database.py546 # Check if table existsSTRING
LOWbackend/database.py643 # Check if FTS index existsSTRING
LOWbackend/database.py670 # Check if this is actually a legacy index by looking at creation dateSTRING
Verbosity Indicators4 hits · 7 pts
SeverityFileLineSnippetContext
LOW⚡rag_system/pipelines/indexing_pipeline.py375 # Step 4: Embedded-overview sidecar (roadmap item 4.3)COMMENT
LOWrag_system/pipelines/indexing_pipeline.py179 # Step 1: Document Processing and ChunkingCOMMENT
LOWrag_system/pipelines/indexing_pipeline.py266 # Step 2: Optional Contextual Enrichment (before indexing for consistency)COMMENT
LOWrag_system/pipelines/indexing_pipeline.py282 # Step 3: Embed chunks into LanceDB and build the native FTS indexCOMMENT
Cross-Language Confusion2 hits · 5 pts
SeverityFileLineSnippetContext
HIGHrag_system/agent/verifier.py39 strings via float(); null, arrays, objects and garbage all fail open to 0,STRING
HIGHrag_system/agent/verifier.py306 # Coerce defensively: a type-mismatched verdict (string "85", null,STRING
Modern Structural Boilerplate4 hits · 4 pts
SeverityFileLineSnippetContext
LOWrag_system/api_server.py23logger = logging.getLogger(__name__)CODE
LOWrag_system/utils/batch_processor.py9logger = logging.getLogger(__name__)CODE
LOWrag_system/indexing/contextualizer.py9logger = logging.getLogger(__name__)CODE
LOW⚡rag_system/indexing/overview_builder.py6logger = logging.getLogger(__name__)CODE
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWrag_system/agent/loop.py295CODE
LOWrag_system/agent/loop.py353CODE
LOWrag_system/agent/loop.py393CODE
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWrag_system/ingestion/chunking.py155 doc_meta = {"title": "My Awesome Document", "author": "Jane Doe", "year": 2024}CODE