This report presents the forensic synthetic code analysis of jamwithai/production-agentic-rag-course, a Python project with 7,827 GitHub stars. SynthScan v2.0 examined 13,913 lines of code across 136 source files, recording 428 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 38.0 places this repository in the Strong 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 428 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/test_config.py | 3 | CODE | |
| LOW | tests/unit/services/test_opensearch_query_builder.py | 1 | CODE | |
| LOW | tests/unit/services/test_arxiv_client.py | 1 | CODE | |
| LOW | tests/unit/services/test_arxiv_client.py | 2 | CODE | |
| LOW | tests/unit/services/test_arxiv_client.py | 6 | CODE | |
| LOW | tests/unit/services/test_arxiv_client.py | 6 | CODE | |
| LOW | tests/unit/services/test_pdf_parser.py | 2 | CODE | |
| LOW | tests/unit/services/test_pdf_parser.py | 2 | CODE | |
| LOW | tests/unit/services/test_pdf_parser.py | 6 | CODE | |
| LOW | tests/unit/services/test_metadata_fetcher.py | 3 | CODE | |
| LOW | tests/unit/services/test_metadata_fetcher.py | 4 | CODE | |
| LOW | tests/unit/services/test_metadata_fetcher.py | 7 | CODE | |
| LOW | tests/unit/services/test_metadata_fetcher.py | 7 | CODE | |
| LOW | tests/unit/services/test_metadata_fetcher.py | 11 | CODE | |
| LOW | tests/unit/services/agents/test_nodes.py | 5 | CODE | |
| LOW | tests/unit/services/agents/test_tools.py | 2 | CODE | |
| LOW | tests/unit/services/agents/test_agentic_rag.py | 4 | CODE | |
| LOW | tests/unit/services/agents/test_agentic_rag.py | 5 | CODE | |
| LOW | tests/integration/test_services.py | 1 | CODE | |
| LOW | tests/api/routers/test_ask.py | 1 | CODE | |
| LOW | tests/api/routers/test_hybrid_search.py | 1 | CODE | |
| LOW | tests/api/routers/test_ping.py | 1 | CODE | |
| LOW | airflow/dags/arxiv_paper_ingestion.py | 7 | CODE | |
| LOW | airflow/dags/arxiv_ingestion/fetching.py | 4 | CODE | |
| LOW | src/config.py | 3 | CODE | |
| LOW | src/config.py | 3 | CODE | |
| LOW | src/routers/__init__.py | 4 | CODE | |
| LOW | src/routers/__init__.py | 4 | CODE | |
| LOW | src/routers/__init__.py | 4 | CODE | |
| LOW | src/repositories/paper.py | 1 | CODE | |
| LOW | src/repositories/__init__.py | 1 | CODE | |
| LOW | src/models/__init__.py | 1 | CODE | |
| LOW | src/schemas/__init__.py | 1 | CODE | |
| LOW | src/schemas/__init__.py | 2 | CODE | |
| LOW | src/schemas/__init__.py | 2 | CODE | |
| LOW | src/schemas/__init__.py | 2 | CODE | |
| LOW | src/schemas/__init__.py | 3 | CODE | |
| LOW | src/schemas/__init__.py | 3 | CODE | |
| LOW | src/schemas/__init__.py | 3 | CODE | |
| LOW | src/schemas/__init__.py | 3 | CODE | |
| LOW | src/schemas/__init__.py | 4 | CODE | |
| LOW | src/schemas/__init__.py | 4 | CODE | |
| LOW | src/schemas/__init__.py | 4 | CODE | |
| LOW | src/schemas/__init__.py | 4 | CODE | |
| LOW | src/schemas/__init__.py | 4 | CODE | |
| LOW | src/schemas/common/__init__.py | 1 | CODE | |
| LOW | src/schemas/common/__init__.py | 1 | CODE | |
| LOW | src/schemas/common/__init__.py | 2 | CODE | |
| LOW | src/schemas/common/__init__.py | 2 | CODE | |
| LOW | src/schemas/common/__init__.py | 2 | CODE | |
| LOW | src/schemas/common/__init__.py | 5 | CODE | |
| LOW | src/schemas/common/__init__.py | 5 | CODE | |
| LOW | src/schemas/common/__init__.py | 5 | CODE | |
| LOW | src/schemas/common/__init__.py | 5 | CODE | |
| LOW | src/schemas/common/__init__.py | 5 | CODE | |
| LOW | src/schemas/common/__init__.py | 14 | CODE | |
| LOW | src/schemas/common/__init__.py | 17 | CODE | |
| LOW | src/schemas/common/__init__.py | 17 | CODE | |
| LOW | src/schemas/common/__init__.py | 20 | CODE | |
| LOW | src/schemas/common/__init__.py | 20 | CODE | |
| 48 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/unit/test_config.py | 7 | def test_settings_initialization(): | CODE |
| LOW⚡ | tests/unit/test_config.py | 17 | def test_settings_postgres_defaults(): | CODE |
| LOW⚡ | tests/unit/test_config.py | 27 | def test_settings_opensearch_defaults(): | CODE |
| LOW⚡ | tests/unit/test_config.py | 35 | def test_settings_ollama_defaults(): | CODE |
| LOW | tests/unit/schemas/test_search.py | 6 | def test_search_request_valid(): | CODE |
| LOW | tests/unit/schemas/test_search.py | 17 | def test_search_request_defaults(): | CODE |
| LOW | tests/unit/schemas/test_search.py | 28 | def test_search_request_validation_errors(): | CODE |
| LOW | tests/unit/schemas/test_search.py | 70 | def test_search_response_creation(): | CODE |
| LOW | tests/unit/services/test_opensearch_query_builder.py | 5 | def test_query_builder_basic_query(): | CODE |
| LOW | tests/unit/services/test_opensearch_query_builder.py | 24 | def test_query_builder_with_categories(): | CODE |
| LOW | tests/unit/services/test_opensearch_query_builder.py | 37 | def test_query_builder_latest_papers_sorting(): | CODE |
| LOW⚡ | tests/unit/services/test_opensearch_query_builder.py | 49 | def test_query_builder_relevance_sorting(): | CODE |
| LOW⚡ | tests/unit/services/test_opensearch_query_builder.py | 57 | def test_query_builder_empty_query_sorting(): | CODE |
| LOW⚡ | tests/unit/services/test_opensearch_query_builder.py | 67 | def test_query_builder_highlighting(): | CODE |
| LOW | tests/unit/services/test_opensearch_query_builder.py | 85 | def test_query_builder_source_fields(): | CODE |
| LOW | tests/unit/services/test_opensearch_query_builder.py | 97 | def test_query_builder_custom_fields(): | CODE |
| LOW | tests/unit/services/test_arxiv_client.py | 48 | def test_factory_creates_client(self): | CODE |
| LOW | tests/unit/services/test_arxiv_client.py | 56 | async def test_fetch_papers_success(self, arxiv_client, mock_arxiv_response): | CODE |
| LOW | tests/unit/services/test_arxiv_client.py | 75 | async def test_fetch_papers_with_date_filters(self, arxiv_client, mock_arxiv_response): | CODE |
| LOW | tests/unit/services/test_arxiv_client.py | 92 | async def test_fetch_papers_http_timeout(self, arxiv_client): | CODE |
| LOW | tests/unit/services/test_arxiv_client.py | 105 | async def test_fetch_papers_http_error(self, arxiv_client): | CODE |
| LOW | tests/unit/services/test_arxiv_client.py | 120 | async def test_fetch_paper_by_id_success(self, arxiv_client, mock_arxiv_response): | CODE |
| LOW | tests/unit/services/test_arxiv_client.py | 136 | async def test_fetch_paper_by_id_not_found(self, arxiv_client): | CODE |
| LOW | tests/unit/services/test_arxiv_client.py | 153 | def test_parse_response_invalid_xml(self, arxiv_client): | CODE |
| LOW⚡ | tests/unit/services/test_pdf_parser.py | 41 | def test_docling_parser_initialization(self, docling_parser): | CODE |
| LOW⚡ | tests/unit/services/test_pdf_parser.py | 47 | def test_validate_pdf_valid_file(self, docling_parser, valid_pdf_path): | CODE |
| LOW⚡ | tests/unit/services/test_pdf_parser.py | 52 | def test_validate_pdf_empty_file(self, docling_parser, empty_pdf_path): | CODE |
| LOW⚡ | tests/unit/services/test_pdf_parser.py | 59 | def test_validate_pdf_invalid_header(self, docling_parser, invalid_pdf_path): | CODE |
| LOW⚡ | tests/unit/services/test_pdf_parser.py | 66 | def test_validate_pdf_nonexistent_file(self, docling_parser): | CODE |
| LOW | tests/unit/services/test_pdf_parser.py | 93 | def test_pdf_parser_service_initialization(self, pdf_parser_service): | CODE |
| LOW | tests/unit/services/test_pdf_parser.py | 99 | async def test_parse_pdf_file_not_found(self, pdf_parser_service): | CODE |
| LOW | tests/unit/services/test_pdf_parser.py | 135 | async def test_parse_pdf_docling_error(self, mock_parse, pdf_parser_service, valid_pdf_path): | CODE |
| LOW | tests/unit/services/test_pdf_parser.py | 144 | def test_factory_creates_service(self): | CODE |
| LOW | tests/unit/services/test_metadata_fetcher.py | 72 | def test_metadata_fetcher_initialization(self, metadata_fetcher, tmp_path): | CODE |
| LOW | tests/unit/services/test_metadata_fetcher.py | 93 | async def test_rate_limiting_respected(self, metadata_fetcher): | CODE |
| LOW | tests/unit/services/agents/test_nodes.py | 24 | def test_continue_after_guardrail_pass(self, test_context): | CODE |
| LOW | tests/unit/services/agents/test_nodes.py | 38 | def test_continue_after_guardrail_fail(self, test_context): | CODE |
| LOW | tests/unit/services/agents/test_nodes.py | 57 | async def test_retrieve_creates_tool_call(self, test_context, sample_human_message): | CODE |
| LOW | tests/unit/services/agents/test_nodes.py | 76 | async def test_retrieve_max_attempts_reached(self, test_context, sample_human_message): | CODE |
| LOW | tests/unit/services/agents/test_nodes.py | 98 | async def test_grade_documents_relevant(self, test_context, sample_human_message, sample_tool_message): | CODE |
| LOW | tests/unit/services/agents/test_nodes.py | 119 | async def test_grade_documents_not_relevant(self, test_context, sample_human_message, sample_tool_message): | CODE |
| LOW | tests/unit/services/agents/test_nodes.py | 144 | async def test_rewrite_query_success(self, test_context, sample_human_message): | CODE |
| LOW | tests/unit/services/agents/test_nodes.py | 171 | async def test_generate_answer_success(self, test_context, sample_human_message, sample_tool_message): | CODE |
| LOW | tests/unit/services/agents/test_nodes.py | 197 | async def test_out_of_scope_response(self, test_context, sample_human_message): | CODE |
| LOW | tests/unit/services/agents/test_nodes.py | 228 | def test_get_latest_query_with_multiple_human_messages(self): | CODE |
| LOW | tests/unit/services/agents/test_nodes.py | 247 | def test_get_latest_context_no_tool_messages(self, sample_human_message): | CODE |
| LOW | tests/unit/services/agents/test_models.py | 31 | def test_invalid_score_too_low(self): | CODE |
| LOW | tests/unit/services/agents/test_models.py | 36 | def test_invalid_score_too_high(self): | CODE |
| LOW | tests/unit/services/agents/test_models.py | 62 | def test_invalid_binary_score(self): | CODE |
| LOW | tests/unit/services/agents/test_models.py | 144 | def test_valid_routing_decisions(self): | CODE |
| LOW | tests/unit/services/agents/test_models.py | 167 | def test_valid_grading_result(self): | CODE |
| LOW | tests/unit/services/agents/test_models.py | 193 | def test_valid_reasoning_step(self): | CODE |
| LOW | tests/unit/services/agents/test_tools.py | 9 | async def test_create_retriever_tool_basic(mock_opensearch_client, mock_jina_embeddings_client): | CODE |
| LOW | tests/unit/services/agents/test_tools.py | 49 | async def test_retriever_tool_empty_results(mock_opensearch_client, mock_jina_embeddings_client): | CODE |
| LOW | tests/unit/services/agents/test_tools.py | 66 | async def test_retriever_tool_custom_top_k(mock_opensearch_client, mock_jina_embeddings_client): | CODE |
| LOW | tests/unit/services/agents/test_tools.py | 84 | async def test_retriever_tool_metadata_fields(mock_opensearch_client, mock_jina_embeddings_client): | CODE |
| LOW | tests/unit/services/agents/test_agentic_rag.py | 35 | def test_service_initialization(self, test_service): | CODE |
| LOW | tests/unit/services/agents/test_agentic_rag.py | 56 | async def test_ask_empty_query_validation(self, test_service): | CODE |
| LOW | tests/unit/services/agents/test_agentic_rag.py | 65 | async def test_ask_with_model_override(self, test_service): | CODE |
| LOW | tests/unit/services/agents/test_agentic_rag.py | 109 | async def test_ask_with_graph_execution_error(self, test_service): | CODE |
| 37 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | airflow/dags/hello_world_dag.py | 28 | except Exception as e: | CODE |
| LOW | airflow/dags/arxiv_ingestion/setup.py | 30 | except Exception as e: | CODE |
| LOW | airflow/dags/arxiv_ingestion/setup.py | 51 | except Exception as e: | CODE |
| LOW | airflow/dags/arxiv_ingestion/indexing.py | 87 | except Exception as e: | CODE |
| LOW | airflow/dags/arxiv_ingestion/indexing.py | 123 | except Exception as e: | CODE |
| LOW | airflow/dags/arxiv_ingestion/reporting.py | 64 | except Exception as stats_error: | CODE |
| LOW | airflow/dags/arxiv_ingestion/reporting.py | 67 | except Exception as e: | CODE |
| LOW | src/gradio_app.py | 106 | except Exception as e: | CODE |
| LOW | src/main.py | 61 | except Exception: | CODE |
| LOW | src/main.py | 89 | except Exception as e: | CODE |
| LOW | src/routers/hybrid_search.py | 28 | except Exception as e: | CODE |
| LOW | src/routers/hybrid_search.py | 77 | except Exception as e: | CODE |
| LOW | src/routers/ask.py | 35 | except Exception as e: | CODE |
| LOW | src/routers/ask.py | 103 | except Exception as e: | CODE |
| LOW | src/routers/ask.py | 134 | except Exception: | CODE |
| LOW | src/routers/ask.py | 160 | except Exception as e: | CODE |
| LOW | src/routers/ask.py | 165 | except Exception as e: | CODE |
| LOW | src/routers/ask.py | 209 | except Exception as e: | CODE |
| LOW | src/routers/ask.py | 264 | except Exception as e: | CODE |
| LOW | src/routers/ask.py | 267 | except Exception as e: | CODE |
| LOW | src/routers/agentic_ask.py | 57 | except Exception as e: | CODE |
| LOW | src/routers/agentic_ask.py | 111 | except Exception as e: | CODE |
| LOW | src/routers/ping.py | 32 | except Exception as e: | CODE |
| LOW | src/routers/ping.py | 63 | except Exception as e: | CODE |
| LOW | src/db/interfaces/postgresql.py | 72 | except Exception as e: | CODE |
| LOW | src/db/interfaces/postgresql.py | 91 | except Exception: | CODE |
| LOW | src/services/metadata_fetcher.py | 145 | except Exception as e: | CODE |
| LOW | src/services/metadata_fetcher.py | 293 | except Exception as e: | CODE |
| LOW | src/services/metadata_fetcher.py | 325 | except Exception as e: | CODE |
| LOW | src/services/metadata_fetcher.py | 390 | except Exception as e: | CODE |
| LOW | src/services/metadata_fetcher.py | 397 | except Exception as e: | CODE |
| LOW | src/services/langfuse/client.py | 31 | except Exception as e: | CODE |
| LOW | src/services/langfuse/client.py | 77 | except Exception as e: | CODE |
| LOW | src/services/langfuse/client.py | 151 | except Exception as e: | CODE |
| LOW⚡ | src/services/langfuse/client.py | 187 | except Exception as e: | CODE |
| LOW⚡ | src/services/langfuse/client.py | 196 | except Exception as e: | CODE |
| LOW⚡ | src/services/langfuse/client.py | 205 | except Exception as e: | CODE |
| LOW | src/services/langfuse/client.py | 253 | except Exception as e: | CODE |
| LOW | src/services/langfuse/client.py | 298 | except Exception as e: | CODE |
| LOW | src/services/langfuse/client.py | 344 | except Exception as e: | CODE |
| LOW | src/services/langfuse/client.py | 382 | except Exception as e: | CODE |
| LOW | src/services/langfuse/tracer.py | 121 | except Exception: | CODE |
| LOW | src/services/embeddings/jina_client.py | 63 | except Exception as e: | CODE |
| LOW | src/services/embeddings/jina_client.py | 91 | except Exception as e: | CODE |
| LOW | src/services/cache/client.py | 54 | except Exception as e: | CODE |
| LOW | src/services/cache/client.py | 73 | except Exception as e: | CODE |
| LOW | src/services/cache/factory.py | 35 | except Exception as e: | CODE |
| LOW | src/services/cache/factory.py | 47 | except Exception as e: | CODE |
| LOW | src/services/opensearch/client.py | 37 | except Exception as e: | CODE |
| LOW | src/services/opensearch/client.py | 58 | except Exception as e: | CODE |
| LOW | src/services/opensearch/client.py | 88 | except Exception as e: | CODE |
| LOW | src/services/opensearch/client.py | 111 | except Exception: | CODE |
| LOW | src/services/opensearch/client.py | 118 | except Exception: | CODE |
| LOW | src/services/opensearch/client.py | 130 | except Exception as e: | CODE |
| LOW | src/services/opensearch/client.py | 177 | except Exception as e: | CODE |
| LOW | src/services/opensearch/client.py | 214 | except Exception as e: | CODE |
| LOW | src/services/opensearch/client.py | 320 | except Exception as e: | CODE |
| LOW | src/services/opensearch/client.py | 346 | except Exception as e: | CODE |
| LOW | src/services/opensearch/client.py | 365 | except Exception as e: | CODE |
| LOW | src/services/opensearch/client.py | 393 | except Exception as e: | CODE |
| 38 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | README.md | 2 | ## Phase 1 RAG Systems: arXiv Paper Curator | COMMENT |
| MEDIUM⚡ | README.md | 50 | ### Week 7: Agentic RAG & Telegram Bot Integration | COMMENT |
| MEDIUM⚡ | README.md | 56 | ### LangGraph Agentic RAG Workflow | COMMENT |
| MEDIUM⚡ | README.md | 63 | **Week 7 Code walkthrough + blog:** [Agentic RAG with LangGraph and Telegram](https://jamwithai.substack.com/p/agentic-r | CODE |
| MEDIUM | README.md | 117 | | **Week 7** | **Agentic RAG & Telegram Bot** | [Agentic RAG with LangGraph and Telegram](https://jamwithai.substack.com | CODE |
| MEDIUM | README.md | 297 | ## 📚 Week 5: Complete RAG Pipeline with LLM Integration | COMMENT |
| MEDIUM | README.md | 377 | ## 📚 Week 7: Agentic RAG with LangGraph and Telegram Bot | COMMENT |
| MEDIUM | README.md | 413 | **Blog Post:** [Agentic RAG with LangGraph and Telegram](https://jamwithai.substack.com/p/agentic-rag-with-langgraph-and | CODE |
| MEDIUM | README.md | 462 | ├── airflow/ # Workflow orchestration (DAGs) | CODE |
| MEDIUM | README.md | 464 | └── compose.yml # Docker service orchestration | CODE |
| MEDIUM | README.md | 561 | [](https: | CODE |
| MEDIUM | README.md | 561 | [](https: | CODE |
| MEDIUM | notebooks/week7/README.md | 1 | # Week 7: Agentic RAG with LangGraph + Telegram Bot | COMMENT |
| MEDIUM | notebooks/week7/README.md | 12 | ## 🧠 Part 1: Agentic RAG with LangGraph | COMMENT |
| MEDIUM | notebooks/week7/README.md | 14 | ### What is Agentic RAG? | COMMENT |
| MEDIUM⚡ | notebooks/week7/README.md | 98 | ### Quick Start: Agentic RAG | COMMENT |
| MEDIUM⚡ | notebooks/week7/README.md | 108 | curl -X POST http://localhost:8000/api/v1/ask-agentic \ | CODE |
| MEDIUM⚡ | notebooks/week7/README.md | 117 | curl -X POST http://localhost:8000/api/v1/ask-agentic \ | CODE |
| MEDIUM | notebooks/week7/README.md | 362 | #### Scenario 2: RAG Question Answering | COMMENT |
| MEDIUM | notebooks/week5/README.md | 1 | # Week 5: Complete RAG System with LLM Integration | COMMENT |
| MEDIUM | notebooks/week5/README.md | 30 | ### 2. Test RAG Endpoint | COMMENT |
| MEDIUM | notebooks/week5/README.md | 45 | ### Standard RAG - `/api/v1/ask` | COMMENT |
| MEDIUM | notebooks/week5/README.md | 50 | ### Streaming RAG - `/api/v1/stream` | COMMENT |
| MEDIUM | notebooks/week5/README.md | 118 | │ └── ask.py # RAG endpoints | CODE |
| MEDIUM | src/gradio_app.py | 119 | # 🔬 arXiv Paper Curator - RAG Chat | STRING |
| MEDIUM⚡ | src/main.py | 116 | app.include_router(ask_router, prefix="/api/v1") # RAG question answering with LLM | CODE |
| MEDIUM⚡ | src/main.py | 117 | app.include_router(stream_router, prefix="/api/v1") # Streaming RAG responses | CODE |
| MEDIUM⚡ | src/main.py | 118 | app.include_router(agentic_ask.router) # Agentic RAG with intelligent retrieval | CODE |
| MEDIUM⚡ | src/services/telegram/bot.py | 148 | # RAG pipeline | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | airflow/dags/arxiv_ingestion/fetching.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | airflow/dags/arxiv_ingestion/setup.py | 7 | logger = logging.getLogger(__name__) | CODE |
| LOW | airflow/dags/arxiv_ingestion/common.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | airflow/dags/arxiv_ingestion/indexing.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | airflow/dags/arxiv_ingestion/reporting.py | 7 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/middlewares.py | 3 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/gradio_app.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/main.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/routers/hybrid_search.py | 7 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/routers/ask.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/routers/__init__.py | 6 | __all__ = ["ask", "ping", "hybrid_search"] | CODE |
| LOW | src/repositories/__init__.py | 3 | __all__ = [ | CODE |
| LOW | src/models/__init__.py | 3 | __all__ = [ | CODE |
| LOW | src/schemas/__init__.py | 6 | __all__ = [ | CODE |
| LOW | src/schemas/common/__init__.py | 40 | __all__ = [ | CODE |
| LOW | src/schemas/telegram/__init__.py | 5 | __all__ = [ | CODE |
| LOW | src/db/interfaces/postgresql.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/metadata_fetcher.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/langfuse/client.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/embeddings/jina_client.py | 7 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/cache/client.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/cache/factory.py | 7 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/opensearch/query_builder.py | 4 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/opensearch/client.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/opensearch/__init__.py | 5 | __all__ = ["OpenSearchClient", "make_opensearch_client", "make_opensearch_client_fresh", "QueryBuilder"] | CODE |
| LOW | src/services/agents/tools.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/agents/__init__.py | 7 | __all__ = [ | CODE |
| LOW | src/services/agents/agentic_rag.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/agents/nodes/retrieve_node.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/agents/nodes/generate_answer_node.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/agents/nodes/rewrite_query_node.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/agents/nodes/__init__.py | 8 | __all__ = [ | CODE |
| LOW | src/services/agents/nodes/grade_documents_node.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/agents/nodes/utils.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/agents/nodes/out_of_scope_node.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/agents/nodes/guardrail_node.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/telegram/__init__.py | 4 | __all__ = ["TelegramBot", "make_telegram_service"] | CODE |
| LOW | src/services/telegram/factory.py | 7 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/telegram/bot.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/arxiv/client.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/indexing/hybrid_indexer.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/indexing/text_chunker.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/pdf_parser/docling.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/pdf_parser/parser.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/ollama/client.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/services/ollama/__init__.py | 3 | __all__ = ["OllamaClient"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | notebooks/week7/README.md | 272 | ### Step 1: Create Your Telegram Bot | COMMENT |
| LOW | notebooks/week7/README.md | 284 | ### Step 2: Configure Environment | COMMENT |
| LOW | notebooks/week7/README.md | 301 | ### Step 3: Install Dependencies | COMMENT |
| LOW | notebooks/week7/README.md | 308 | ### Step 4: Start Services | COMMENT |
| LOW | notebooks/week7/README.md | 325 | ### Step 5: Test Your Bot | COMMENT |
| LOW⚡ | src/services/metadata_fetcher.py | 110 | # Step 2: Process PDFs if requested | COMMENT |
| LOW⚡ | src/services/metadata_fetcher.py | 118 | # Step 3: Store to database if requested | COMMENT |
| LOW | src/services/metadata_fetcher.py | 99 | # Step 1: Fetch paper metadata from arXiv | COMMENT |
| LOW | src/services/metadata_fetcher.py | 256 | # Step 1: Download PDF with download concurrency control | COMMENT |
| LOW | src/services/metadata_fetcher.py | 268 | # Step 2: Parse PDF with parse concurrency control (happens AFTER download completes) | COMMENT |
| LOW | src/services/indexing/hybrid_indexer.py | 48 | # Step 1: Chunk the paper using hybrid section-based approach | COMMENT |
| LOW | src/services/indexing/hybrid_indexer.py | 64 | # Step 2: Generate embeddings for chunks | COMMENT |
| LOW | src/services/indexing/hybrid_indexer.py | 75 | # Step 3: Prepare chunks with embeddings for indexing | COMMENT |
| LOW | src/services/indexing/hybrid_indexer.py | 102 | # Step 4: Index chunks into OpenSearch | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/routers/agentic_ask.py | 13 | Agentic RAG endpoint with intelligent retrieval and query refinement. Features: - Decides if retrieval is | STRING |
| HIGH | src/routers/agentic_ask.py | 66 | Submit user feedback for an agentic RAG response. This endpoint allows users to rate the quality of answers an | STRING |
| HIGH | src/services/arxiv/client.py | 144 | Fetch papers from arXiv using a custom search query. Args: search_query: Custom arXiv sear | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/services/metadata_fetcher.py | 110 | # Step 2: Process PDFs if requested | COMMENT |
| LOW⚡ | src/services/metadata_fetcher.py | 118 | # Step 3: Store to database if requested | COMMENT |
| LOW | src/services/metadata_fetcher.py | 99 | # Step 1: Fetch paper metadata from arXiv | COMMENT |
| LOW | src/services/metadata_fetcher.py | 256 | # Step 1: Download PDF with download concurrency control | COMMENT |
| LOW | src/services/metadata_fetcher.py | 268 | # Step 2: Parse PDF with parse concurrency control (happens AFTER download completes) | COMMENT |
| LOW | src/services/indexing/hybrid_indexer.py | 48 | # Step 1: Chunk the paper using hybrid section-based approach | COMMENT |
| LOW | src/services/indexing/hybrid_indexer.py | 64 | # Step 2: Generate embeddings for chunks | COMMENT |
| LOW | src/services/indexing/hybrid_indexer.py | 75 | # Step 3: Prepare chunks with embeddings for indexing | COMMENT |
| LOW | src/services/indexing/hybrid_indexer.py | 102 | # Step 4: Index chunks into OpenSearch | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/gradio_app.py | 16 | CODE | |
| LOW | src/gradio_app.py | 110 | CODE | |
| LOW | src/routers/ask.py | 19 | CODE | |
| LOW | src/routers/ask.py | 80 | CODE | |
| LOW | src/routers/ask.py | 171 | CODE | |
| LOW | src/routers/ask.py | 181 | CODE | |
| LOW | src/services/metadata_fetcher.py | 150 | CODE | |
| LOW | src/services/telegram/bot.py | 129 | CODE | |
| LOW | src/services/indexing/text_chunker.py | 243 | CODE | |
| LOW | src/services/pdf_parser/docling.py | 91 | CODE | |
| LOW | src/services/ollama/client.py | 193 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/repositories/paper.py | 86 | # Check if paper already exists | COMMENT |
| LOW | src/db/interfaces/postgresql.py | 57 | # Check if any new tables were created | COMMENT |
| LOW | src/services/metadata_fetcher.py | 197 | # Check if result is a tuple before unpacking | COMMENT |
| LOW | src/services/agents/nodes/retrieve_node.py | 65 | # Check if max attempts reached | COMMENT |
| LOW | src/services/indexing/text_chunker.py | 335 | # Check if title contains only metadata indicators | COMMENT |
| LOW | src/services/pdf_parser/docling.py | 65 | # Check if file starts with PDF header | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/unit/services/test_metadata_fetcher.py | 96 | # More comprehensive testing would require timing analysis | COMMENT |
| MEDIUM | src/models/paper.py | 22 | # Parsed PDF content (added for comprehensive storage) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | airflow/dags/hello_world_dag.py | 44 | # Create the DAG | COMMENT |
| MEDIUM | airflow/dags/arxiv_paper_ingestion.py | 25 | # Create the DAG | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | airflow/dags/arxiv_paper_ingestion.py | 67 | find /tmp -name "*.pdf" -type f -mtime +30 -delete 2>/dev/null || true | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | compose.yml | 298 | LANGFUSE_INIT_USER_EMAIL: "admin@example.com" | CODE |
| LOW | tests/unit/schemas/test_search.py | 76 | authors="John Doe", | CODE |