Repository Analysis

Tencent/WeKnora

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

3.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Tencent/WeKnora, a Go project with 18,267 GitHub stars. SynthScan v2.0 examined 627,212 lines of code across 2019 source files, recording 1646 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 3.5 places this repository in the Likely human-written 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).

3.5
Adjusted Score
3.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
18.3K
Stars
Go
Language
627.2K
Lines of Code
2.0K
Files
1.6K
Pattern Hits
2026-07-14
Scan Date
0.02
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 1HIGH 33MEDIUM 139LOW 1473

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 1646 distinct pattern matches across 21 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.

Over-Commented Block778 hits · 770 pts
SeverityFileLineSnippetContext
LOWdocker-compose.yml41 # Optional: mount custom skills directory (allows adding skills without rebuilding image)COMMENT
LOWdocker-compose.yml161 - TENANT_AES_KEY=${TENANT_AES_KEY:-}COMMENT
LOWdocker-compose.yml561 # ---------------------------------------------------------------------------COMMENT
LOWcmd/server/bootstrap.go21// may be promoted to system administrator when the deployment has noCOMMENT
LOWcmd/server/bootstrap.go61 // not abort startup — bootstrap is best-effort.COMMENT
LOWcmd/server/main.go1// Package main is the main package for the WeKnora serverCOMMENT
LOWfrontend/src/composables/useResourcePins.ts1// useResourcePins – per-(user, tenant) favorites + per-user recents forCOMMENT
LOWfrontend/src/composables/useListUrlState.ts1// useListUrlState keeps a list view's filter state (sidebar scope, creatorCOMMENT
LOWfrontend/src/composables/useFont.ts1import { ref } from 'vue'COMMENT
LOWfrontend/src/composables/useFont.ts21// system sans, PingFang, and Helvetica are all visually close enoughCOMMENT
LOWfrontend/src/composables/useFont.ts221 }COMMENT
LOWfrontend/src/wailsjs/runtime/runtime.d.ts101// *Windows only*COMMENT
LOWfrontend/src/stores/auth.ts41 const allTenants = ref<TenantInfoFromAPI[]>([])COMMENT
LOWfrontend/src/stores/auth.ts101 })COMMENT
LOWfrontend/src/stores/auth.ts121 })COMMENT
LOWfrontend/src/utils/workspaceNotifyContent.ts1// Shared content renderer for the post-login and post-tenant-switchCOMMENT
LOWfrontend/src/utils/loginNotify.ts1// Rich "you're now in {workspace} as {role}" notification for theCOMMENT
LOWfrontend/src/utils/finalAnswer.ts1// finalAnswer.tsCOMMENT
LOW…ntend/src/components/knowledge-processing-timeline.vue101const selectedAttempt = ref<number | undefined>(undefined)COMMENT
LOW…ntend/src/components/knowledge-processing-timeline.vue121// row.key). Auto-expand checks this set so deeper subspans that theCOMMENT
LOW…ntend/src/components/knowledge-processing-timeline.vue141//COMMENT
LOW…ntend/src/components/knowledge-processing-timeline.vue201 // finalizing is the post-process fan-out window — subspansCOMMENT
LOW…ntend/src/components/knowledge-processing-timeline.vue281// to wikiIngestDelay. At that exact moment parse_status is alreadyCOMMENT
LOW…ntend/src/components/knowledge-processing-timeline.vue301 if (!last) return falseCOMMENT
LOWfrontend/src/components/css/chat-markdown.less1@import './chat-hljs.less';COMMENT
LOW…tend/src/components/credentials/CredentialResource.vue181// Local view state per field. Source of truth is props.meta, but we trackCOMMENT
LOWfrontend/src/api/mcp-service.ts181 await del(`/api/v1/mcp-services/${serviceId}/credentials/${field}`)COMMENT
LOWfrontend/src/api/knowledge-base/index.ts21 return get(qs ? `/api/v1/knowledge-bases?${qs}` : '/api/v1/knowledge-bases');COMMENT
LOWfrontend/src/views/agent/AgentList.vue1401// 根据 agent 数据形态判分组:filteredAgents 元素带 isMine;sortedMineAgentsCOMMENT
LOWfrontend/src/views/knowledge/kbListMerge.ts1// Pure helpers backing the "All" scope of the knowledge-base list.COMMENT
LOWfrontend/src/views/knowledge/KnowledgeBase.vue241COMMENT
LOWfrontend/src/views/knowledge/KnowledgeBaseList.vue921// 分组标题正好插在过渡处;其他角色看不到标题,纯排序变化也无害。COMMENT
LOWfrontend/src/views/knowledge/KnowledgeBaseList.vue1061function isSharedKbEditable(perm: string | undefined): boolean {COMMENT
LOWfrontend/src/views/knowledge/KnowledgeBaseList.vue1101 // 重新赋一个新的 Set 是为了让 ref 的 .value 身份变化触发模板重渲染;COMMENT
LOWfrontend/src/views/knowledge/KnowledgeBaseList.vue1341// Viewer cannot click into them for a KB they don't own. The serverCOMMENT
LOWfrontend/src/views/knowledge/KnowledgeBaseList.vue1361 return authStore.hasRole('contributor') && kb.isMine !== falseCOMMENT
LOW…nd/src/views/knowledge/settings/KBChunkingSettings.vue221 file_types: string[]COMMENT
LOWfrontend/src/views/knowledge/wiki/WikiBrowser.vue761// them on demand:COMMENT
LOWfrontend/src/views/knowledge/wiki/WikiBrowser.vue821const touchedDirectories = ref<Set<string>>(new Set())COMMENT
LOWfrontend/src/views/knowledge/wiki/WikiBrowser.vue861COMMENT
LOWfrontend/src/views/knowledge/wiki/WikiBrowser.vue1041const graphDrawerVisible = ref(false)COMMENT
LOWfrontend/src/views/knowledge/wiki/WikiBrowser.vue1061// Entity and concept pages look and behave alike, so the sidebar merges allCOMMENT
LOWfrontend/src/views/knowledge/wiki/WikiBrowser.vue1161COMMENT
LOWfrontend/src/views/knowledge/wiki/WikiBrowser.vue1181// can bloom to pull them in. This is the main signal for the dashedCOMMENT
LOWfrontend/src/views/knowledge/wiki/WikiBrowser.vue1301 return countCOMMENT
LOWfrontend/src/views/knowledge/wiki/WikiBrowser.vue1781const WIKI_PAGE_ITEM_HEIGHT = 100COMMENT
LOWfrontend/src/views/knowledge/wiki/WikiBrowser.vue2421// group types) — a bounded response regardless of KB size. Sections areCOMMENT
LOWfrontend/src/views/knowledge/wiki/WikiBrowser.vue2501 if (entry.summary) {COMMENT
LOWfrontend/src/views/knowledge/wiki/WikiBrowser.vue2881 graphLoading.value = falseCOMMENT
LOWfrontend/src/views/knowledge/wiki/WikiBrowser.vue3041// parallel would hammer the backend and most responses would compete forCOMMENT
LOWfrontend/src/views/knowledge/wiki/WikiBrowser.vue3781 // Single-click behaviour + keyboard-modifier shortcuts to skip theCOMMENT
LOWfrontend/src/views/knowledge/wiki/WikiBrowser.vue4341// On a 4万-page wiki, the current render contains at most GRAPH_OVERVIEW_LIMITCOMMENT
LOW…end/src/views/knowledge/components/FAQEntryManager.vue1021// means we reached this KB through a shared space, so the user's local tenantCOMMENT
LOWconfig/agent_type_presets.yaml1# Agent Type Presets for Smart-Reasoning ModeCOMMENT
LOWconfig/agent_type_presets.yaml21#COMMENT
LOWconfig/agent_type_presets.yaml121 - "grep_chunks"COMMENT
LOWconfig/agent_type_presets.yaml161 # `thinking` / `todo_write` are opt-in for data-analysis too. EnableCOMMENT
LOWdocreader/splitter/header_hook.py41# 初始化表头Hook配置(提供默认配置:支持Markdown表格、代码块)COMMENT
LOWdocreader/utils/__init__.py1#COMMENT
LOWdocreader/parser/pdf_parser.py81_LOW_TEXT_IMAGE_RATIO = 0.1COMMENT
718 more matches not shown…
Hyper-Verbose Identifiers356 hits · 382 pts
SeverityFileLineSnippetContext
LOWfrontend/vite.config.ts55function resolveVueOfficePptxEntry(): string {CODE
LOWfrontend/src/composables/preferenceStorage.ts81export function migratePreferencesIntoUser(): void {CODE
LOWfrontend/src/composables/useChatReferencesDrawer.ts27export function provideChatReferencesDrawer(): ChatReferencesDrawerContext {CODE
LOWfrontend/src/wailsjs/go/main/App.d.ts12export function GetDesktopHTTPBindPublicSetting():Promise<boolean>;CODE
LOWfrontend/src/wailsjs/go/main/App.d.ts14export function GetDesktopHTTPPortSetting():Promise<number>;CODE
LOWfrontend/src/wailsjs/go/main/App.d.ts16export function GetDesktopListenPublicActive():Promise<boolean>;CODE
LOWfrontend/src/wailsjs/go/main/App.d.ts18export function SetDesktopHTTPBindPublicSetting(arg1:boolean):Promise<void>;CODE
LOWfrontend/src/wailsjs/go/main/App.d.ts20export function SetDesktopHTTPPortSetting(arg1:number):Promise<void>;CODE
LOWfrontend/src/wailsjs/go/main/App.js21export function GetDesktopHTTPBindPublicSetting() {CODE
LOWfrontend/src/wailsjs/go/main/App.js25export function GetDesktopHTTPPortSetting() {CODE
LOWfrontend/src/wailsjs/go/main/App.js29export function GetDesktopListenPublicActive() {CODE
LOWfrontend/src/wailsjs/go/main/App.js33export function SetDesktopHTTPBindPublicSetting(arg1) {CODE
LOWfrontend/src/wailsjs/go/main/App.js37export function SetDesktopHTTPPortSetting(arg1) {CODE
LOWfrontend/src/wailsjs/runtime/runtime.d.ts103export function WindowSetSystemDefaultTheme(): void;CODE
LOWfrontend/src/wailsjs/runtime/runtime.d.ts203export function WindowSetBackgroundColour(R: number, G: number, B: number, A: number): void;CODE
LOWfrontend/src/wailsjs/runtime/runtime.d.ts290export function RequestNotificationAuthorization(): Promise<boolean>;CODE
LOWfrontend/src/wailsjs/runtime/runtime.d.ts294export function CheckNotificationAuthorization(): Promise<boolean>;CODE
LOWfrontend/src/wailsjs/runtime/runtime.d.ts302export function SendNotificationWithActions(options: NotificationOptions): Promise<void>;CODE
LOWfrontend/src/wailsjs/runtime/runtime.d.ts306export function RegisterNotificationCategory(category: NotificationCategory): Promise<void>;CODE
LOWfrontend/src/wailsjs/runtime/runtime.d.ts310export function RemoveNotificationCategory(categoryId: string): Promise<void>;CODE
LOWfrontend/src/wailsjs/runtime/runtime.d.ts314export function RemoveAllPendingNotifications(): Promise<void>;CODE
LOWfrontend/src/wailsjs/runtime/runtime.d.ts318export function RemovePendingNotification(identifier: string): Promise<void>;CODE
LOWfrontend/src/wailsjs/runtime/runtime.d.ts322export function RemoveAllDeliveredNotifications(): Promise<void>;CODE
LOWfrontend/src/wailsjs/runtime/runtime.d.ts326export function RemoveDeliveredNotification(identifier: string): Promise<void>;CODE
LOWfrontend/src/wailsjs/runtime/runtime.js76export function WindowSetSystemDefaultTheme() {CODE
LOWfrontend/src/wailsjs/runtime/runtime.js164export function WindowSetBackgroundColour(R, G, B, A) {CODE
LOWfrontend/src/wailsjs/runtime/runtime.js256export function RequestNotificationAuthorization() {CODE
LOWfrontend/src/wailsjs/runtime/runtime.js260export function CheckNotificationAuthorization() {CODE
LOWfrontend/src/wailsjs/runtime/runtime.js268export function SendNotificationWithActions(options) {CODE
LOWfrontend/src/wailsjs/runtime/runtime.js272export function RegisterNotificationCategory(category) {CODE
LOWfrontend/src/wailsjs/runtime/runtime.js276export function RemoveNotificationCategory(categoryId) {CODE
LOWfrontend/src/wailsjs/runtime/runtime.js280export function RemoveAllPendingNotifications() {CODE
LOWfrontend/src/wailsjs/runtime/runtime.js284export function RemovePendingNotification(identifier) {CODE
LOWfrontend/src/wailsjs/runtime/runtime.js288export function RemoveAllDeliveredNotifications() {CODE
LOWfrontend/src/wailsjs/runtime/runtime.js292export function RemoveDeliveredNotification(identifier) {CODE
LOWfrontend/src/stores/editorResources.ts122 async function ensureTenantRetrievalConfig(force = false): Promise<void> {CODE
LOWfrontend/src/stores/chatResources.ts69 async function fetchKnowledgeBasesForList(CODE
LOWfrontend/src/stores/chatResources.ts189 async function ensureAgentKnowledgeBases(agentId: string, force = false): Promise<any[]> {CODE
LOWfrontend/src/stores/chatResources.ts239 function invalidateKnowledgeBaseDetail(kbId?: string) {CODE
LOWfrontend/src/stores/organization.ts368 async function fetchSharedKnowledgeBases(options?: { force?: boolean }) {CODE
LOWfrontend/src/stores/auth.ts16function clearSessionResourceCaches() {CODE
LOWfrontend/src/utils/agentWebSearch.ts9export function resolveAgentWebSearchProviderId(CODE
LOWfrontend/src/utils/agent-readiness.ts14export function agentHasConfiguredChatModel(CODE
LOWfrontend/src/utils/agent-readiness.ts45export function getAgentNotReadyReasonKeys(CODE
LOWfrontend/src/utils/agent-readiness.ts79export function resolveAgentNotReadySection(reasons: AgentNotReadyReasonKey[]): string {CODE
LOWfrontend/src/utils/agent-readiness.ts90export function resolveAgentNotReadyHighlight(CODE
LOWfrontend/src/utils/workspaceNotifyContent.ts73export function renderWorkspaceNotifyContent(CODE
LOWfrontend/src/utils/tenantModelReadiness.ts14export function evaluateTenantModelReadiness(models: ModelConfig[]): TenantModelReadiness {CODE
LOWfrontend/src/utils/tenantModelReadiness.ts29export async function fetchTenantModelReadiness(): Promise<TenantModelReadiness> {CODE
LOWfrontend/src/utils/referenceSources.ts281export function resolveReferenceHighlightKey(CODE
LOWfrontend/src/utils/markdownEnhancements.ts162export function highlightCodeBlocksInContainer(root: HTMLElement | null | undefined): void {CODE
LOWfrontend/src/utils/markdownEnhancements.ts183export function refreshMarkdownEnhancements(root: HTMLElement | null | undefined): void {CODE
LOWfrontend/src/utils/markdownEnhancements.ts189export function attachMarkdownEnhancementListeners(CODE
LOWfrontend/src/utils/knowledgeProcessingStatus.ts11export function parseStatusToTimelineStatus(status?: string): string {CODE
LOWfrontend/src/utils/knowledgeProcessingStatus.ts29export function resolveTimelineHeaderStatus(input: TimelineStatusInput): string {CODE
LOWfrontend/src/utils/citationMarkdown.ts18export function stripIncompleteCitationTag(content: string): string {CODE
LOWfrontend/src/utils/citationMarkdown.ts204export function extractCitationHtmlPlaceholders(CODE
LOWfrontend/src/utils/citationMarkdown.ts222export function restoreCitationHtmlPlaceholders(html: string, htmlSnippets: string[]): string {CODE
LOWfrontend/src/utils/citationMarkdown.ts230function isFencedCodeDelimiterLine(line: string): boolean {CODE
LOWfrontend/src/utils/citationMarkdown.ts235export function joinCitationTagsToPreviousLine(content: string): string {CODE
296 more matches not shown…
Decorative Section Separators98 hits · 312 pts
SeverityFileLineSnippetContext
MEDIUMdocker-compose.dev.yml315 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocker-compose.dev.yml328 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocker-compose.yml494 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocker-compose.yml509 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocker-compose.yml561 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocker-compose.yml577 # ---------------------------------------------------------------------------COMMENT
MEDIUMfrontend/src/views/knowledge/wiki/WikiBrowser.vue2885// ─── Bloom: additive neighbor expansion ──────────────────────────────────COMMENT
MEDIUMconfig/agent_type_presets.yaml31 # --------------------------------------------------------------------------COMMENT
MEDIUMconfig/agent_type_presets.yaml34 # --------------------------------------------------------------------------COMMENT
MEDIUMconfig/agent_type_presets.yaml64 # --------------------------------------------------------------------------COMMENT
MEDIUMconfig/agent_type_presets.yaml67 # --------------------------------------------------------------------------COMMENT
MEDIUMconfig/agent_type_presets.yaml95 # --------------------------------------------------------------------------COMMENT
MEDIUMconfig/agent_type_presets.yaml98 # --------------------------------------------------------------------------COMMENT
MEDIUMconfig/agent_type_presets.yaml140 # --------------------------------------------------------------------------COMMENT
MEDIUMconfig/agent_type_presets.yaml145 # --------------------------------------------------------------------------COMMENT
MEDIUMconfig/agent_type_presets.yaml184 # --------------------------------------------------------------------------COMMENT
MEDIUMconfig/agent_type_presets.yaml186 # --------------------------------------------------------------------------COMMENT
MEDIUMmcp-server/weknora_mcp_server.py197 # ── UUID pattern (8-4-4-4-12 hex) ──────────────────────────────────────COMMENT
MEDIUMinternal/datasource/scheduler_test.go14// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/scheduler_test.go16// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/scheduler_test.go165// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/scheduler_test.go167// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/client.go415// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/client.go422// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/client.go538// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/client.go540// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go25// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go27// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go294// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go296// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go416// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go418// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go603// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go605// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go867// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go869// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go1067// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go1069// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go1174// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go1176// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go1211// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/datasource/connector/feishu/connector_test.go1213// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/im/service.go308// ── Redis key prefixes ──────────────────────────────────────────────────────COMMENT
MEDIUMinternal/im/service.go1018// ── WebSocket leader election ───────────────────────────────────────────────COMMENT
MEDIUMinternal/im/service.go1170// ── Cross-instance /stop via StreamManager ───────────────────────────────────COMMENT
MEDIUMinternal/im/service.go1968// ── Agent tool call progress formatting ──────────────────────────────COMMENT
MEDIUMinternal/im/service.go1972// ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/im/service.go2829// ── File message handling ──────────────────────────────────────────────COMMENT
MEDIUMinternal/im/service.go2834// ────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/im/qaqueue.go292// ── Redis global concurrency gate ────────────────────────────────────────────COMMENT
MEDIUMinternal/im/qaqueue.go354// ── Redis global per-user counting ──────────────────────────────────────────COMMENT
MEDIUMinternal/im/qaqueue.go386// ── Metrics logging ─────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/im/feishu/adapter.go580// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/im/feishu/adapter.go582// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/im/feishu/adapter.go654// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/im/feishu/adapter.go665// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/im/wecom/webhook_adapter.go521// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/im/wecom/webhook_adapter.go523// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/im/wecom/longconn.go255// ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal/im/wecom/longconn.go257// ──────────────────────────────────────────────────────────────────────COMMENT
38 more matches not shown…
Magic Placeholder Names27 hits · 138 pts
SeverityFileLineSnippetContext
HIGH…tend/src/views/integrations/ApiIntegrationSettings.vue992 const apiKeyHeader = ` -H "X-API-Key: ${apiKey.value ? '<API_KEY>' : '<YOUR_API_KEY>'}"`CODE
HIGH…tend/src/views/integrations/ApiIntegrationSettings.vue992 const apiKeyHeader = ` -H "X-API-Key: ${apiKey.value ? '<API_KEY>' : '<YOUR_API_KEY>'}"`CODE
HIGHfrontend/src/views/integrations/ClawSkillLanding.vue136 return `export WEKNORA_BASE_URL="${base}"\nexport WEKNORA_API_KEY="sk-your-api-key"`CODE
HIGHmcp-server/PROJECT_SUMMARY.md134export WEKNORA_API_KEY="your_api_key"CODE
HIGHmcp-server/EXAMPLES.md393 "WEKNORA_API_KEY": "your_api_key"CODE
HIGHmcp-server/INSTALL.md188Environment=WEKNORA_API_KEY=your_api_keyCODE
HIGHdocs/BUILTIN_MCP_SERVICES.md71 '{"api_key": "your-api-key"}'::jsonb, -- 认证配置CODE
HIGHdocs/OIDC认证调用流程.md570 # secret: <YOUR_SECRET_HERE>COMMENT
HIGHdocs/wiki/核心功能/内置MCP服务管理.md65 '{"api_key": "your-api-key"}'::jsonb,CODE
HIGHdocs/wiki/API参考/API文档概览.md25X-API-Key: your_api_keyCODE
HIGHdocs/api/agent.md385--header 'X-API-Key: your_api_key'CODE
HIGHdocs/api/vector-store.md157 "api_key": "your_api_key",CODE
HIGHdocs/api/model.md62--header 'X-API-Key: your_api_key'CODE
HIGHdocs/api/model.md66--header 'X-API-Key: your_api_key'CODE
HIGHdocs/api/model.md124--header 'X-API-Key: your_api_key' \CODE
HIGHdocs/api/model.md142--header 'X-API-Key: your_api_key' \CODE
HIGHdocs/api/model.md163--header 'X-API-Key: your_api_key' \CODE
HIGHdocs/api/model.md185--header 'X-API-Key: your_api_key' \CODE
HIGHdocs/api/model.md208--header 'X-API-Key: your_api_key' \CODE
HIGHdocs/api/model.md233--header 'X-API-Key: your_api_key' \CODE
HIGHdocs/api/model.md252--header 'X-API-Key: your_api_key' \CODE
HIGHdocs/api/model.md271--header 'X-API-Key: your_api_key' \CODE
HIGHdocs/api/model.md324--header 'X-API-Key: your_api_key'CODE
HIGHdocs/api/model.md342--header 'X-API-Key: your_api_key'CODE
HIGHdocs/api/model.md372--header 'X-API-Key: your_api_key' \CODE
HIGHdocs/api/model.md401--header 'X-API-Key: your_api_key'CODE
HIGHdocs/api/README.md35X-API-Key: your_api_keyCODE
Structural Annotation Overuse66 hits · 128 pts
SeverityFileLineSnippetContext
LOW…rc/views/knowledge/settings/DataSourceEditorDialog.vue184// Step 2: ResourcesCOMMENT
LOWconfig/config.yaml54 ## Step 1: Entity Extraction and Attribute EnrichmentCOMMENT
LOWconfig/config.yaml58 ## Step 2: Relationship Extraction and VerificationCOMMENT
LOWdocreader/splitter/splitter.py132 # Step 1: Split text by separators recursivelyCOMMENT
LOWdocreader/splitter/splitter.py134 # Step 2: Extract protected content positionsCOMMENT
LOWdocreader/splitter/splitter.py136 # Step 3: Merge splits with protected content to ensure integrityCOMMENT
LOWdocreader/splitter/splitter.py142 # Step 4: Merge splits into final chunks with overlapCOMMENT
LOWdocreader/splitter/splitter.py145 # Step 5: Validate chunks and test restorationCOMMENT
LOWinternal/datasource/CONNECTOR_IMPLEMENTATION_GUIDE.md13## Step 1: Create Connector Package StructureCOMMENT
LOWinternal/datasource/CONNECTOR_IMPLEMENTATION_GUIDE.md24## Step 2: Define Platform Types (types.go)COMMENT
LOWinternal/datasource/CONNECTOR_IMPLEMENTATION_GUIDE.md70## Step 3: Implement API Client (client.go)COMMENT
LOWinternal/datasource/CONNECTOR_IMPLEMENTATION_GUIDE.md113## Step 4: Implement Connector Interface (connector.go)COMMENT
LOWinternal/datasource/CONNECTOR_IMPLEMENTATION_GUIDE.md295## Step 5: Register in ContainerCOMMENT
LOWinternal/datasource/CONNECTOR_IMPLEMENTATION_GUIDE.md334## Step 6: Add Connector Type ConstantCOMMENT
LOWinternal/datasource/CONNECTOR_IMPLEMENTATION_GUIDE.md345## Step 7: Add MetadataCOMMENT
LOWinternal/datasource/CONNECTOR_IMPLEMENTATION_GUIDE.md363## Step 8: Test Your ConnectorCOMMENT
LOWinternal/datasource/connector/feishu/client.go495 // Step 1: create export taskCOMMENT
LOWinternal/datasource/connector/feishu/client.go501 // Step 2: poll until ready (max 60s, every 2s)COMMENT
LOWinternal/datasource/connector/feishu/client.go524 // Step 3: download file using file_token (NOT ticket)COMMENT
LOW…rnal/application/repository/knowledge_finalize_test.go229 // Step 2: caller A snapshots the row with counter=5 in memory.COMMENT
LOW…rnal/application/repository/knowledge_finalize_test.go234 // Step 3: an enrichment subtask decrements concurrently.COMMENT
LOW…rnal/application/repository/knowledge_finalize_test.go238 // Step 4: caller A persists an unrelated change. The in-memory copyCOMMENT
LOW…rnal/application/repository/knowledge_finalize_test.go243 // Step 5: the live counter is still 4, not clobbered back to 5.COMMENT
LOWinternal/application/service/message.go505 // Step 1: Keyword search (direct PG ILIKE)COMMENT
LOWinternal/application/service/message.go515 // Step 2: Vector search via chat history knowledge base (if configured)COMMENT
LOWinternal/application/service/message.go528 // Step 3: Merge results based on modeCOMMENT
LOWinternal/application/service/message.go540 // Step 4: Fetch partner messages (Q&A counterparts) to ensure complete pairsCOMMENT
LOWinternal/application/service/message.go543 // Step 5: Group by request_id to merge Q&A pairsCOMMENT
LOWinternal/application/service/knowledgebase.go643 // Step 1: Delete the knowledge base record first (mark as deleted)COMMENT
LOWinternal/application/service/knowledgebase.go664 // Step 2: Enqueue async task for heavy cleanup operationsCOMMENT
LOWinternal/application/service/knowledgebase.go711 // Step 1: Get all knowledge entries in this knowledge baseCOMMENT
LOWinternal/application/service/knowledgebase.go722 // Step 2: Delete all knowledge entries and their resourcesCOMMENT
LOWinternal/application/service/knowledge_process.go2082 // Step 2: Update knowledge status and metadataCOMMENT
LOWinternal/application/service/knowledge_process.go2104 // Step 3: Trigger async re-parsing based on knowledge typeCOMMENT
LOWinternal/application/service/knowledge_process.go3010 // Step 2: Store images and update markdown referencesCOMMENT
LOWinternal/application/service/knowledge_process.go3040 // Step 3: Split into chunks using Go chunkerCOMMENT
LOWinternal/application/service/knowledge_process.go3090 // Step 4: Process chunks (vectorize + index + enqueue async tasks)COMMENT
LOWinternal/application/service/chat_pipeline/merge.go55 // Step 1: Select inputCOMMENT
LOWinternal/application/service/chat_pipeline/merge.go58 // Step 2: Initial dedupCOMMENT
LOWinternal/application/service/chat_pipeline/merge.go61 // Step 3: Inject history referencesCOMMENT
LOWinternal/application/service/chat_pipeline/merge.go76 // Step 4: Resolve parent chunksCOMMENT
LOWinternal/application/service/chat_pipeline/merge.go79 // Step 5: Group by knowledge/chunkType and merge overlapping rangesCOMMENT
LOWinternal/application/service/chat_pipeline/merge.go82 // Step 6: Populate FAQ answersCOMMENT
LOWinternal/application/service/chat_pipeline/merge.go85 // Step 7: Expand short contextsCOMMENT
LOWinternal/application/service/chat_pipeline/merge.go91 // Step 8: Final dedup — catches exact duplicates plus partial content overlapsCOMMENT
LOWinternal/infrastructure/chunker/splitter.go287 // Step 1: Find protected spansCOMMENT
LOWinternal/infrastructure/chunker/splitter.go290 // Step 2: Split non-protected regions by separators, keep protected as atomic units.COMMENT
LOWinternal/infrastructure/chunker/splitter.go295 // Step 3: Merge units into chunks with overlapCOMMENT
LOWinternal/event/example_test.go65 // Step 1: Query receivedCOMMENT
LOWinternal/event/example_test.go72 // Step 2: Query rewriteCOMMENT
LOWinternal/event/example_test.go79 // Step 3: RetrievalCOMMENT
LOWinternal/event/example_test.go86 // Step 4: RerankCOMMENT
LOWskills/preloaded/doc-coauthoring/SKILL.md154### Step 1: Clarifying QuestionsCOMMENT
LOWskills/preloaded/doc-coauthoring/SKILL.md162### Step 2: BrainstormingCOMMENT
LOWskills/preloaded/doc-coauthoring/SKILL.md170### Step 3: CurationCOMMENT
LOWskills/preloaded/doc-coauthoring/SKILL.md182### Step 4: Gap CheckCOMMENT
LOWskills/preloaded/doc-coauthoring/SKILL.md186### Step 5: DraftingCOMMENT
LOWskills/preloaded/doc-coauthoring/SKILL.md205### Step 6: Iterative RefinementCOMMENT
LOWskills/preloaded/doc-coauthoring/SKILL.md255### Step 1: Predict Reader QuestionsCOMMENT
LOWskills/preloaded/doc-coauthoring/SKILL.md261### Step 2: Test with Sub-AgentCOMMENT
6 more matches not shown…
Verbosity Indicators44 hits · 90 pts
SeverityFileLineSnippetContext
LOW…rc/views/knowledge/settings/DataSourceEditorDialog.vue184// Step 2: ResourcesCOMMENT
LOWconfig/config.yaml54 ## Step 1: Entity Extraction and Attribute EnrichmentCOMMENT
LOWconfig/config.yaml58 ## Step 2: Relationship Extraction and VerificationCOMMENT
LOWdocreader/splitter/splitter.py132 # Step 1: Split text by separators recursivelyCOMMENT
LOWdocreader/splitter/splitter.py134 # Step 2: Extract protected content positionsCOMMENT
LOWdocreader/splitter/splitter.py136 # Step 3: Merge splits with protected content to ensure integrityCOMMENT
LOWdocreader/splitter/splitter.py142 # Step 4: Merge splits into final chunks with overlapCOMMENT
LOWdocreader/splitter/splitter.py145 # Step 5: Validate chunks and test restorationCOMMENT
LOWinternal/datasource/connector/feishu/client.go495 // Step 1: create export taskCOMMENT
LOWinternal/datasource/connector/feishu/client.go501 // Step 2: poll until ready (max 60s, every 2s)COMMENT
LOWinternal/datasource/connector/feishu/client.go524 // Step 3: download file using file_token (NOT ticket)COMMENT
LOW…rnal/application/repository/knowledge_finalize_test.go229 // Step 2: caller A snapshots the row with counter=5 in memory.COMMENT
LOW…rnal/application/repository/knowledge_finalize_test.go234 // Step 3: an enrichment subtask decrements concurrently.COMMENT
LOW…rnal/application/repository/knowledge_finalize_test.go238 // Step 4: caller A persists an unrelated change. The in-memory copyCOMMENT
LOW…rnal/application/repository/knowledge_finalize_test.go243 // Step 5: the live counter is still 4, not clobbered back to 5.COMMENT
LOWinternal/application/service/message.go505 // Step 1: Keyword search (direct PG ILIKE)COMMENT
LOWinternal/application/service/message.go515 // Step 2: Vector search via chat history knowledge base (if configured)COMMENT
LOWinternal/application/service/message.go528 // Step 3: Merge results based on modeCOMMENT
LOWinternal/application/service/message.go540 // Step 4: Fetch partner messages (Q&A counterparts) to ensure complete pairsCOMMENT
LOWinternal/application/service/message.go543 // Step 5: Group by request_id to merge Q&A pairsCOMMENT
LOWinternal/application/service/knowledgebase.go643 // Step 1: Delete the knowledge base record first (mark as deleted)COMMENT
LOWinternal/application/service/knowledgebase.go664 // Step 2: Enqueue async task for heavy cleanup operationsCOMMENT
LOWinternal/application/service/knowledgebase.go711 // Step 1: Get all knowledge entries in this knowledge baseCOMMENT
LOWinternal/application/service/knowledgebase.go722 // Step 2: Delete all knowledge entries and their resourcesCOMMENT
LOWinternal/application/service/knowledge_process.go2082 // Step 2: Update knowledge status and metadataCOMMENT
LOWinternal/application/service/knowledge_process.go2104 // Step 3: Trigger async re-parsing based on knowledge typeCOMMENT
LOWinternal/application/service/knowledge_process.go3010 // Step 2: Store images and update markdown referencesCOMMENT
LOWinternal/application/service/knowledge_process.go3040 // Step 3: Split into chunks using Go chunkerCOMMENT
LOWinternal/application/service/knowledge_process.go3090 // Step 4: Process chunks (vectorize + index + enqueue async tasks)COMMENT
LOWinternal/application/service/chat_pipeline/merge.go55 // Step 1: Select inputCOMMENT
LOWinternal/application/service/chat_pipeline/merge.go58 // Step 2: Initial dedupCOMMENT
LOWinternal/application/service/chat_pipeline/merge.go61 // Step 3: Inject history referencesCOMMENT
LOWinternal/application/service/chat_pipeline/merge.go76 // Step 4: Resolve parent chunksCOMMENT
LOWinternal/application/service/chat_pipeline/merge.go79 // Step 5: Group by knowledge/chunkType and merge overlapping rangesCOMMENT
LOWinternal/application/service/chat_pipeline/merge.go82 // Step 6: Populate FAQ answersCOMMENT
LOWinternal/application/service/chat_pipeline/merge.go85 // Step 7: Expand short contextsCOMMENT
LOWinternal/application/service/chat_pipeline/merge.go91 // Step 8: Final dedup — catches exact duplicates plus partial content overlapsCOMMENT
LOWinternal/infrastructure/chunker/splitter.go287 // Step 1: Find protected spansCOMMENT
LOWinternal/infrastructure/chunker/splitter.go290 // Step 2: Split non-protected regions by separators, keep protected as atomic units.COMMENT
LOWinternal/infrastructure/chunker/splitter.go295 // Step 3: Merge units into chunks with overlapCOMMENT
LOWinternal/event/example_test.go65 // Step 1: Query receivedCOMMENT
LOWinternal/event/example_test.go72 // Step 2: Query rewriteCOMMENT
LOWinternal/event/example_test.go79 // Step 3: RetrievalCOMMENT
LOWinternal/event/example_test.go86 // Step 4: RerankCOMMENT
Excessive Try-Catch Wrapping81 hits · 79 pts
SeverityFileLineSnippetContext
LOWrerank_server_demo.py52except Exception as e:CODE
LOWdocreader/config.py29 except Exception:CODE
LOWdocreader/main.py89 except Exception:CODE
LOWdocreader/main.py137 except Exception:CODE
LOWdocreader/main.py220 except Exception as e:CODE
LOWdocreader/main.py239 except Exception as e:CODE
LOWdocreader/splitter/splitter.py487 except Exception as e:CODE
LOWdocreader/splitter/splitter.py526 except Exception as e:CODE
LOWdocreader/utils/__init__.py61 except Exception as e:CODE
LOWdocreader/utils/__init__.py81 except Exception as e:CODE
LOWdocreader/parser/pdf_parser.py609 except Exception:CODE
LOWdocreader/parser/pdf_parser.py615 except Exception:CODE
LOWdocreader/parser/pdf_parser.py620 except Exception:CODE
LOWdocreader/parser/pdf_parser.py197 except Exception:CODE
LOWdocreader/parser/pdf_parser.py593 except Exception:CODE
LOWdocreader/parser/pdf_parser.py649 except Exception:CODE
LOWdocreader/parser/pdf_parser.py984 except Exception:CODE
LOWdocreader/parser/pdf_parser.py1105 except Exception:CODE
LOWdocreader/parser/pdf_parser.py1214 except Exception:CODE
LOWdocreader/parser/pdf_parser.py1221 except Exception:CODE
LOWdocreader/parser/pdf_parser.py1365 except Exception as e:CODE
LOWdocreader/parser/pdf_parser.py1421 except Exception:CODE
LOWdocreader/parser/opendataloader_parser.py88 except Exception as e:CODE
LOWdocreader/parser/markitdown_parser.py71 except Exception:CODE
LOWdocreader/parser/registry.py98 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py337 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py340 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py1517 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py1525 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py1531 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py135 except Exception as exc:CODE
LOWdocreader/parser/docx_parser.py179 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py205 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py284 except Exception as backup_error:CODE
LOWdocreader/parser/docx_parser.py559 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py581 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py846 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py931 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py1009 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py1027 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py1128 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py1165 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py1286 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py1319 except Exception as e:CODE
LOWdocreader/parser/docx_parser.py1477 except Exception as blob_error:CODE
LOWdocreader/parser/pptx_media.py76 except Exception as exc:CODE
LOWdocreader/parser/epub_parser.py62 except Exception as e:CODE
LOWdocreader/parser/epub_parser.py104 except Exception as e:CODE
LOWdocreader/parser/epub_parser.py127 except Exception as e:CODE
LOWdocreader/parser/epub_parser.py150 except Exception:CODE
LOWdocreader/parser/epub_parser.py166 except Exception as e:CODE
LOWdocreader/parser/epub_parser.py233 except Exception as e:CODE
LOWdocreader/parser/epub_parser.py266 except Exception as e:CODE
LOWdocreader/parser/chain_parser.py62 except Exception:CODE
LOWdocreader/parser/doc_parser.py51 except Exception as e:CODE
LOWdocreader/parser/doc_parser.py127 except Exception as e:CODE
LOWdocreader/parser/web_parser.py94 except Exception:CODE
LOWdocreader/parser/web_parser.py109 except Exception:CODE
LOWdocreader/parser/web_parser.py197 except Exception as e:CODE
LOWdocreader/parser/web_parser.py224 except Exception as e:CODE
21 more matches not shown…
Modern AI Meta-Vocabulary22 hits · 74 pts
SeverityFileLineSnippetContext
MEDIUMREADME_JA.md47# 💡 WeKnora — ドキュメントを「生きたナレッジ」へ:RAG・Agent 推論・自動 Wiki を統合した LLM ナレッジフレームワークCOMMENT
MEDIUMREADME_KO.md47# 💡 WeKnora — 문서를 살아있는 지식으로: RAG · Agent 추론 · 자동 Wiki 통합 LLM 지식 프레임워크COMMENT
MEDIUMREADME.md47# 💡 WeKnora — Turn Documents into Living Knowledge with RAG, Agents and Auto-WikiCOMMENT
MEDIUMREADME_CN.md47# 💡 WeKnora — 让文档活起来:RAG、Agent 推理与自动 Wiki 一体化的知识框架COMMENT
MEDIUMconfig/agent_type_presets.yaml32 # RAG Q&A — classic evidence-based retrieval over chunk indexes.COMMENT
MEDIUMconfig/agent_type_presets.yaml96 # Hybrid RAG + Wiki — single agent that orchestrates both indexes.COMMENT
MEDIUMconfig/agent_type_presets.yaml96 # Hybrid RAG + Wiki — single agent that orchestrates both indexes.COMMENT
MEDIUMconfig/agent_type_presets.yaml130 # - KB has wiki + chunks → full "wiki-first, RAG-verify" workflowCOMMENT
MEDIUMconfig/agent_type_presets.yaml131 # - KB has only chunks → fallback to pure RAG (see prompt's "Fallback rules")COMMENT
MEDIUMconfig/agent_type_presets.yaml175 # ChunkTypeTableColumn chunks, which are produced by the normal RAGCOMMENT
MEDIUMconfig/prompt_templates/intent_prompts.yaml2# Used to override the default RAG system prompt when the query intentCOMMENT
MEDIUMmcp-server/weknora_mcp_server.py1230 # Unlike RAG chat, the agent pipeline allows multi-step reasoning with explicit tool calls.COMMENT
MEDIUMinternal/event/SUMMARY.md61│ └── main.go # 完整的 RAG 流程演示CODE
MEDIUMdocs/CHUNKING.md68#### Token-limit guide per embedding modelCOMMENT
MEDIUMcli/README.md99# 9. Inspect a document's chunks for RAG retrieval debugCOMMENT
MEDIUMcli/cmd/mcp/mcp.go4// the JSON-RPC 2.0 wire protocol agentic IDEs use to call external tools.COMMENT
MEDIUMcli/cmd/model/create.go132 // Mode-specific guardrails: a remote model needs a provider to routeCOMMENT
MEDIUMcli/skills/weknora-rag-search/SKILL.md8# WeKnora — retrieval & RAG queriesCOMMENT
MEDIUMcli/skills/weknora-rag-search/references/chat.md1# `chat` and `session ask` — RAG answers and raw streamsCOMMENT
MEDIUMskills/preloaded/data-processor/SKILL.md108### 分析 RAG 检索结果COMMENT
MEDIUMskills/preloaded/openmaic-classroom/SKILL.md83### Phase 1.1: RAG 结果 → Requirement 转换(仅适用于场景 2)COMMENT
MEDIUM…d/openmaic-classroom/references/requirement-builder.md25### 模板 2: 基于 RAG 检索结果COMMENT
Modern Structural Boilerplate36 hits · 36 pts
SeverityFileLineSnippetContext
LOWdocreader/auth.py27logger = logging.getLogger(__name__)CODE
LOWdocreader/config.py6logger = logging.getLogger(__name__)CODE
LOWdocreader/main.py51logger = logging.getLogger(__name__)CODE
LOWdocreader/splitter/splitter.py32logger = logging.getLogger(__name__)CODE
LOWdocreader/utils/tempfile.py5logger = logging.getLogger(__name__)CODE
LOWdocreader/utils/request.py10logger = logging.getLogger(__name__)CODE
LOWdocreader/utils/request.py17def set_request_id(request_id: str) -> None:CODE
LOWdocreader/utils/__init__.py22logger = logging.getLogger(__name__)CODE
LOWdocreader/utils/endecode.py20logger = logging.getLogger(__name__)CODE
LOWdocreader/models/document.py78 def set_content(self, content: str) -> None:CODE
LOWdocreader/parser/excel_convert.py13logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/pdf_parser.py32logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/opendataloader_parser.py29logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/ppt_convert.py13logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/markdown_parser.py27logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/markitdown_parser.py18logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/docx2_parser.py7logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/xlsx_merge.py9logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/excel_parser.py26logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/registry.py19logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/docx_parser.py49logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/concurrency.py6logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/__init__.py27__all__ = [CODE
LOWdocreader/parser/base_parser.py9logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/parser.py8logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/image_parser.py8logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/pptx_media.py16logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/epub_parser.py22logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/chain_parser.py16logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/doc_parser.py16logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/doc_parser.py95logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/web_parser.py19logger = logging.getLogger(__name__)CODE
LOWdocreader/parser/mhtml_parser.py20logger = logging.getLogger(__name__)CODE
LOWmcp-server/__init__.py14__all__ = ["WeKnoraClient", "run"]CODE
LOWmcp-server/upload_paths.py11def set_active_transport(transport: str) -> None:CODE
LOWmcp-server/weknora_mcp_server.py30logger = logging.getLogger(__name__)CODE
Deep Nesting41 hits · 35 pts
SeverityFileLineSnippetContext
LOWrerank_server_demo.py67CODE
LOWdocreader/tests/test_excel_parser.py18CODE
LOWdocreader/tests/test_excel_parser.py112CODE
LOWdocreader/splitter/splitter.py187CODE
LOWdocreader/splitter/splitter.py424CODE
LOWdocreader/splitter/header_hook.py143CODE
LOWdocreader/utils/request.py87CODE
LOWdocreader/utils/__init__.py46CODE
LOWdocreader/utils/__init__.py66CODE
LOWdocreader/utils/endecode.py23CODE
LOWdocreader/parser/excel_convert.py49CODE
LOWdocreader/parser/pdf_parser.py528CODE
LOWdocreader/parser/pdf_parser.py1188CODE
LOWdocreader/parser/pdf_parser.py1439CODE
LOWdocreader/parser/opendataloader_parser.py67CODE
LOWdocreader/parser/ppt_convert.py37CODE
LOWdocreader/parser/xlsx_merge.py12CODE
LOWdocreader/parser/excel_parser.py68CODE
LOWdocreader/parser/docx_parser.py1170CODE
LOWdocreader/parser/docx_parser.py1325CODE
LOWdocreader/parser/docx_parser.py1425CODE
LOWdocreader/parser/docx_parser.py104CODE
LOWdocreader/parser/docx_parser.py210CODE
LOWdocreader/parser/docx_parser.py803CODE
LOWdocreader/parser/docx_parser.py862CODE
LOWdocreader/parser/docx_parser.py981CODE
LOWdocreader/parser/docx_parser.py1055CODE
LOWdocreader/parser/epub_parser.py68CODE
LOWdocreader/parser/epub_parser.py159CODE
LOWdocreader/parser/doc_parser.py106CODE
LOWdocreader/parser/doc_parser.py173CODE
LOWdocreader/parser/mhtml_parser.py39CODE
LOWdocreader/scripts/parse_local.py20CODE
LOWdataset/qa_dataset.py219CODE
LOWmcp-server/main.py108CODE
LOWmcp-server/weknora_mcp_server.py1063CODE
LOWmcp-server/weknora_mcp_server.py384CODE
LOW…s/preloaded/data-processor/scripts/format_converter.py132CODE
LOWskills/preloaded/data-processor/scripts/extract_info.py135CODE
LOWskills/preloaded/data-processor/scripts/analyze.py166CODE
LOW…oaded/openmaic-classroom/scripts/rag-to-requirement.py46CODE
Unused Imports34 hits · 34 pts
SeverityFileLineSnippetContext
LOWrerank_server_demo.py5CODE
LOWdocreader/tests/test_pdf_router.py6CODE
LOWdocreader/utils/ssrf.py7CODE
LOWdocreader/parser/excel_convert.py3CODE
LOWdocreader/parser/opendataloader_parser.py11CODE
LOWdocreader/parser/ppt_convert.py3CODE
LOWdocreader/parser/markdown_parser.py16CODE
LOWdocreader/parser/xlsx_merge.py3CODE
LOWdocreader/parser/registry.py2CODE
LOWdocreader/parser/__init__.py16CODE
LOWdocreader/parser/__init__.py17CODE
LOWdocreader/parser/__init__.py18CODE
LOWdocreader/parser/__init__.py19CODE
LOWdocreader/parser/__init__.py20CODE
LOWdocreader/parser/__init__.py21CODE
LOWdocreader/parser/__init__.py22CODE
LOWdocreader/parser/__init__.py23CODE
LOWdocreader/parser/__init__.py23CODE
LOWdocreader/parser/__init__.py24CODE
LOWdocreader/parser/xlsx_repair.py3CODE
LOWdocreader/parser/pptx_media.py3CODE
LOWdocreader/parser/doc_parser.py5CODE
LOWmcp-server/test_module.py20CODE
LOWmcp-server/test_module.py24CODE
LOWmcp-server/test_imports.py7CODE
LOWmcp-server/test_imports.py14CODE
LOWmcp-server/test_imports.py14CODE
LOWmcp-server/test_imports.py28CODE
LOWmcp-server/test_imports.py33CODE
LOWmcp-server/__init__.py12CODE
LOWmcp-server/__init__.py12CODE
LOWmcp-server/upload_paths.py3CODE
LOWmcp-server/main.py30CODE
LOWmcp-server/main.py31CODE
Synthetic Comment Markers4 hits · 30 pts
SeverityFileLineSnippetContext
HIGHinternal/middleware/access_test.go24// EnableCrossTenantAccess flag set as requested. EnableRBAC is left atCOMMENT
HIGHinternal/types/interfaces/wiki_page.go346 // that do not have AI-generated document questions or recommended FAQ entries.COMMENT
HIGHinternal/application/repository/wiki_page.go894// the KB has no FAQ entries or AI-generated document questions (typical forCOMMENT
HIGHinternal/application/service/custom_agent.go707 // document chunks carry AI-generated questions (question_generation is skippedCOMMENT
Fake / Example Data27 hits · 28 pts
SeverityFileLineSnippetContext
LOWfrontend/src/components/UserMenu.vue274 email: 'user@example.com',CODE
LOWfrontend/src/components/UserMenu.vue548 email: user.email || 'user@example.com',CODE
LOWfrontend/src/i18n/embed.ts429 "placeholder": "直接向模型提问",CODE
LOWfrontend/src/i18n/embed.ts905 "placeholder": "Ask questions directly to the model",CODE
LOWinternal/handler/system_password_reset_test.go87 ID: "admin-user", Username: "admin", Email: "admin@example.com",CODE
LOWinternal/handler/system_password_reset_test.go92 "email": "admin@example.com", "new_password": "FreshPass9",CODE
LOWinternal/middleware/auth_role_test.go246 svc.seedActive("placeholder", 8, types.TenantRoleAdmin)CODE
LOWinternal/datasource/connector/feishu/connector_test.go38 TenantAccessToken: "fake-token",CODE
LOWinternal/datasource/connector/feishu/connector_test.go190 TenantAccessToken: "fake-token",CODE
LOWinternal/agent/prompts_wiki.go148 "name": "Acme Corp",CODE
LOWinternal/agent/prompts_wiki.go233 "name": "Acme Corp",CODE
LOWinternal/agent/prompts_wiki.go455- "Acme Corp" → "Acme Corporation" (same company, abbreviation)CODE
LOWinternal/models/provider/provider.go130 Placeholder string `json:"placeholder"`CODE
LOWinternal/application/service/wiki_ingest_dedup_test.go160// filter keeps legitimate merge candidates like "Acme Corp" ↔ "Acme Corporation".COMMENT
LOWinternal/application/service/wiki_ingest_dedup_test.go164 nameGramSets: gramsPerSurface([]string{"Acme Corp"}),CODE
LOWinternal/application/service/wiki_ingest_dedup.go35 // is excluded while "Acme Corp" vs "Acme Corporation" (Jaccard ≈ 0.5)COMMENT
LOWinternal/application/service/wiki_ingest_test.go18 {"Acme Corp", "acme-corp"},CODE
LOW…ternal/infrastructure/chunker/heading_splitter_test.go13 body := strings.Repeat("Lorem ipsum dolor sit amet consectetur adipiscing elit. ", 4)CODE
LOW…ternal/infrastructure/chunker/heading_splitter_test.go13 body := strings.Repeat("Lorem ipsum dolor sit amet consectetur adipiscing elit. ", 4)CODE
LOW…ternal/infrastructure/chunker/heading_splitter_test.go34 if strings.Contains(c.Content, "## Section B") && strings.Contains(c.Content, "Lorem ipsum") {CODE
LOW…ternal/infrastructure/chunker/heading_splitter_test.go73 body := strings.Repeat("Lorem ipsum dolor sit amet consectetur adipiscing elit. ", 4)CODE
LOW…ternal/infrastructure/chunker/heading_splitter_test.go73 body := strings.Repeat("Lorem ipsum dolor sit amet consectetur adipiscing elit. ", 4)CODE
LOWinternal/infrastructure/chunker/strategy_test.go120 body := strings.Repeat("Lorem ipsum dolor sit amet. ", 40)CODE
LOWinternal/infrastructure/chunker/strategy_test.go120 body := strings.Repeat("Lorem ipsum dolor sit amet. ", 40)CODE
LOWdocs/api/organization.md620 "email": "admin@example.com",CODE
LOWcli/acceptance/testdata/wire/auth_status.success.json1{"ok":true,"data":{"profile":"","auth_source":"profile + keyring","user_id":"usr_abc","email":"user@example.com","tenantCODE
LOWcli/acceptance/contract/wire_test.go238 resp.Data.User = &sdk.AuthUser{ID: "usr_abc", Email: "user@example.com", TenantID: 42}CODE
Self-Referential Comments10 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUMdocreader/parser/excel_parser.py113 # Create a chunk for this row with position trackingCOMMENT
MEDIUMdocreader/parser/docx_parser.py373 # Create an estimated page mappingCOMMENT
MEDIUMdocreader/parser/docx_parser.py963 # Create the final text with proper orderingCOMMENT
MEDIUMdocreader/parser/docx_parser.py1112 # Create a new imageCOMMENT
MEDIUMdocreader/parser/docx_parser.py1154 # Create a temporary fileCOMMENT
MEDIUMdocreader/parser/chain_parser.py29 # Create a custom FirstParser with specific parser classesSTRING
MEDIUMdocreader/parser/chain_parser.py103 # Create a custom PipelineParser with specific parser classesSTRING
MEDIUMdocreader/parser/doc_parser.py201 # Create a temporary directory to store the converted fileCOMMENT
MEDIUMmcp-server/weknora_mcp_server.py116 # Create a persistent session for connection pooling and performanceCOMMENT
MEDIUMmcp-server/weknora_mcp_server.py1187 # Create a knowledge-base-bound chat session with strategy configuration.COMMENT
AI Slop Vocabulary6 hits · 17 pts
SeverityFileLineSnippetContext
MEDIUMcmd/desktop/main.go40// and instead uses robust DOM-traversal via el.closest() plus a Y-positionCOMMENT
MEDIUMfrontend/package-lock.json4464 "resolved": "https://mirrors.tencent.com/npm/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
MEDIUMfrontend/src/components/css/chat-timeline-loading.less29// One full gradient width (background-size is 200%) so the loop is seamless.COMMENT
MEDIUMinternal/searchutil/normalize.go11// NormalizeKeywordScores normalizes keyword match scores in-place using robust percentile bounds.COMMENT
MEDIUM…ion/repository/retriever/opensearch/repository_test.go215// parseMajorMinor — robust semver parsingCOMMENT
MEDIUMcli/cmd/doctor/doctor.go288// but type-assertion is structurally more robust to scheme renames.COMMENT
Redundant / Tautological Comments9 hits · 12 pts
SeverityFileLineSnippetContext
LOWdocreader/splitter/splitter.py250 # Check if adding this split would exceed chunk sizeCOMMENT
LOWdocreader/parser/docx_parser.py192 # Check if the generated text is emptyCOMMENT
LOWdocreader/parser/docx_parser.py654 # Check if the document contains images to optimize processing speedCOMMENT
LOWdocreader/parser/docx_parser.py878 # Check if there are imagesCOMMENT
LOWdocreader/parser/docx_parser.py944 if line_data.content_sequence: # Check if we have processed_contentCODE
LOWdocreader/parser/doc_parser.py148 # Check if antiword is installedCOMMENT
LOWdocreader/parser/doc_parser.py186 # Check if LibreOffice or OpenOffice is installedCOMMENT
LOWdocreader/parser/doc_parser.py282 # Check if path is set in environment variableCOMMENT
LOWscripts/migrate.sh26# Check if migrate tool is installedCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALfrontend/src/views/agent/AgentEditorModal.vue2285 formData.value.config.question_suggestions.starters.items.splice(index, 1);CODE
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHdocreader/utils/endecode.py24Convert image to base64 encoded string. This function handles multiple image input formats and converts them toSTRING
HIGHdocreader/utils/endecode.py79Decode a base64 encoded image string back to bytes. This function converts a base64 encoded string representation oSTRING
Slop Phrases2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMconfig/prompt_templates/agent_system_prompt.yaml287 * **MCP Tools (dynamic):** Any tools whose names do NOT start with `wiki_` and are not the built-in `thinking` / `COMMENT
MEDIUMconfig/prompt_templates/fallback.yaml75 content: "Sorry, I'm unable to answer this question at the moment. Please try rephrasing your question, or contact cCODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdocreader/auth.py129CODE
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWskills/preloaded/data-processor/scripts/analyze.py94CODE