AI 基础知识 - GPU 架构、CUDA 编程、大模型基础及AI Agent 相关知识。
This report presents the forensic synthetic code analysis of ForceInjection/AI-fundamentals, a HTML project with 1,835 GitHub stars. SynthScan v2.0 examined 304,322 lines of code across 789 source files, recording 1141 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 5.8 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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 1141 distinct pattern matches across 17 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 |
|---|---|---|---|---|
| MEDIUM | 03_ai_cluster_ops/03_nccl/requirements.txt | 1 | # ============================================================================= | COMMENT |
| MEDIUM | 03_ai_cluster_ops/03_nccl/requirements.txt | 5 | # ============================================================================= | COMMENT |
| MEDIUM | 03_ai_cluster_ops/03_nccl/requirements.txt | 41 | # ============================================================================= | COMMENT |
| MEDIUM | 03_ai_cluster_ops/03_nccl/requirements.txt | 47 | # ============================================================================= | COMMENT |
| MEDIUM | 03_ai_cluster_ops/03_nccl/nccl_multinode_launcher.sh | 2 | # ============================================================================= | COMMENT |
| MEDIUM | 03_ai_cluster_ops/03_nccl/nccl_multinode_launcher.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | 03_ai_cluster_ops/03_nccl/nccl_benchmark.sh | 2 | # ============================================================================= | COMMENT |
| MEDIUM | 03_ai_cluster_ops/03_nccl/nccl_benchmark.sh | 12 | # ============================================================================= | COMMENT |
| MEDIUM | 03_ai_cluster_ops/03_nccl/nccl_benchmark.sh | 70 | # ============================================================================= | COMMENT |
| MEDIUM | 03_ai_cluster_ops/03_nccl/nccl_benchmark.sh | 72 | # ============================================================================= | COMMENT |
| MEDIUM | 03_ai_cluster_ops/03_nccl/nccl_container_manager.sh | 2 | # ============================================================================= | COMMENT |
| MEDIUM | 03_ai_cluster_ops/03_nccl/nccl_container_manager.sh | 9 | # ============================================================================= | COMMENT |
| MEDIUM | …i_cluster_ops/03_nccl/test/test_optimization_levels.sh | 3 | # ============================================================================= | COMMENT |
| MEDIUM | …i_cluster_ops/03_nccl/test/test_optimization_levels.sh | 6 | # ============================================================================= | COMMENT |
| MEDIUM | 03_ai_cluster_ops/03_nccl/k8s/deploy.sh | 2 | # ============================================================================= | COMMENT |
| MEDIUM | 03_ai_cluster_ops/03_nccl/k8s/deploy.sh | 5 | # ============================================================================= | COMMENT |
| MEDIUM | …infiniband/monitor/test_multi_devices_comprehensive.sh | 129 | # ======================================== | COMMENT |
| MEDIUM | …infiniband/monitor/test_multi_devices_comprehensive.sh | 131 | # ======================================== | COMMENT |
| MEDIUM | …infiniband/monitor/test_multi_devices_comprehensive.sh | 390 | # ======================================== | COMMENT |
| MEDIUM | …infiniband/monitor/test_multi_devices_comprehensive.sh | 392 | # ======================================== | COMMENT |
| MEDIUM | …infiniband/monitor/test_multi_devices_comprehensive.sh | 467 | # ======================================== | COMMENT |
| MEDIUM | …infiniband/monitor/test_multi_devices_comprehensive.sh | 469 | # ======================================== | COMMENT |
| MEDIUM | …infiniband/monitor/test_multi_devices_comprehensive.sh | 520 | # ======================================== | COMMENT |
| MEDIUM | …infiniband/monitor/test_multi_devices_comprehensive.sh | 522 | # ======================================== | COMMENT |
| MEDIUM | …ster_ops/02_infiniband/monitor/ib_bandwidth_monitor.sh | 3 | # ============================================================================= | COMMENT |
| MEDIUM | …ster_ops/02_infiniband/monitor/ib_bandwidth_monitor.sh | 8 | # ============================================================================= | COMMENT |
| MEDIUM | …ai_cluster_ops/02_infiniband/health/ib_health_check.sh | 3 | # ============================================================================= | COMMENT |
| MEDIUM | …ai_cluster_ops/02_infiniband/health/ib_health_check.sh | 8 | # ============================================================================= | COMMENT |
| MEDIUM | …uster_ops/02_infiniband/health/test_ib_health_check.sh | 3 | # ============================================================================= | COMMENT |
| MEDIUM | …uster_ops/02_infiniband/health/test_ib_health_check.sh | 22 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 103 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 105 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 111 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 113 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 182 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 184 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 217 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 219 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 251 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 253 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 280 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 282 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 316 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 318 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 349 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 351 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 354 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 356 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 387 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM | 02_gpu_programming/02_cuda/gpu-memory-visual.html | 389 | // ═══════════════════════════════════════════ | COMMENT |
| MEDIUM | …ramming/01_environment/02_cuda_image_build_analysis.md | 64 | # ============================================================================== | COMMENT |
| MEDIUM | …ramming/01_environment/02_cuda_image_build_analysis.md | 66 | # ============================================================================== | COMMENT |
| MEDIUM | …ramming/01_environment/02_cuda_image_build_analysis.md | 91 | # ============================================================================== | COMMENT |
| MEDIUM | …ramming/01_environment/02_cuda_image_build_analysis.md | 93 | # ============================================================================== | COMMENT |
| MEDIUM | …ramming/01_environment/02_cuda_image_build_analysis.md | 136 | # ============================================================================== | COMMENT |
| MEDIUM | …ramming/01_environment/02_cuda_image_build_analysis.md | 138 | # ============================================================================== | COMMENT |
| MEDIUM | …ramming/01_environment/02_cuda_image_build_analysis.md | 156 | # ============================================================================== | COMMENT |
| MEDIUM | …ramming/01_environment/02_cuda_image_build_analysis.md | 158 | # ============================================================================== | COMMENT |
| MEDIUM | …ramming/01_environment/02_cuda_image_build_analysis.md | 169 | # ============================================================================== | COMMENT |
| MEDIUM | …ramming/01_environment/02_cuda_image_build_analysis.md | 171 | # ============================================================================== | COMMENT |
| 115 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | 10_ai_related_course/trae/第一部分-Trae基础入门/第二章-基础交互模式.md | 513 | except Exception as e: | CODE |
| LOW | 10_ai_related_course/trae/第一部分-Trae基础入门/第二章-基础交互模式.md | 752 | except Exception as e: | CODE |
| LOW | 10_ai_related_course/trae/第一部分-Trae基础入门/第二章-基础交互模式.md | 776 | except Exception as e: | CODE |
| LOW | …_ai_related_course/trae/第三部分-高级应用场景/第十二章-微服务架构与服务治理.md | 250 | except Exception: | CODE |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 1260 | except Exception as e: | CODE |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 1413 | except Exception as e: | CODE |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 1536 | except Exception as e: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 1231 | except Exception as e: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 1392 | except Exception as e: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 1526 | except Exception as e: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 1542 | except Exception as e: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 1573 | except Exception as e: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 1782 | except Exception as e: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 2478 | except Exception as e: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 2522 | except Exception as e: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 2548 | except Exception as e: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 2562 | except Exception as e: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 2590 | except Exception as e: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 2613 | except Exception as e: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 2641 | except Exception as e: | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 243 | except Exception as e: | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 356 | except Exception as e: | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 456 | except Exception as e: | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 539 | except Exception as e: | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 585 | except Exception as e: | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 588 | except Exception as e: | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 603 | except Exception as e: | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 774 | except Exception as e: | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 845 | except Exception as e: | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 1127 | except Exception as e: | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 1146 | except Exception as e: | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 1442 | except Exception as e: | CODE |
| LOW | …ent_system/multi_agent_training/01-理论基础/01-多智能体系统概论.md | 1134 | except Exception as e: | CODE |
| LOW | …ti_agent_training/03-LangSmith监控/03-LangSmith监控平台集成.md | 237 | except Exception as e: | CODE |
| LOW | …ti_agent_training/03-LangSmith监控/03-LangSmith监控平台集成.md | 407 | except Exception as e: | CODE |
| LOW | …ti_agent_training/03-LangSmith监控/03-LangSmith监控平台集成.md | 422 | except Exception as e: | CODE |
| LOW | …ti_agent_training/03-LangSmith监控/03-LangSmith监控平台集成.md | 437 | except Exception as e: | CODE |
| LOW | …ti_agent_training/03-LangSmith监控/03-LangSmith监控平台集成.md | 469 | except Exception as e: | CODE |
| LOW | …ti_agent_training/03-LangSmith监控/03-LangSmith监控平台集成.md | 517 | except Exception as e: | CODE |
| LOW | …lated_course/ai_infra_course/入门级/AI Infra 课程 PPT 大纲.md | 261 | except Exception as e: | CODE |
| MEDIUM | …lated_course/ai_infra_course/入门级/AI Infra 课程 PPT 大纲.md | 262 | print(f"Error processing file: {e}") | CODE |
| LOW | 03_ai_cluster_ops/03_nccl/nccl_python_template.py | 24 | except Exception: | CODE |
| LOW | 03_ai_cluster_ops/03_nccl/nccl_python_template.py | 204 | except Exception as cache_error: | CODE |
| LOW | 03_ai_cluster_ops/03_nccl/nccl_python_template.py | 213 | except Exception as e: | CODE |
| LOW | 03_ai_cluster_ops/03_nccl/nccl_python_template.py | 253 | except Exception as e: | CODE |
| LOW | 02_npu_programming/13_finetune/fetch_data.py | 51 | except Exception as e: | CODE |
| LOW | 02_npu_programming/13_finetune/fetch_data.py | 113 | except Exception as e: | CODE |
| LOW | 02_npu_programming/13_finetune/fetch_data.py | 137 | except Exception as e: | CODE |
| LOW | 02_npu_programming/07_rag_on_npu/rag_eval_ragas.py | 150 | except Exception as e: | CODE |
| LOW | 02_npu_programming/07_rag_on_npu/rag_eval_ragas.py | 167 | except Exception as e: | CODE |
| LOW | 02_npu_programming/07_rag_on_npu/rag_eval_ragas.py | 257 | except Exception as e: | CODE |
| LOW | 02_npu_programming/07_rag_on_npu/rag_pipeline.py | 298 | except Exception as e: | CODE |
| LOW | …form/gpu_manager/configs/docker/docker-gpu-config.yaml | 218 | except Exception as e: | CODE |
| MEDIUM | …form/gpu_manager/configs/docker/docker-gpu-config.yaml | 219 | print(f"Error: {e}") | CODE |
| MEDIUM | …form/gpu_manager/configs/docker/docker-gpu-config.yaml | 193 | def get_gpu_info(): | CODE |
| LOW | …m/gpu_manager/configs/hami/hami-workload-examples.yaml | 276 | except Exception as e: | CODE |
| LOW | …atform/gpu_manager/configs/scripts/cuda-debug-tools.sh | 168 | except Exception as e: | CODE |
| LOW | …atform/gpu_manager/configs/scripts/cuda-debug-tools.sh | 403 | except Exception as e: | CODE |
| LOW | …atform/gpu_manager/configs/scripts/cuda-debug-tools.sh | 419 | except Exception as e: | CODE |
| LOW | …/gpu_manager/configs/scripts/gpu-performance-report.sh | 134 | except Exception as e: | CODE |
| 262 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | 10_ai_related_course/trae/第一部分-Trae基础入门/第二章-基础交互模式.md | 943 | def calculate_compound_interest(principal, rate, time, compound_frequency): | CODE |
| LOW | 10_ai_related_course/trae/第一部分-Trae基础入门/第二章-基础交互模式.md | 950 | def calculate_compound_interest(principal, rate, time, compound_frequency): | CODE |
| LOW | 10_ai_related_course/trae/第一部分-Trae基础入门/第二章-基础交互模式.md | 1240 | def process_large_file_generator(filename): | CODE |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 299 | def satisfaction_evaluation_node(state: CustomerServiceState) -> CustomerServiceState: | STRING |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 326 | def create_customer_service_workflow(): | STRING |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 608 | def create_conversation_workflow(): | CODE |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 784 | def create_parallel_analysis_workflow(): | STRING |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 1057 | def should_continue_optimization(state: IterativeOptimizationState) -> str: | STRING |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 1112 | def create_iterative_optimization_workflow(): | STRING |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 1141 | async def run_iterative_optimization(): | CODE |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 1333 | def _determine_recovery_strategy(self, error_type: str, severity: ErrorSeverity, | CODE |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 1382 | async def enterprise_risky_processing_node(state: EnterpriseWorkflowState) -> EnterpriseWorkflowState: | CODE |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 1437 | def enterprise_should_retry_or_fallback(state: EnterpriseWorkflowState) -> str: | CODE |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 1594 | def generate_error_recommendations(error_log: List[dict]) -> List[str]: | CODE |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 1726 | async def monitor_workflow_execution(self, workflow_func, *args, **kwargs): | CODE |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 1777 | def analyze_performance_trend(self) -> str: | CODE |
| LOW | …ulti_agent_training/02-LangGraph框架/02-LangGraph深度应用.md | 1852 | def create_enterprise_customer_service(): | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 130 | def get_docker_compose_config(): | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 590 | async def test_end_to_end_conversation(self, customer_service_system): | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 616 | async def test_performance_under_load(self, customer_service_system): | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 988 | async def monitor_agent_performance(self, agent_id: str) -> AgentMetrics: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 1064 | async def analyze_performance_trends(self, metrics: SystemMetrics) -> Dict[str, Any]: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 1490 | def determine_recovery_actions(self, failure_type: FailureType) -> List[RecoveryAction]: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 1577 | async def kubernetes_restart_deployment(self, deployment_name: str): | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 1639 | async def profile_system_performance(self) -> PerformanceProfile: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 1697 | def generate_optimization_recommendations(self, bottlenecks: List[str]) -> List[str]: | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 1764 | async def performance_optimization_loop(): | CODE |
| LOW | …nt_system/multi_agent_training/05-应用实践/05-应用实践与部署运维.md | 1787 | async def run_performance_optimization(): | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 553 | async def _subscribe_to_notifications(self, agent_id: str): | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 607 | async def _cleanup_expired_messages(self): | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 618 | async def _process_priority_messages(self): | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 792 | def _are_dependencies_satisfied(self, workflow: Workflow, task: WorkflowTask) -> bool: | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 1539 | def setup_customer_service_agents(self): | CODE |
| LOW | …ystem/multi_agent_training/04-企业级架构/04-企业级系统架构设计与实现.md | 1546 | def setup_customer_service_workflows(self): | CODE |
| LOW | …ent_system/multi_agent_training/01-理论基础/01-多智能体系统概论.md | 1279 | async def collaborative_problem_solving(): | CODE |
| LOW | …ti_agent_training/03-LangSmith监控/03-LangSmith监控平台集成.md | 396 | def _coordinator_with_monitoring(self, state: dict): | CODE |
| LOW | …ti_agent_training/03-LangSmith监控/03-LangSmith监控平台集成.md | 411 | def _analyzer_with_monitoring(self, state: dict): | CODE |
| LOW | …ti_agent_training/03-LangSmith监控/03-LangSmith监控平台集成.md | 426 | def _executor_with_monitoring(self, state: dict): | CODE |
| LOW | …ti_agent_training/03-LangSmith监控/03-LangSmith监控平台集成.md | 576 | def analyze_agent_performance(self, agent_name: str, | CODE |
| LOW | …ti_agent_training/03-LangSmith监控/03-LangSmith监控平台集成.md | 658 | def generate_optimization_suggestions(self, agent_name: str) -> List[Dict]: | CODE |
| LOW | …ti_agent_training/03-LangSmith监控/03-LangSmith监控平台集成.md | 695 | def implement_caching_optimization(self, agent_class): | CODE |
| LOW | …ti_agent_training/03-LangSmith监控/03-LangSmith监控平台集成.md | 792 | def _evaluate_task_complexity(self, task: Dict[str, Any]) -> float: | CODE |
| LOW | …lated_course/ai_infra_course/入门级/AI Infra 课程 PPT 大纲.md | 246 | def calculate_column_averages(csv_file_path): | CODE |
| LOW | 02_npu_programming/13_finetune/fetch_data.py | 56 | def fetch_ascend_tech_articles(output_dir: str): | CODE |
| LOW | 02_npu_programming/07_rag_on_npu/rag_eval_ragas.py | 112 | def compute_retrieval_overlap(hits, gt_ids, top_k=5): | CODE |
| LOW | …ign/kubernetes_aiops_benchmark_generation_framework.md | 343 | def generate_dimension_specific_prompt(dimension: str, difficulty: str, scenario_type: str) -> str: | CODE |
| LOW | …ign/kubernetes_aiops_benchmark_generation_framework.md | 426 | def multi_round_generation_refinement(): | STRING |
| LOW | …ign/kubernetes_aiops_benchmark_generation_framework.md | 594 | def _calculate_difficulty_counts(self, total_count, distribution): | CODE |
| LOW | …ign/kubernetes_aiops_benchmark_generation_framework.md | 791 | def calculate_validation_score(self, validation_results): | CODE |
| LOW | …ign/kubernetes_aiops_benchmark_generation_framework.md | 1040 | def update_generation_strategy(self, quality_metrics): | CODE |
| LOW | …ign/kubernetes_aiops_benchmark_generation_framework.md | 1248 | def validate_benchmark_format(benchmark_data, schema_version="1.0"): | CODE |
| LOW | …ign/kubernetes_aiops_benchmark_generation_framework.md | 1397 | def validate_metadata_completeness(self, metadata): | CODE |
| LOW | …ign/kubernetes_aiops_benchmark_generation_framework.md | 1420 | def calculate_overall_quality(self, metadata): | CODE |
| LOW | …ign/kubernetes_aiops_benchmark_generation_framework.md | 1484 | def automated_quality_assessment(benchmark_case): | CODE |
| LOW | …ign/kubernetes_aiops_benchmark_generation_framework.md | 1554 | def calculate_technical_accuracy(generated_benchmarks, expert_validated_set): | CODE |
| LOW | …ign/kubernetes_aiops_benchmark_generation_framework.md | 1571 | def evaluate_scenario_realism(benchmark_cases, production_patterns): | CODE |
| LOW | …ign/kubernetes_aiops_benchmark_generation_framework.md | 1605 | def calculate_overall_quality_score(metrics): | CODE |
| LOW | …ign/kubernetes_aiops_benchmark_generation_framework.md | 1646 | def calculate_diversity_index(benchmark_cases): | CODE |
| LOW | …ign/kubernetes_aiops_benchmark_generation_framework.md | 1750 | def optimize_prompt_templates_bandit(templates, feedback_data, exploration_rate=0.1): | CODE |
| LOW | …ign/kubernetes_aiops_benchmark_generation_framework.md | 1778 | def process_feedback_and_optimize(feedback_data): | CODE |
| 215 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | 10_ai_related_course/ai_infra_course/入门级/讲稿.md | 1778 | #### Agentic RAG:智能体驱动的检索增强生成 | COMMENT |
| MEDIUM | 10_ai_related_course/ai_infra_course/入门级/page_31.html | 134 | <span class="text-[#ed8936]">RAG</span>系统架构:检索增强生成的企业级实践 | CODE |
| MEDIUM | 02_npu_programming/README.md | 120 | ## 7. RAG 实战 | COMMENT |
| MEDIUM | …rogramming/11_llm_inference/01_llm_inference_on_npu.md | 214 | ## 5. 与 RAG 的集成 | COMMENT |
| MEDIUM | 02_npu_programming/13_finetune/01_lora_finetune.md | 189 | ### 3.4 RAG + SFT 协同验证 | COMMENT |
| MEDIUM | 02_npu_programming/07_rag_on_npu/rag_eval_ragas.py | 136 | # 加载 RAG | COMMENT |
| MEDIUM | 02_npu_programming/07_rag_on_npu/02_rag_evaluation.md | 1 | # RAG 评估体系 | COMMENT |
| MEDIUM | 02_npu_programming/07_rag_on_npu/02_rag_evaluation.md | 5 | ### 1.1 为什么要评估 RAG | COMMENT |
| MEDIUM | 02_npu_programming/07_rag_on_npu/02_rag_evaluation.md | 206 | ├── rag_pipeline.py # RAG 主流程 | CODE |
| MEDIUM | 02_npu_programming/07_rag_on_npu/README.md | 1 | # RAG on NPU 实战 | COMMENT |
| MEDIUM | 02_npu_programming/07_rag_on_npu/README.md | 7 | ## 1. [RAG Pipeline on NPU](01_rag_pipeline_on_npu.md) | COMMENT |
| MEDIUM | 02_npu_programming/07_rag_on_npu/rag_pipeline.py | 386 | # ── RAG Pipeline ── | COMMENT |
| MEDIUM | …pu_programming/07_rag_on_npu/01_rag_pipeline_on_npu.md | 1 | # RAG 检索增强生成 on Ascend NPU | COMMENT |
| MEDIUM | …pu_programming/07_rag_on_npu/01_rag_pipeline_on_npu.md | 5 | ### 1.1 什么是 RAG | COMMENT |
| MEDIUM | …pu_programming/07_rag_on_npu/01_rag_pipeline_on_npu.md | 38 | ## 2. RAG 架构 | COMMENT |
| MEDIUM | …pu_programming/07_rag_on_npu/01_rag_pipeline_on_npu.md | 181 | ### 5.3 RAG 问答 | COMMENT |
| MEDIUM | …pu_programming/07_rag_on_npu/01_rag_pipeline_on_npu.md | 454 | └── rag_pipeline.py # RAG 完整 pipeline,包含以下类: | CODE |
| MEDIUM | 07_rag_and_tools/README.md | 1 | # RAG 与工具生态 | COMMENT |
| MEDIUM | 07_rag_and_tools/README.md | 5 | ## 1. RAG 基础能力 | COMMENT |
| MEDIUM | 07_rag_and_tools/rag_basics/README.md | 1 | # RAG 基础 | COMMENT |
| MEDIUM | …ls/rag_basics/chinese_rag_embedding_model_selection.md | 1 | # 中文 RAG 系统 Embedding 模型选型技术文档 | COMMENT |
| MEDIUM | 07_rag_and_tools/rag_basics/rag_comparison.md | 1 | # Agentic RAG 对比 | COMMENT |
| MEDIUM | 07_rag_and_tools/graph_rag/graph_rag_learning_guide.md | 1 | # Knowledge Graphs for RAG(GraphRAG) | COMMENT |
| MEDIUM | 07_rag_and_tools/graph_rag/graph_rag_learning_guide.md | 256 | ### RAG 与 GraphRAG:区别与联系 | STRING |
| MEDIUM | 07_rag_and_tools/graph_rag/README.md | 7 | ### 1.1 GraphRAG 基础:面向 RAG 的知识图谱 | COMMENT |
| MEDIUM⚡ | 98_llm_programming/java_ai/spring_ai_cn.md | 3 | > **原文地址**:`https://spring.io/blog/2025/01/21/spring-ai-agentic-patterns` | CODE |
| MEDIUM⚡ | 98_llm_programming/java_ai/spring_ai_cn.md | 7 |  项目实现了下文讨论的模式。 | CODE |
| MEDIUM | 98_llm_programming/java_ai/spring_ai_cn.md | 24 | ### 1.1 [链式工作流](https://github.com/spring-projects/spring-ai-examples/tree/main/agentic-patterns/chain-workflow) | COMMENT |
| MEDIUM | 98_llm_programming/java_ai/spring_ai_cn.md | 24 | ### 1.1 [链式工作流](https://github.com/spring-projects/spring-ai-examples/tree/main/agentic-patterns/chain-workflow) | COMMENT |
| MEDIUM | 98_llm_programming/java_ai/spring_ai_cn.md | 64 | ### 1.2 [并行化工作流](https://github.com/spring-projects/spring-ai-examples/tree/main/agentic-patterns/parallelization-worflo | COMMENT |
| MEDIUM | 98_llm_programming/java_ai/spring_ai_cn.md | 64 | ### 1.2 [并行化工作流](https://github.com/spring-projects/spring-ai-examples/tree/main/agentic-patterns/parallelization-worflo | COMMENT |
| MEDIUM | 98_llm_programming/java_ai/spring_ai_cn.md | 99 | ### 1.3 [路由工作流](https://github.com/spring-projects/spring-ai-examples/tree/main/agentic-patterns/routing-workflow) | COMMENT |
| MEDIUM | 98_llm_programming/java_ai/spring_ai_cn.md | 99 | ### 1.3 [路由工作流](https://github.com/spring-projects/spring-ai-examples/tree/main/agentic-patterns/routing-workflow) | COMMENT |
| MEDIUM | 98_llm_programming/java_ai/spring_ai_cn.md | 134 | ### 1.4 [协调器-工作者](https://github.com/spring-projects/spring-ai-examples/tree/main/agentic-patterns/orchestrator-workers- | COMMENT |
| MEDIUM | 98_llm_programming/java_ai/spring_ai_cn.md | 134 | ### 1.4 [协调器-工作者](https://github.com/spring-projects/spring-ai-examples/tree/main/agentic-patterns/orchestrator-workers- | COMMENT |
| MEDIUM | 98_llm_programming/java_ai/spring_ai_cn.md | 183 | ### 1.5 [评估器-优化器](https://github.com/spring-projects/spring-ai-examples/tree/main/agentic-patterns/evaluator-optimizer-w | COMMENT |
| MEDIUM | 98_llm_programming/java_ai/spring_ai_cn.md | 183 | ### 1.5 [评估器-优化器](https://github.com/spring-projects/spring-ai-examples/tree/main/agentic-patterns/evaluator-optimizer-w | COMMENT |
| MEDIUM | 09_inference_system/reference_design/06-推理服务架构设计.md | 790 | ### 6.13.1 检索增强生成 (RAG) 架构 | COMMENT |
| MEDIUM | …rence_system/cost_analysis/llm_api_pricing_analysis.md | 334 | ### 3.4 延伸探讨:API 计费与内置 RAG 检索 | COMMENT |
| MEDIUM | …g_raw/2026-04-17/jetbrains/jetbrains-ai-licensing.html | 30 | </head><body data-id="Licensing_and_subscriptions" data-main-title="JetBrains AI plans and usage" data-article-props="{& | CODE |
| MEDIUM | …g_raw/2026-04-17/jetbrains/jetbrains-ai-licensing.html | 30 | </head><body data-id="Licensing_and_subscriptions" data-main-title="JetBrains AI plans and usage" data-article-props="{& | CODE |
| MEDIUM | …/data/pricing_raw/2026-04-17/aws/amazon-q-pricing.html | 1268 | <script type="application/json">{"data":{"items":[{"fields":{"footer":"{\n\t\"createAccountButtonLabel\": \"创建 A | CODE |
| MEDIUM | …g_raw/2026-04-18/jetbrains/jetbrains-ai-licensing.html | 30 | </head><body data-id="Licensing_and_subscriptions" data-main-title="JetBrains AI plans and usage" data-article-props="{& | CODE |
| MEDIUM | …g_raw/2026-04-18/jetbrains/jetbrains-ai-licensing.html | 30 | </head><body data-id="Licensing_and_subscriptions" data-main-title="JetBrains AI plans and usage" data-article-props="{& | CODE |
| MEDIUM | …/data/pricing_raw/2026-04-18/aws/amazon-q-pricing.html | 306 | <script type="application/json">{"data":{"items":[{"fields":{"footer":"{\n\t\"createAccountButtonLabel\": \"创建 A | CODE |
| MEDIUM | …/data/pricing_raw/2026-04-18/aws/amazon-q-pricing.html | 307 | <div data-eb-tpl-root="" data-reactroot=""><footer role="contentinfo"><div data-rg-lang="cn" data-rg-locale="zh- | CODE |
| MEDIUM | …rence_system/vllm/routing/semantic_router_deep_dive.md | 566 | ├── req_filter_rag.go # RAG 上下文注入 | CODE |
| MEDIUM | …rence_system/vllm/routing/semantic_router_deep_dive.md | 586 | ## 9. 记忆系统和 RAG | COMMENT |
| MEDIUM | …rence_system/vllm/routing/semantic_router_deep_dive.md | 623 | ### 9.2 混合 RAG 检索管道 | COMMENT |
| MEDIUM | …kv_cache/01_concepts/prefix_caching/radix_attention.md | 937 | #### 5.3.1 RAG 场景的挑战 | COMMENT |
| MEDIUM | …ence_system/kv_cache/02_systems/lmcache/cache_blend.md | 1 | # CacheBlend 技术详解:RAG 场景下的 KV Cache 动态融合机制与源码剖析 | COMMENT |
| MEDIUM | …epts/hallucination/llm_hallucination_and_mitigation.md | 140 | ### (三)检索增强生成(RAG) | COMMENT |
| MEDIUM | …bedding/LLM_embeddings_explained_visual_guide.zh-CN.md | 343 | # Initialize the custom embedding model | COMMENT |
| MEDIUM | …cepts/embedding/text_embeddings_comprehensive_guide.md | 629 | ### 5.4 RAG – 检索增强生成 | COMMENT |
| MEDIUM | …arch/deepwiki/deepwiki_usage_and_technical_analysis.md | 103 | ### (三)向量化检索与 RAG 问答 | COMMENT |
| MEDIUM | …_system/multi_agent/multi_agent_system/src/__init__.py | 2 | # Enterprise-grade multi-agent system implementation | COMMENT |
| MEDIUM | …ent_design/docs/all-agentic-architectures-deep-dive.md | 5 | > 项目地址:<https://github.com/FareedKhan-dev/all-agentic-architectures> | CODE |
| MEDIUM | …ent_design/docs/all-agentic-architectures-deep-dive.md | 1979 | git clone https://github.com/your-username/all-agentic-architectures.git | CODE |
| MEDIUM | 08_agentic_system/agent_design/docs/react-agent.md | 11 | - [2.1.1 ReAct vs 传统 Chain-of-Thought (CoT)](#211-react-vs-传统-chain-of-thought-cot) | CODE |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | 02_npu_programming/11_llm_inference/llm_inference.py | 14 | CODE | |
| LOW | 02_npu_programming/13_finetune/gen_sft_data.py | 16 | CODE | |
| LOW | 02_npu_programming/13_finetune/lora_finetune.py | 34 | CODE | |
| LOW | 02_npu_programming/13_finetune/fetch_data.py | 14 | CODE | |
| LOW | 02_npu_programming/13_finetune/fetch_data.py | 17 | CODE | |
| LOW | 02_npu_programming/13_finetune/fetch_data.py | 18 | CODE | |
| LOW | 02_npu_programming/07_rag_on_npu/hybrid_search.py | 17 | CODE | |
| LOW | 02_npu_programming/07_rag_on_npu/rag_eval.py | 12 | CODE | |
| LOW | 02_npu_programming/07_rag_on_npu/rag_eval_ragas.py | 10 | CODE | |
| LOW | 02_npu_programming/07_rag_on_npu/rag_eval_ragas.py | 14 | CODE | |
| LOW | 02_npu_programming/07_rag_on_npu/rag_eval_ragas.py | 24 | CODE | |
| LOW | 02_npu_programming/07_rag_on_npu/rag_pipeline.py | 24 | CODE | |
| LOW | 02_npu_programming/03_pytorch_npu/train_resnet50.py | 14 | CODE | |
| LOW | 02_npu_programming/03_pytorch_npu/train_resnet50.py | 15 | CODE | |
| LOW | 02_npu_programming/03_pytorch_npu/train_resnet50.py | 21 | CODE | |
| LOW | 02_npu_programming/04_mindspore/train_mindspore.py | 13 | CODE | |
| LOW | 02_npu_programming/04_mindspore/train_mindspore.py | 15 | CODE | |
| LOW | 02_npu_programming/10_mini_gpt/train_gpt.py | 11 | CODE | |
| LOW | 02_npu_programming/10_mini_gpt/train_gpt.py | 19 | CODE | |
| LOW | 02_npu_programming/12_ddp/ddp_train.py | 20 | CODE | |
| LOW | 02_npu_programming/12_ddp/ddp_train.py | 21 | CODE | |
| LOW | 02_npu_programming/12_ddp/ddp_train.py | 22 | CODE | |
| LOW | 02_npu_programming/12_ddp/ddp_train.py | 23 | CODE | |
| LOW | 02_npu_programming/12_ddp/ddp_train.py | 25 | CODE | |
| LOW | 02_npu_programming/12_ddp/ddp_train.py | 27 | CODE | |
| LOW | 02_npu_programming/08_npu_profiling/profile_ops.py | 19 | CODE | |
| LOW | 02_npu_programming/08_npu_profiling/profile_ops.py | 25 | CODE | |
| LOW | …_npu_programming/09_flash_attention/flash_attention.py | 18 | CODE | |
| LOW | 07_rag_and_tools/synergized_llms_kgs/demo/api/server.py | 14 | CODE | |
| LOW | 07_rag_and_tools/synergized_llms_kgs/demo/api/server.py | 14 | CODE | |
| LOW | …i_platform/gpu_manager/configs/scripts/ai-benchmark.py | 17 | CODE | |
| LOW | …i_platform/gpu_manager/configs/scripts/ai-benchmark.py | 17 | CODE | |
| LOW | …i_platform/gpu_manager/configs/scripts/ai-benchmark.py | 17 | CODE | |
| LOW | …i_platform/gpu_manager/configs/scripts/ai-benchmark.py | 22 | CODE | |
| LOW | …i_platform/gpu_manager/configs/scripts/ai-benchmark.py | 24 | CODE | |
| LOW | …tem/kv_cache/01_concepts/prefix_caching/rope_verify.py | 18 | CODE | |
| LOW | 09_inference_system/deployment/slo_calc_v2.py | 25 | CODE | |
| LOW | 09_inference_system/deployment/slo_calc_v2.py | 25 | CODE | |
| LOW | 09_inference_system/deployment/slo_calc_v2.py | 25 | CODE | |
| LOW | …damentals/llm_basic_concepts/token/token_estimation.py | 3 | CODE | |
| LOW | …_agentic_system/multi_agent/multi_agent_system/main.py | 28 | CODE | |
| LOW | …_agentic_system/multi_agent/multi_agent_system/main.py | 28 | CODE | |
| LOW | …_agentic_system/multi_agent/multi_agent_system/main.py | 29 | CODE | |
| LOW | …_agentic_system/multi_agent/multi_agent_system/main.py | 32 | CODE | |
| LOW | …ulti_agent/multi_agent_system/tests/test_api_client.py | 17 | CODE | |
| LOW | …ulti_agent/multi_agent_system/tests/test_api_client.py | 17 | CODE | |
| LOW | …ulti_agent/multi_agent_system/tests/test_api_client.py | 18 | CODE | |
| LOW | …ulti_agent/multi_agent_system/tests/test_api_server.py | 13 | CODE | |
| LOW | …ulti_agent/multi_agent_system/tests/test_api_server.py | 14 | CODE | |
| LOW | …em/multi_agent/multi_agent_system/tests/test_system.py | 10 | CODE | |
| LOW | …em/multi_agent/multi_agent_system/tests/test_system.py | 12 | CODE | |
| LOW | …em/multi_agent/multi_agent_system/tests/test_system.py | 13 | CODE | |
| LOW | …em/multi_agent/multi_agent_system/tests/test_system.py | 13 | CODE | |
| LOW | …em/multi_agent/multi_agent_system/tests/test_system.py | 13 | CODE | |
| LOW | …em/multi_agent/multi_agent_system/tests/test_system.py | 28 | CODE | |
| LOW | …em/multi_agent/multi_agent_system/tests/test_system.py | 28 | CODE | |
| LOW | …em/multi_agent/multi_agent_system/tests/test_system.py | 31 | CODE | |
| LOW | …multi_agent_system/src/workflows/langgraph_workflow.py | 2 | CODE | |
| LOW | …multi_agent_system/src/workflows/langgraph_workflow.py | 4 | CODE | |
| LOW | …multi_agent_system/src/workflows/langgraph_workflow.py | 4 | CODE | |
| 73 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …ti_agent_training/03-LangSmith监控/03-LangSmith监控平台集成.md | 205 | api_key="your-api-key" | CODE |
| HIGH | …ti_agent_training/03-LangSmith监控/03-LangSmith监控平台集成.md | 368 | os.environ["LANGCHAIN_API_KEY"] = "your-api-key" | CODE |
| HIGH | 07_rag_and_tools/graph_rag/graph_rag_learning_guide.md | 137 | export OPENAI_API_KEY="your_api_key" # LLM 服务的 API Key | CODE |
| HIGH | …tic_system/agent_design/coref-dialogue-system/setup.sh | 99 | echo " export OPENAI_API_KEY='your-api-key'" | CODE |
| HIGH | …ic_system/agent_design/coref-dialogue-system/README.md | 851 | api_key="your_api_key" | CODE |
| HIGH | 08_agentic_system/context/openviking-deep-dive.md | 440 | client = SyncHTTPClient(url="http://localhost:1933", api_key="your-api-key") | CODE |
| HIGH | …ystem/memory/research/theory/ai-agent-memory-theory.md | 2320 | openai_api_key="your_api_key", | CODE |
| HIGH | …ystem/memory/research/theory/ai-agent-memory-theory.md | 2342 | openai_api_key="your_api_key", | CODE |
| HIGH | …memory/research/systems/memoryos-architecture-guide.md | 64 | client = OpenAI(api_key="your-api-key") | CODE |
| HIGH | …memory/research/systems/memoryos-architecture-guide.md | 86 | openai_api_key="your-api-key", | CODE |
| HIGH | …memory/research/systems/memoryos-architecture-guide.md | 125 | openai_api_key="your-api-key", # OpenAI API 密钥 | CODE |
| HIGH | …memory/research/systems/memoryos-architecture-guide.md | 374 | openai_api_key="your-api-key", # 必填:OpenAI API 密钥 | CODE |
| HIGH | …system/memory/research/systems/memmachine-deep-dive.md | 153 | api_key: "your-api-key-here" | CODE |
| HIGH | …ntic_system/memory/research/systems/mem0-quickstart.md | 58 | client = MemoryClient(api_key="your-api-key") | CODE |
| HIGH | …ntic_system/memory/research/systems/mem0-quickstart.md | 357 | "api_key": "your-api-key", | CODE |
| HIGH | …ntic_system/memory/research/systems/mem0-quickstart.md | 368 | "api_key": "your-api-key", | CODE |
| HIGH | 08_agentic_system/memory/langchain/langchain_memory.md | 431 | export OPENAI_API_KEY="your-api-key-here" | CODE |
| HIGH | …ic_system/agent_infra/docs/deepseek-tui-in-practice.md | 111 | export DEEPSEEK_API_KEY="YOUR_API_KEY" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | 03_ai_cluster_ops/03_nccl/requirements.txt | 1 | # ============================================================================= | COMMENT |
| LOW | 03_ai_cluster_ops/03_nccl/requirements.txt | 21 | COMMENT | |
| LOW | 03_ai_cluster_ops/03_nccl/requirements.txt | 41 | # ============================================================================= | COMMENT |
| LOW | 03_ai_cluster_ops/03_nccl/nccl_multinode_launcher.sh | 1 | #!/bin/bash | COMMENT |
| LOW | 03_ai_cluster_ops/03_nccl/nccl_benchmark.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | 03_ai_cluster_ops/03_nccl/nccl_container_manager.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …uster_ops/02_infiniband/health/test_ib_health_check.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …tive_ai_platform/gpu_manager/03_resource_management.md | 1541 | // === 第一步:获取自旋锁并禁用中断 === | COMMENT |
| LOW | …tive_ai_platform/gpu_manager/03_resource_management.md | 1621 | COMMENT | |
| LOW | …tive_ai_platform/gpu_manager/03_resource_management.md | 1961 | // === 第三步:选择操作(适者生存)=== | COMMENT |
| LOW | …tive_ai_platform/gpu_manager/03_resource_management.md | 2161 | COMMENT | |
| LOW | …tive_ai_platform/gpu_manager/03_resource_management.md | 2781 | // 在 kernel 执行完成后插入结束时间戳事件 | COMMENT |
| LOW | …tive_ai_platform/gpu_manager/03_resource_management.md | 3421 | // 错误传播函数 - 分布式系统错误追踪与上下文保持算法 | COMMENT |
| LOW | …tive_ai_platform/gpu_manager/03_resource_management.md | 3521 | // === 第一步:设置追踪 ID === | COMMENT |
| LOW | …i_platform/gpu_manager/code/memory/numa_aware_memory.c | 1 | /** | COMMENT |
| LOW | …tform/gpu_manager/code/memory/unified_memory_manager.c | 1 | // 统一内存管理器实现 | COMMENT |
| LOW | …tform/gpu_manager/code/memory/memory_defragmentation.c | 1 | /** | COMMENT |
| LOW | …atform/gpu_manager/code/memory/unified_address_space.c | 1 | /** | COMMENT |
| LOW | …latform/gpu_manager/code/memory/memory_hot_migration.c | 1 | /** | COMMENT |
| LOW | …atform/gpu_manager/code/memory/memory_fault_recovery.c | 1 | /** | COMMENT |
| LOW | …tive_ai_platform/gpu_manager/code/memory/memory_pool.c | 1 | /** | COMMENT |
| LOW | …m/gpu_manager/code/memory/memory_virtualization_demo.c | 1 | /** | COMMENT |
| LOW | …ative_ai_platform/gpu_manager/code/memory/memory_qos.c | 1 | /** | COMMENT |
| LOW | …m/gpu_manager/code/memory/memory_overcommit_advanced.c | 1 | /** | COMMENT |
| LOW | …tive_ai_platform/gpu_manager/code/memory/memory_swap.c | 1 | /** | COMMENT |
| LOW | …orm/gpu_manager/code/virtualization/kernel_intercept.c | 1 | /** | COMMENT |
| LOW | …orm/gpu_manager/code/virtualization/kernel_intercept.c | 81 | typedef pthread_mutex_t spinlock_t; | COMMENT |
| LOW | …orm/gpu_manager/code/virtualization/kernel_intercept.c | 141 | int dummy; | COMMENT |
| LOW | …tive_ai_platform/gpu_manager/code/cache/result_cache.c | 1 | #include <stdio.h> | COMMENT |
| LOW | …tive_ai_platform/gpu_manager/code/cache/result_cache.h | 1 | #ifndef RESULT_CACHE_H | COMMENT |
| LOW | …_ai_platform/gpu_manager/code/scheduling/qos_manager.c | 1 | /* | COMMENT |
| LOW | …_ai_platform/gpu_manager/code/scheduling/qos_manager.c | 61 | COMMENT | |
| LOW | …rm/gpu_manager/code/scheduling/multi_queue_scheduler.c | 1 | /** | COMMENT |
| LOW | …i_platform/gpu_manager/code/scheduling/error_handler.c | 1 | /* | COMMENT |
| LOW | …i_platform/gpu_manager/code/scheduling/load_balancer.c | 1 | // 多GPU负载均衡算法实现 | COMMENT |
| LOW | …i_platform/gpu_manager/code/scheduling/gpu_scheduler.c | 1 | /** | COMMENT |
| LOW | …i_platform/gpu_manager/code/scheduling/gpu_scheduler.c | 141 | #define destroy_workqueue(wq) do {} while(0) | COMMENT |
| LOW | …i_platform/gpu_manager/code/scheduling/gpu_scheduler.c | 361 | // 同优先级任务将在当前任务完成时间片后进行调度 | COMMENT |
| LOW | …tform/gpu_manager/code/scheduling/priority_scheduler.c | 1 | /* | COMMENT |
| LOW | …tform/gpu_manager/code/scheduling/priority_scheduler.c | 261 | // 多级反馈队列时间片调度算法实现 | COMMENT |
| LOW | …tform/gpu_manager/code/scheduling/priority_scheduler.c | 441 | // MODULE_DESCRIPTION("GPU Priority Scheduler"); | COMMENT |
| LOW | …rm/gpu_manager/code/optimization/bandwidth_optimizer.h | 1 | #ifndef BANDWIDTH_OPTIMIZER_H | COMMENT |
| LOW | …u_manager/code/optimization/qos_bandwidth_controller.c | 1 | // QoS带宽控制器实现 | COMMENT |
| LOW | …form/gpu_manager/code/optimization/latency_optimizer.h | 1 | #ifndef LATENCY_OPTIMIZER_H | COMMENT |
| LOW | …rm/gpu_manager/code/optimization/bandwidth_optimizer.c | 1 | #include <stdio.h> | COMMENT |
| LOW | …gpu_manager/code/optimization/llm_resource_optimizer.c | 1 | // 大模型训练资源管理优化实现 | COMMENT |
| LOW | …latform/gpu_manager/code/optimization/fault_detector.c | 1 | // 故障检测与隔离机制实现 | COMMENT |
| LOW | …form/gpu_manager/code/optimization/latency_optimizer.c | 1 | #include <stdio.h> | COMMENT |
| LOW | …tform/gpu_manager/code/include/memory_virtualization.h | 1 | #ifndef MEMORY_VIRTUALIZATION_H | COMMENT |
| LOW | …pu_manager/code/testing/performance/performance_test.c | 1 | /* | COMMENT |
| LOW | …ative_ai_platform/gpu_manager/code/common/gpu_common.c | 1 | #include <stdio.h> | COMMENT |
| LOW | …ative_ai_platform/gpu_manager/code/common/gpu_common.h | 1 | #ifndef GPU_COMMON_H | COMMENT |
| LOW | …form/gpu_manager/code/partitioning/memory_overcommit.c | 1 | /** | COMMENT |
| LOW | …tive_ai_platform/gpu_manager/code/remote/remote_call.c | 1 | /** | COMMENT |
| LOW | …_platform/gpu_manager/code/remote/connection_monitor.h | 1 | #ifndef CONNECTION_MONITOR_H | COMMENT |
| LOW | …ve_ai_platform/gpu_manager/code/remote/remote_client.c | 1 | /* | COMMENT |
| LOW | …platform/gpu_manager/code/remote/remote_gpu_protocol.c | 1 | /** | COMMENT |
| LOW | …platform/gpu_manager/code/remote/remote_gpu_protocol.c | 121 | COMMENT | |
| LOW | …_platform/gpu_manager/code/remote/connection_monitor.c | 1 | #include <stdio.h> | COMMENT |
| LOW | …_platform/gpu_manager/hami/hmai-gpu-resources-guide.md | 781 | COMMENT | |
| 12 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | 03_ai_cluster_ops/03_nccl/nccl_python_template.py | 71 | CODE | |
| LOW | 02_npu_programming/13_finetune/gen_sft_data.py | 44 | CODE | |
| LOW | 02_npu_programming/13_finetune/lora_finetune.py | 184 | CODE | |
| LOW | 02_npu_programming/13_finetune/lora_finetune.py | 213 | CODE | |
| LOW | 02_npu_programming/13_finetune/lora_finetune.py | 64 | CODE | |
| LOW | 02_npu_programming/13_finetune/fetch_data.py | 22 | CODE | |
| LOW | 02_npu_programming/13_finetune/fetch_data.py | 56 | CODE | |
| LOW | 02_npu_programming/13_finetune/fetch_data.py | 120 | CODE | |
| LOW | 02_npu_programming/07_rag_on_npu/hybrid_search.py | 191 | CODE | |
| LOW | 02_npu_programming/07_rag_on_npu/hybrid_search.py | 239 | CODE | |
| LOW | 02_npu_programming/07_rag_on_npu/rag_eval_ragas.py | 133 | CODE | |
| LOW | 02_npu_programming/07_rag_on_npu/rag_pipeline.py | 499 | CODE | |
| LOW | 02_npu_programming/12_ddp/ddp_train.py | 144 | CODE | |
| LOW | 02_npu_programming/12_ddp/ddp_train.py | 73 | CODE | |
| LOW | 02_npu_programming/08_npu_profiling/profile_ops.py | 72 | CODE | |
| LOW | …nd_tools/synergized_llms_kgs/demo/etl/generate_data.py | 77 | CODE | |
| LOW | …i_platform/gpu_manager/configs/scripts/ai-benchmark.py | 82 | CODE | |
| LOW | …i_platform/gpu_manager/configs/scripts/ai-benchmark.py | 154 | CODE | |
| LOW | …i_platform/gpu_manager/configs/scripts/ai-benchmark.py | 216 | CODE | |
| LOW | …i_platform/gpu_manager/configs/scripts/ai-benchmark.py | 326 | CODE | |
| LOW | …i_platform/gpu_manager/configs/scripts/ai-benchmark.py | 356 | CODE | |
| LOW | …i_platform/gpu_manager/configs/scripts/ai-benchmark.py | 662 | CODE | |
| LOW | …i_platform/gpu_manager/configs/scripts/ai-benchmark.py | 710 | CODE | |
| LOW | …i_platform/gpu_manager/configs/scripts/ai-benchmark.py | 739 | CODE | |
| LOW | …nce_system/memory_calc/calculate_deepseek_v4_memory.py | 53 | CODE | |
| LOW | 09_inference_system/cost_analysis/fetch_pricing.py | 182 | CODE | |
| LOW | 09_inference_system/cost_analysis/fetch_pricing.py | 214 | CODE | |
| LOW | …s/coding_plan/scripts/generate_objective_comparison.py | 24 | CODE | |
| LOW | …s/coding_plan/scripts/generate_objective_comparison.py | 61 | CODE | |
| LOW | …_agentic_system/multi_agent/multi_agent_system/main.py | 542 | CODE | |
| LOW | …_agentic_system/multi_agent/multi_agent_system/main.py | 429 | CODE | |
| LOW | …_agentic_system/multi_agent/multi_agent_system/main.py | 483 | CODE | |
| LOW | …ti_agent/multi_agent_system/tests/test_interactions.py | 155 | CODE | |
| LOW | …multi_agent_system/src/workflows/langgraph_workflow.py | 43 | CODE | |
| LOW | …ulti_agent/multi_agent_system/src/agents/base_agent.py | 454 | CODE | |
| LOW | …_agent/multi_agent_system/src/agents/research_agent.py | 396 | CODE | |
| LOW | …_agent/multi_agent_system/src/agents/analysis_agent.py | 189 | CODE | |
| LOW | …_agent/multi_agent_system/src/agents/analysis_agent.py | 326 | CODE | |
| LOW | …_agent/multi_agent_system/src/agents/analysis_agent.py | 562 | CODE | |
| LOW | …_agent/multi_agent_system/src/agents/analysis_agent.py | 641 | CODE | |
| LOW | …_agent/multi_agent_system/src/agents/analysis_agent.py | 688 | CODE | |
| LOW | …_agent/multi_agent_system/src/agents/analysis_agent.py | 714 | CODE | |
| LOW | …i_agent_system/src/examples/customer_service_system.py | 370 | CODE | |
| LOW | …nt/multi_agent_system/src/communication/message_bus.py | 91 | CODE | |
| LOW | …nt/multi_agent_system/src/communication/message_bus.py | 338 | CODE | |
| LOW | …design/coref-dialogue-system/tests/test_performance.py | 11 | CODE | |
| LOW | …stem/memory/langchain/code/langgraph_memory_example.py | 191 | CODE | |
| LOW | 08_agentic_system/memory/langchain/code/main.py | 142 | CODE | |
| LOW | 08_agentic_system/memory/langchain/code/main.py | 210 | CODE | |
| LOW | 08_agentic_system/memory/langchain/code/llm_factory.py | 222 | CODE | |
| LOW | …system/memory/langchain/code/smart_customer_service.py | 449 | CODE | |
| LOW | 08_agentic_system/mcp/mcp_demo/client_for_k8s.py | 20 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | 02_npu_programming/05_tools/03_atc_model_conversion.md | 12 | # Step 1: PyTorch 导出 ONNX | COMMENT |
| LOW | 02_npu_programming/05_tools/03_atc_model_conversion.md | 26 | # Step 2: ATC ONNX → OM | COMMENT |
| LOW | 02_npu_programming/06_advanced/01_ascend_c_intro.md | 64 | # Step 1: PyTorch 导出 ONNX | COMMENT |
| LOW | 02_npu_programming/06_advanced/01_ascend_c_intro.md | 75 | # Step 2: ATC ONNX → OM | COMMENT |
| LOW | 02_gpu_programming/02_cuda/16_async_copy_pipeline.md | 25 | // Step 1: Load tile from Global Memory → Shared Memory (同步) | COMMENT |
| LOW | 02_gpu_programming/02_cuda/16_async_copy_pipeline.md | 30 | // Step 2: Compute from Shared Memory | COMMENT |
| LOW⚡ | …kv_cache/01_concepts/basic/paged_attention_visual.html | 149 | // Step 1: A(3 used+5 waste=8, 8/24). Free=16. Paged: A→[0,1,2] (3/24). | COMMENT |
| LOW⚡ | …kv_cache/01_concepts/basic/paged_attention_visual.html | 150 | // Step 2: B(5 used+3 waste=8, 16/24). Free=8. Paged: B→[3,4,5,6,7] (8/24). | COMMENT |
| LOW⚡ | …kv_cache/01_concepts/basic/paged_attention_visual.html | 151 | // Step 3: C(2 used+6 waste=8, 24/24). Free=0. Paged: C→[8,9] (10/24). | COMMENT |
| LOW⚡ | …kv_cache/01_concepts/basic/paged_attention_visual.html | 154 | // Step 4: D blocked because A+B+C = 24/24 full. PagedAttention: only 10/24. | COMMENT |
| LOW⚡ | …ory/research/systems/hermes-agent-memory-management.md | 750 | # Step 1: 加载配置(硬编码初始值均为 False,实际值由配置文件覆盖; | COMMENT |
| LOW⚡ | …ory/research/systems/hermes-agent-memory-management.md | 759 | # Step 2: 创建 MemoryStore 并从磁盘加载(仅在内存功能启用时) | COMMENT |
| LOW⚡ | …ory/research/systems/hermes-agent-memory-management.md | 767 | # Step 3: 创建 MemoryManager(仅在配置了外部 provider 时创建) | COMMENT |
| LOW | …ory/research/systems/hermes-agent-memory-management.md | 779 | # Step 4: 初始化外部 provider | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …kv_cache/01_concepts/basic/paged_attention_visual.html | 149 | // Step 1: A(3 used+5 waste=8, 8/24). Free=16. Paged: A→[0,1,2] (3/24). | COMMENT |
| LOW⚡ | …kv_cache/01_concepts/basic/paged_attention_visual.html | 150 | // Step 2: B(5 used+3 waste=8, 16/24). Free=8. Paged: B→[3,4,5,6,7] (8/24). | COMMENT |
| LOW⚡ | …kv_cache/01_concepts/basic/paged_attention_visual.html | 151 | // Step 3: C(2 used+6 waste=8, 24/24). Free=0. Paged: C→[8,9] (10/24). | COMMENT |
| LOW⚡ | …kv_cache/01_concepts/basic/paged_attention_visual.html | 154 | // Step 4: D blocked because A+B+C = 24/24 full. PagedAttention: only 10/24. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | 10_ai_related_course/trae/第一部分-Trae基础入门/第二章-基础交互模式.md | 1047 | 取款操作 Args: amount (float): 取款金额 Returns: bool: 取款是否成功 Raises | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | 02_npu_programming/07_rag_on_npu/rag_eval_ragas.py | 263 | print(" python3 -m venv eval-env && source eval-env/bin/activate") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | 02_npu_programming/04_mindspore/test_mindspore.py | 12 | # Create a simple tensor on Ascend | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | 09_inference_system/sglang/inference-pipeline.html | 384 | <div class="qpanel-area">${qpanel || '<span class="placeholder">—</span>'}</div> | CODE |
| LOW | 08_agentic_system/memory/langchain/code/llm_factory.py | 91 | api_key = api_key or config.local_api_key or "dummy-key" # 本地模型可能不需要真实的API key | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …_agentic_system/multi_agent/multi_agent_system/main.py | 49 | logger = logging.getLogger(__name__) | CODE |
| LOW | …m/agent_design/coref-dialogue-system/tests/__init__.py | 37 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …platform/gpu_manager/code/examples/inference_client.py | 20 | CODE | |
| LOW | …lysis/coding_plan/scripts/fetch_coding_plan_pricing.py | 283 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …tem/agent_skills/pdf_translator/scripts/generate_md.py | 53 | # Check if stdin has data | STRING |