Repository Analysis

VectifyAI/PageIndex

📑 PageIndex: Document Index for Vectorless, Reasoning-based RAG

16.7 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of VectifyAI/PageIndex, a Python project with 34,012 GitHub stars. SynthScan v2.0 examined 8,497 lines of code across 38 source files, recording 103 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 16.7 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).

16.7
Adjusted Score
16.7
Raw Score
100%
Time Factor
2026-07-13
Last Push
34.0K
Stars
Python
Language
8.5K
Lines of Code
38
Files
103
Pattern Hits
2026-07-14
Scan Date
0.03
HC Hit Rate

What These Metrics Mean

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

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 1MEDIUM 14LOW 88

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 103 distinct pattern matches across 14 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.

Hyper-Verbose Identifiers40 hits · 44 pts
SeverityFileLineSnippetContext
LOWtests/test_issue_163.py20 def test_toc_detector_empty_response(self, mock_llm):CODE
LOWtests/test_issue_163.py25 def test_toc_detector_valid_response(self, mock_llm):CODE
LOWtests/test_issue_163.py30 def test_toc_detector_malformed_response(self, mock_llm):CODE
LOWtests/test_issue_163.py35 def test_extraction_complete_empty_response(self, mock_llm):CODE
LOWtests/test_issue_163.py40 def test_extraction_complete_valid_response(self, mock_llm):CODE
LOWtests/test_issue_163.py45 def test_transformation_complete_empty_response(self, mock_llm):CODE
LOWtests/test_issue_163.py50 def test_transformation_complete_valid_response(self, mock_llm):CODE
LOWtests/test_issue_163.py55 def test_detect_page_index_empty_response(self, mock_llm):CODE
LOWtests/test_issue_163.py63 def test_completes_on_first_try(self, mock_llm, mock_check):CODE
LOWtests/test_issue_163.py72 def test_continues_on_incomplete(self, mock_llm, mock_check):CODE
LOWtests/test_issue_163.py84 def test_max_retries_raises_exception(self, mock_llm, mock_check):CODE
LOWtests/test_issue_163.py93 def test_chat_history_grows_incrementally(self, mock_llm, mock_check):CODE
LOWtests/test_issue_163.py119 def test_completes_on_first_try(self, mock_llm, mock_check):CODE
LOWtests/test_issue_163.py131 def test_handles_missing_table_of_contents_key(self, mock_llm, mock_check):CODE
LOWpageindex/page_index.py48async def check_title_appearance_in_start(title, page_text, model=None, logger=None):CODE
LOWpageindex/page_index.py74async def check_title_appearance_in_start_concurrent(structure, page_list, model=None, logger=None):CODE
LOWpageindex/page_index.py124def check_if_toc_extraction_is_complete(content, toc, model=None):CODE
LOWpageindex/page_index.py142def check_if_toc_transformation_is_complete(content, toc, model=None):CODE
LOWpageindex/page_index.py368def extract_matching_page_pairs(toc_page, toc_physical_index, start_page_index):CODE
LOWpageindex/page_index.py405def add_page_offset_to_toc_json(data, offset):CODE
LOWpageindex/page_index.py483def remove_first_physical_index_section(text):CODE
LOWpageindex/page_index.py586def process_toc_no_page_numbers(toc_content, toc_page_list, page_list, start_index=1, model=None, logger=None):CODE
LOWpageindex/page_index.py611def process_toc_with_page_numbers(toc_content, toc_page_list, page_list, toc_check_page_num=None, model=None, logger=NonCODE
LOWpageindex/page_index.py645def process_none_page_numbers(toc_items, page_list, start_index=1, model=None):CODE
LOWpageindex/page_index.py729async def single_toc_item_index_fixer(section_title, content, model=None):CODE
LOWpageindex/page_index.py870async def fix_incorrect_toc_with_retries(toc_with_page_number, page_list, incorrect_results, start_index=1, max_attemptsCODE
LOWpageindex/page_index.py992async def process_large_node_recursively(node, page_list, opt=None, logger=None):CODE
LOWpageindex/page_index.py1116def validate_and_truncate_physical_indices(toc_with_page_number, page_list_length, start_index=1, logger=None):CODE
LOWpageindex/client.py18def _normalize_retrieve_model(model: str) -> str:CODE
LOWpageindex/utils.py249def get_first_start_page_from_text(text):CODE
LOWpageindex/utils.py256def get_last_start_page_from_text(text):CODE
LOWpageindex/utils.py421def get_text_of_pdf_pages_with_labels(pdf_pages, start_page, end_page):CODE
LOWpageindex/utils.py519def convert_physical_index_to_int(data):CODE
LOWpageindex/utils.py566def add_node_text_with_labels(node, pdf_pages):CODE
LOWpageindex/utils.py590async def generate_summaries_for_structure(structure, model=None):STRING
LOWpageindex/utils.py600def create_clean_structure_for_description(structure):STRING
LOWpageindex/page_index_md.py19async def generate_summaries_for_structure_md(structure, summary_token_threshold, model=None):CODE
LOWpageindex/page_index_md.py32def extract_nodes_from_markdown(markdown_content):CODE
LOWpageindex/page_index_md.py62def extract_node_text_content(node_list, markdown_lines):CODE
LOWpageindex/page_index_md.py89def update_node_list_with_text_token_count(node_list, model=None):CODE
Modern AI Meta-Vocabulary8 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md14# PageIndex: Vectorless, Reasoning-based RAGCOMMENT
MEDIUMREADME.md33- 🔥 [**Agentic Vectorless RAG**](https://github.com/VectifyAI/PageIndex/blob/main/examples/agentic_vectorless_rag_demo.pCODE
MEDIUMREADME.md33- 🔥 [**Agentic Vectorless RAG**](https://github.com/VectifyAI/PageIndex/blob/main/examples/agentic_vectorless_rag_demo.pCODE
MEDIUMREADME.md36- [PageIndex Framework](https://pageindex.ai/blog/pageindex-intro) — Deep dive into PageIndex: an *agentic, in-context tCODE
MEDIUMREADME.md50Inspired by AlphaGo, we propose **[PageIndex](https://vectify.ai/pageindex)** — a **vectorless**, **reasoning-based RAG*CODE
MEDIUMREADME.md88- 🔥 [**Agentic Vectorless RAG**](examples/agentic_vectorless_rag_demo.py) *(latest)* — a simple but complete **agentic vCODE
MEDIUMREADME.md200## 🚀 Agentic Vectorless RAG: An ExampleCOMMENT
MEDIUM…es/workspace/12345678-abcd-4321-abcd-123456789abc.json223 "content": "Attention ResidualsTECHNICALREPORT\nTable 2: Baseline vs Block AttnRes ( N= 8 ) vs Full AttnRes vs mHCCODE
Unused Imports14 hits · 14 pts
SeverityFileLineSnippetContext
LOWrun_pageindex.py4CODE
LOWtests/test_issue_163.py4CODE
LOWexamples/agentic_vectorless_rag_demo.py31CODE
LOWpageindex/page_index.py7CODE
LOWpageindex/page_index.py9CODE
LOWpageindex/page_index.py9CODE
LOWpageindex/__init__.py1CODE
LOWpageindex/__init__.py2CODE
LOWpageindex/__init__.py3CODE
LOWpageindex/__init__.py3CODE
LOWpageindex/__init__.py3CODE
LOWpageindex/__init__.py4CODE
LOWpageindex/page_index_md.py6CODE
LOWpageindex/page_index_md.py8CODE
Deep Nesting15 hits · 12 pts
SeverityFileLineSnippetContext
LOWexamples/agentic_vectorless_rag_demo.py55CODE
LOWexamples/agentic_vectorless_rag_demo.py89CODE
LOWpageindex/page_index.py330CODE
LOWpageindex/page_index.py368CODE
LOWpageindex/page_index.py645CODE
LOWpageindex/page_index.py685CODE
LOWpageindex/page_index.py1116CODE
LOWpageindex/client.py55CODE
LOWpageindex/utils.py33CODE
LOWpageindex/utils.py174CODE
LOWpageindex/utils.py192CODE
LOWpageindex/utils.py388CODE
LOWpageindex/utils.py519CODE
LOWpageindex/utils.py194CODE
LOWpageindex/page_index_md.py135CODE
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHpageindex/utils.py268 # In Linux, only '/' and '\0' (null) are invalid in filenames.COMMENT
Verbosity Indicators3 hits · 6 pts
SeverityFileLineSnippetContext
LOWexamples/agentic_vectorless_rag_demo.py158 # Step 1: Index PDF and view tree structureCOMMENT
LOWexamples/agentic_vectorless_rag_demo.py175 # Step 2: View document metadataCOMMENT
LOWexamples/agentic_vectorless_rag_demo.py182 # Step 3: Agent QueryCOMMENT
Structural Annotation Overuse3 hits · 6 pts
SeverityFileLineSnippetContext
LOWexamples/agentic_vectorless_rag_demo.py158 # Step 1: Index PDF and view tree structureCOMMENT
LOWexamples/agentic_vectorless_rag_demo.py175 # Step 2: View document metadataCOMMENT
LOWexamples/agentic_vectorless_rag_demo.py182 # Step 3: Agent QueryCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMpageindex/page_index.py1087 # Create a clean structure without unnecessary fields for description generationCOMMENT
MEDIUMpageindex/page_index_md.py280 # Create a clean structure without unnecessary fields for description generationCOMMENT
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWpageindex/page_index.py763 # Check if list_index is validCOMMENT
LOWpageindex/page_index.py817 # Check if the result is correctCOMMENT
LOWpageindex/utils.py213 # Check if the node is a leaf nodeCOMMENT
LOWpageindex/utils.py522 # Check if item is a dictionary and has 'physical_index' keyCOMMENT
Excessive Try-Catch Wrapping5 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMpageindex/utils.py100def extract_json(content):CODE
LOWpageindex/utils.py50 except Exception as e:CODE
LOWpageindex/utils.py76 except Exception as e:CODE
LOWpageindex/utils.py129 except Exception as e:CODE
LOWpageindex/retrieve.py134 except Exception as e:CODE
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMpageindex/retrieve.py10# ── Helpers ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMpageindex/retrieve.py79# ── Tool functions ────────────────────────────────────────────────────────────COMMENT
AI Structural Patterns4 hits · 4 pts
SeverityFileLineSnippetContext
LOWpageindex/page_index.py1105CODE
LOWpageindex/utils.py587CODE
LOWpageindex/utils.py632CODE
LOWpageindex/page_index_md.py243CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…es/workspace/12345678-abcd-4321-abcd-123456789abc.json263 "content": "Attention ResidualsTECHNICALREPORT\n[52] Ashish Vaswani et al. “Attention is All you Need”. In:AdvanceCODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.github/scripts/comment-on-duplicates.sh5# Usage:COMMENT