Ready-to-run cloud templates for RAG, AI pipelines, and enterprise search with live data. 🐳Docker-friendly.⚡Always in sync with Sharepoint, Google Drive, S3, Kafka, PostgreSQL, real-time data APIs, and more.
This report presents the forensic synthetic code analysis of pathwaycom/llm-app, a Jupyter Notebook project with 59,037 GitHub stars. SynthScan v2.0 examined 6,017 lines of code across 66 source files, recording 79 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 29.8 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 79 distinct pattern matches across 7 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 | templates/slides_ai_search/app.yaml | 1 | # This YAML configuration file is used to set up and configure the Slides Search RAG template. | COMMENT |
| MEDIUM | templates/slides_ai_search/app.yaml | 8 | # $sources defines the data sources used to read the data which will be indexed in the RAG. | COMMENT |
| MEDIUM | templates/slides_ai_search/README.md | 219 | #### With the Pathway Live Data Framework RAG Client | COMMENT |
| MEDIUM | templates/document_store_mcp_server/app.yaml | 1 | # This YAML configuration file is used to set up and configure the Document indexing RAG template. | COMMENT |
| MEDIUM | templates/document_store_mcp_server/app.yaml | 7 | # $sources defines the data sources used to read the data which will be indexed in the RAG. | COMMENT |
| MEDIUM | templates/document_store_mcp_server/app.yaml | 65 | # Manages the storage and retrieval of documents for the RAG template. | COMMENT |
| MEDIUM⚡ | templates/video_rag_twelvelabs/app.yaml | 1 | # This YAML configuration file sets up the TwelveLabs video RAG template. | COMMENT |
| MEDIUM⚡ | templates/video_rag_twelvelabs/app.yaml | 3 | # embedding that text with the TwelveLabs Marengo model, and serving a RAG | COMMENT |
| MEDIUM⚡ | templates/video_rag_twelvelabs/app.yaml | 9 | # $sources defines the data sources read and indexed in the RAG. | COMMENT |
| MEDIUM | templates/video_rag_twelvelabs/app.yaml | 79 | # The RAG question-answering component served over HTTP. | COMMENT |
| MEDIUM | templates/video_rag_twelvelabs/README.md | 12 | # Video RAG with Pathway Live Data Framework and TwelveLabs | COMMENT |
| MEDIUM | templates/document_indexing/app.yaml | 1 | # This YAML configuration file is used to set up and configure the Document indexing RAG template. | COMMENT |
| MEDIUM | templates/document_indexing/app.yaml | 7 | # $sources defines the data sources used to read the data which will be indexed in the RAG. | COMMENT |
| MEDIUM | templates/document_indexing/app.yaml | 65 | # Manages the storage and retrieval of documents for the RAG template. | COMMENT |
| MEDIUM | templates/private_rag/app.yaml | 1 | # This YAML configuration file is used to set up and configure the Private RAG template. | COMMENT |
| MEDIUM | templates/private_rag/app.yaml | 8 | # $sources defines the data sources used to read the data which will be indexed in the RAG. | COMMENT |
| MEDIUM | templates/private_rag/app.yaml | 87 | # Manages the storage and retrieval of documents for the RAG template. | COMMENT |
| MEDIUM | templates/private_rag/app.yaml | 94 | # Configures the question-answering component using the RAG approach. | COMMENT |
| MEDIUM | templates/private_rag/README.md | 12 | # Fully private RAG with Pathway Live Data Framework | COMMENT |
| MEDIUM | templates/multimodal_rag/app.yaml | 1 | # This YAML configuration file is used to set up and configure the Multimodal RAG template. | COMMENT |
| MEDIUM | templates/multimodal_rag/app.yaml | 8 | # $sources defines the data sources used to read the data which will be indexed in the RAG. | COMMENT |
| MEDIUM | templates/multimodal_rag/app.yaml | 91 | # Manages the storage and retrieval of documents for the RAG template. | COMMENT |
| MEDIUM | templates/multimodal_rag/app.yaml | 98 | # Configures the question-answering component using the RAG approach. | COMMENT |
| MEDIUM | templates/multimodal_rag/README.md | 12 | # Multimodal RAG with Pathway Live Data Framework: Process your Financial Reports and Tables with GPT-4o | COMMENT |
| MEDIUM | templates/drive_alert/README.md | 1 | # Pathway Live Data Framework + LLM + Slack notification: RAG App with real-time alerting when answers change in documen | COMMENT |
| MEDIUM | templates/adaptive_rag/app.yaml | 1 | # This YAML configuration file is used to set up and configure the Adaptive RAG template. | COMMENT |
| MEDIUM | templates/adaptive_rag/app.yaml | 8 | # $sources defines the data sources used to read the data which will be indexed in the RAG. | COMMENT |
| MEDIUM⚡ | templates/adaptive_rag/app.yaml | 79 | # Manages the storage and retrieval of documents for the RAG template. | COMMENT |
| MEDIUM⚡ | templates/adaptive_rag/app.yaml | 86 | # Configures the question-answering component using the RAG approach. | COMMENT |
| MEDIUM⚡ | templates/adaptive_rag/app.yaml | 87 | # The component builds a RAG over an index. | COMMENT |
| MEDIUM⚡ | templates/adaptive_rag/app.yaml | 88 | # You can interact with obtained RAG using a REST API. | COMMENT |
| MEDIUM | templates/adaptive_rag/README.md | 13 | # End to end Adaptive RAG with Pathway Live Data Framework | COMMENT |
| MEDIUM | templates/question_answering_rag/app.yaml | 1 | # This YAML configuration file is used to set up and configure the Question Answering RAG template. | COMMENT |
| MEDIUM | templates/question_answering_rag/app.yaml | 8 | # $sources defines the data sources used to read the data which will be indexed in the RAG. | COMMENT |
| MEDIUM⚡ | templates/question_answering_rag/app.yaml | 80 | # Manages the storage and retrieval of documents for the RAG template. | COMMENT |
| MEDIUM⚡ | templates/question_answering_rag/app.yaml | 87 | # Configures the question-answering component using the RAG approach. | COMMENT |
| MEDIUM⚡ | templates/question_answering_rag/app.yaml | 88 | # The component builds a RAG over an index. | COMMENT |
| MEDIUM⚡ | templates/question_answering_rag/app.yaml | 89 | # You can interact with obtained RAG using a REST API. | COMMENT |
| MEDIUM | templates/question_answering_rag/README.md | 12 | # Pathway Live Data Framework RAG app with always up-to-date knowledge | COMMENT |
| MEDIUM | templates/question_answering_rag/README.md | 41 | This example spawns a lightweight webserver using Pathway’s [`QASummaryRestServer`](https://pathway.com/developers/api-d | CODE |
| MEDIUM | templates/question_answering_rag/README.md | 48 | ### LLM and RAG capabilities | COMMENT |
| MEDIUM | templates/question_answering_rag/README.md | 94 | ### RAG | COMMENT |
| MEDIUM | templates/question_answering_rag/README.md | 329 | #### Asking questions to LLM (With and without RAG) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | templates/slides_ai_search/app.yaml | 21 | # url: $SHAREPOINT_URL | COMMENT |
| LOW | templates/slides_ai_search/app.yaml | 101 | description: "Language of the slide. For example 'fr', 'en'" | COMMENT |
| LOW | templates/slides_ai_search/app.yaml | 121 | # Defaults to false, uncomment the following line if you want to set it to true | COMMENT |
| LOW | templates/document_store_mcp_server/app.yaml | 1 | # This YAML configuration file is used to set up and configure the Document indexing RAG template. | COMMENT |
| LOW | templates/document_store_mcp_server/app.yaml | 21 | # tenant: $SHAREPOINT_TENANT | COMMENT |
| LOW | templates/document_store_mcp_server/app.yaml | 81 | # By default, caching is enabled for UDFs with cache_strategy set. | COMMENT |
| LOW | templates/video_rag_twelvelabs/app.yaml | 1 | # This YAML configuration file sets up the TwelveLabs video RAG template. | COMMENT |
| LOW | templates/video_rag_twelvelabs/app.yaml | 21 | # - !pw.io.gdrive.read | COMMENT |
| LOW | templates/video_rag_twelvelabs/app.yaml | 81 | llm: $llm | COMMENT |
| LOW | templates/document_indexing/app.yaml | 1 | # This YAML configuration file is used to set up and configure the Document indexing RAG template. | COMMENT |
| LOW | templates/document_indexing/app.yaml | 21 | # tenant: $SHAREPOINT_TENANT | COMMENT |
| LOW | templates/document_indexing/app.yaml | 81 | # By default, when enabled, Cache is stored in .Cache directory. | COMMENT |
| LOW | templates/private_rag/app.yaml | 21 | # url: $SHAREPOINT_URL | COMMENT |
| LOW | templates/private_rag/app.yaml | 101 | strict_prompt: true | COMMENT |
| LOW | templates/multimodal_rag/app.yaml | 21 | # url: $SHAREPOINT_URL | COMMENT |
| LOW | templates/multimodal_rag/app.yaml | 101 | indexer: $document_store | COMMENT |
| LOW | templates/multimodal_rag/app.yaml | 121 | # path: ".Cache" | COMMENT |
| LOW | templates/adaptive_rag/app.yaml | 21 | # url: $SHAREPOINT_URL | COMMENT |
| LOW | templates/adaptive_rag/app.yaml | 101 | COMMENT | |
| LOW | templates/question_answering_rag/app.yaml | 21 | # url: $SHAREPOINT_URL | COMMENT |
| LOW | templates/question_answering_rag/app.yaml | 81 | $document_store: !pw.xpacks.llm.document_store.DocumentStore | COMMENT |
| LOW | templates/question_answering_rag/app.yaml | 101 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | templates/slides_ai_search/ui/ui.py | 91 | def parse_slide_id_components(slide_id: str) -> tuple[str, int, int]: | CODE |
| LOW | templates/drive_alert/app.py | 73 | def build_prompt_check_for_alert_request_and_extract_query(query: str) -> str: | CODE |
| LOW | templates/drive_alert/app.py | 94 | def build_prompt_compare_answers(new: str, old: str) -> str: | STRING |
| LOW | templates/drive_alert/app.py | 111 | def construct_notification_message(query: str, response: str) -> str: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/slides_ai_search/pathway_slides_ai_search/__init__.py | 104 | except Exception as e: | CODE |
| LOW | …/slides_ai_search/pathway_slides_ai_search/__init__.py | 117 | except Exception as e: | CODE |
| LOW | templates/unstructured_to_sql_on_the_fly/ui/server.py | 75 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | templates/unstructured_to_sql_on_the_fly/app.py | 208 | CODE | |
| LOW | templates/unstructured_to_sql_on_the_fly/app.py | 273 | CODE | |
| LOW | templates/drive_alert/app.py | 128 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | templates/unstructured_to_sql_on_the_fly/__init__.py | 3 | __all__ = ["run"] | CODE |
| LOW | templates/drive_alert/__init__.py | 3 | __all__ = ["run"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | templates/unstructured_to_sql_on_the_fly/__init__.py | 1 | CODE | |
| LOW | templates/drive_alert/__init__.py | 1 | CODE |