Repository Analysis

lfnovo/open-notebook

An Open Source implementation of Notebook LM with more flexibility and features

16.5 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of lfnovo/open-notebook, a TypeScript project with 37,837 GitHub stars. SynthScan v2.0 examined 115,153 lines of code across 510 source files, recording 1298 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 16.5 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.5
Adjusted Score
16.5
Raw Score
100%
Time Factor
2026-08-16
Last Push
37.8K
Stars
TypeScript
Language
115.2K
Lines of Code
510
Files
1.3K
Pattern Hits
2026-08-29
Scan Date
0.04
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 19MEDIUM 143LOW 1136

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 1298 distinct pattern matches across 18 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 Identifiers586 hits · 615 pts
SeverityFileLineSnippetContext
LOW…nsformations/components/TransformationEditorDialog.tsx51export function TransformationEditorDialog({ open, onOpenChange, transformation }: TransformationEditorDialogProps) {CODE
LOW…src/components/settings/EmbeddingModelChangeDialog.tsx27export function EmbeddingModelChangeDialog({CODE
LOW…/src/components/podcasts/generate-podcast-selection.ts53export function selectionsToContextConfigs(CODE
LOWfrontend/src/lib/credential-update-payload.ts23export function buildCredentialUpdatePayload(CODE
LOWfrontend/src/lib/utils/source-references.tsx179export function convertReferencesToMarkdownLinks(text: string): string {CODE
LOWfrontend/src/lib/utils/source-references.tsx348export function convertReferencesToCompactMarkdown(text: string, referencesLabel: string = 'References'): string {CODE
LOWfrontend/src/lib/utils/source-references.tsx275export function createReferenceLinkComponent(CODE
LOWfrontend/src/lib/utils/source-references.tsx440export function createCompactReferenceLinkComponent(CODE
LOWfrontend/src/lib/utils/source-references.tsx491export function convertSourceReferencesLegacy(text: string): React.ReactNode {CODE
LOWfrontend/src/lib/hooks/use-podcasts.ts234export function useDuplicateEpisodeProfile() {CODE
LOWfrontend/src/lib/hooks/use-podcasts.ts366export function useDuplicateSpeakerProfile() {CODE
LOWfrontend/src/lib/hooks/use-sources.ts352export function useRemoveSourceFromNotebook() {CODE
LOWfrontend/src/lib/hooks/use-credentials.ts338export function useMigrateFromProviderConfig() {CODE
LOWopen_notebook/utils/runtime_capabilities.py57def _default_playwright_cache() -> str | None:CODE
LOWopen_notebook/utils/runtime_capabilities.py67def _chromium_browser_present() -> bool:CODE
LOWopen_notebook/utils/version_utils.py14async def get_version_from_github_async(repo_url: str, branch: str = "main") -> str:CODE
LOWopen_notebook/utils/chunking.py173def detect_content_type_from_extension(CODE
LOWopen_notebook/utils/chunking.py195def detect_content_type_from_heuristics(text: str) -> Tuple[ContentType, float]:CODE
LOWopen_notebook/utils/chunking.py266def _calculate_markdown_score(text: str) -> float:CODE
LOWopen_notebook/utils/chunking.py398def _apply_secondary_chunking(chunks: List[str]) -> List[str]:CODE
LOWopen_notebook/utils/encryption.py62def _get_or_create_encryption_key() -> str:CODE
LOWopen_notebook/utils/embedding.py24def _get_embedding_batch_size() -> int:CODE
LOWopen_notebook/utils/context_builder.py79def _rendered_source_context_tokens(CODE
LOWopen_notebook/utils/context_builder.py104def _truncate_source_to_token_budget(CODE
LOWopen_notebook/utils/url_validation.py111async def prepare_pinned_http_target(url: str, provider: str) -> PinnedHttpTarget:CODE
LOWopen_notebook/utils/graph_utils.py7async def get_session_message_count(graph, session_id: str) -> int:CODE
LOWopen_notebook/podcasts/audio_paths.py63def resolve_contained_audio_path(audio_file: Optional[str]) -> Optional[Path]:CODE
LOWopen_notebook/podcasts/models.py107 async def resolve_transcript_config(self) -> Tuple[str, str, dict]:CODE
LOWopen_notebook/podcasts/models.py285 async def get_job_details_for_commands(CODE
LOWopen_notebook/ai/connection_tester.py28def _is_vertex_credentials_file_error(exc: Exception) -> bool:CODE
LOWopen_notebook/ai/connection_tester.py74def normalize_anthropic_compatible_base_url(base_url: str) -> str:CODE
LOWopen_notebook/ai/connection_tester.py198async def _test_openai_compatible_connection(base_url: str, api_key: Optional[str] = None) -> Tuple[bool, str]:CODE
LOWopen_notebook/ai/connection_tester.py249async def _test_anthropic_compatible_connection(CODE
LOWopen_notebook/ai/connection_tester.py371def _connection_failure_reason(error_msg: str) -> Optional[str]:CODE
LOWopen_notebook/ai/connection_tester.py453def classify_provider_test_error(error_msg: str) -> Tuple[bool, str]:CODE
LOWopen_notebook/ai/key_provider.py128async def _provision_simple_provider(provider: str) -> bool:CODE
LOWopen_notebook/ai/key_provider.py236async def _provision_url_key_compatible(provider: str, env_prefix: str) -> bool:CODE
LOWopen_notebook/ai/key_provider.py261async def _provision_openai_compatible() -> bool:CODE
LOWopen_notebook/ai/key_provider.py266async def _provision_anthropic_compatible() -> bool:CODE
LOWopen_notebook/ai/provision.py10async def provision_langchain_model(CODE
LOWopen_notebook/ai/model_discovery.py349async def fetch_anthropic_model_ids(api_key: str) -> List[str]:CODE
LOWopen_notebook/ai/model_discovery.py278async def discover_openai_compatible_provider(provider: str) -> List[DiscoveredModel]:CODE
LOWopen_notebook/ai/model_discovery.py321def _make_openai_compat_discoverer(CODE
LOWopen_notebook/ai/model_discovery.py383async def discover_anthropic_models() -> List[DiscoveredModel]:CODE
LOWopen_notebook/ai/model_discovery.py489async def discover_openrouter_models() -> List[DiscoveredModel]:CODE
LOWopen_notebook/ai/model_discovery.py544async def discover_elevenlabs_models() -> List[DiscoveredModel]:CODE
LOWopen_notebook/ai/model_discovery.py659async def discover_openai_compatible_models() -> List[DiscoveredModel]:CODE
LOWopen_notebook/ai/model_discovery.py727async def discover_anthropic_compatible_models() -> List[DiscoveredModel]:CODE
LOWopen_notebook/graphs/source_chat.py36def _source_content_is_available(CODE
LOWopen_notebook/graphs/source_chat.py48def call_model_with_source_context(CODE
LOWopen_notebook/graphs/source_chat.py69def _call_model_with_source_context_inner(CODE
LOWopen_notebook/domain/notebook.py691 def content_must_not_be_empty(cls, v):CODE
LOWtests/test_model_discovery.py49 def test_table_covers_all_openai_compatible_providers(self):CODE
LOWtests/test_model_discovery.py63 def test_provider_discovery_functions_keys_unchanged(self):CODE
LOWtests/test_model_discovery.py92 def test_module_level_names_preserved(self):CODE
LOWtests/test_model_discovery.py101 async def test_discovery_uses_spec_url_and_bearer_key(self, monkeypatch):CODE
LOWtests/test_model_discovery.py130 async def test_missing_env_key_returns_empty(self, monkeypatch):CODE
LOWtests/test_model_discovery.py135 async def test_http_error_returns_empty(self, monkeypatch):CODE
LOWtests/test_model_discovery.py147 async def test_mistral_capabilities_quirk(self, monkeypatch):CODE
LOWtests/test_model_discovery.py173 async def test_openrouter_quirk_language_and_description(self, monkeypatch):CODE
526 more matches not shown…
Decorative Section Separators112 hits · 428 pts
SeverityFileLineSnippetContext
MEDIUM.pre-commit-config.yaml9 # ── Basic hygiene ──────────────────────────────────────────────────COMMENT
MEDIUM.pre-commit-config.yaml21 # ── Ruff: Python lint & format (mirrors CI backend-lint job) ──────COMMENT
MEDIUMopen_notebook/ai/key_provider.py22# =============================================================================COMMENT
MEDIUMopen_notebook/ai/key_provider.py24# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py344# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py346# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py853# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py855# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py40# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py42# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py225# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py227# =============================================================================COMMENT
MEDIUMtests/test_utils.py143# ============================================================================COMMENT
MEDIUMtests/test_utils.py145# ============================================================================COMMENT
MEDIUMtests/test_utils.py190# ============================================================================COMMENT
MEDIUMtests/test_utils.py192# ============================================================================COMMENT
MEDIUMtests/test_utils.py33# ============================================================================COMMENT
MEDIUMtests/test_utils.py35# ============================================================================COMMENT
MEDIUMtests/test_utils.py260# ============================================================================COMMENT
MEDIUMtests/test_utils.py262# ============================================================================COMMENT
MEDIUMtests/test_graphs.py26# ============================================================================COMMENT
MEDIUMtests/test_graphs.py28# ============================================================================COMMENT
MEDIUMtests/test_graphs.py73# ============================================================================COMMENT
MEDIUMtests/test_graphs.py75# ============================================================================COMMENT
MEDIUMtests/test_graphs.py101# ============================================================================COMMENT
MEDIUMtests/test_graphs.py103# ============================================================================COMMENT
MEDIUMtests/test_graphs.py158# ============================================================================COMMENT
MEDIUMtests/test_graphs.py160# ============================================================================COMMENT
MEDIUMtests/test_graphs.py277# ============================================================================COMMENT
MEDIUMtests/test_graphs.py279# ============================================================================COMMENT
MEDIUMtests/test_graphs.py530# ============================================================================COMMENT
MEDIUMtests/test_graphs.py532# ============================================================================COMMENT
MEDIUMtests/test_chunking.py45# ============================================================================COMMENT
MEDIUMtests/test_chunking.py47# ============================================================================COMMENT
MEDIUMtests/test_chunking.py99# ============================================================================COMMENT
MEDIUMtests/test_chunking.py101# ============================================================================COMMENT
MEDIUMtests/test_chunking.py189# ============================================================================COMMENT
MEDIUMtests/test_chunking.py191# ============================================================================COMMENT
MEDIUMtests/test_chunking.py231# ============================================================================COMMENT
MEDIUMtests/test_chunking.py233# ============================================================================COMMENT
MEDIUMtests/test_embedding.py25# ============================================================================COMMENT
MEDIUMtests/test_embedding.py27# ============================================================================COMMENT
MEDIUMtests/test_embedding.py110# ============================================================================COMMENT
MEDIUMtests/test_embedding.py112# ============================================================================COMMENT
MEDIUMtests/test_embedding.py157# ============================================================================COMMENT
MEDIUMtests/test_embedding.py159# ============================================================================COMMENT
MEDIUMtests/test_embedding.py327# ============================================================================COMMENT
MEDIUMtests/test_embedding.py329# ============================================================================COMMENT
MEDIUMtests/test_domain.py32# ============================================================================COMMENT
MEDIUMtests/test_domain.py34# ============================================================================COMMENT
MEDIUMtests/test_domain.py63# ============================================================================COMMENT
MEDIUMtests/test_domain.py65# ============================================================================COMMENT
MEDIUMtests/test_domain.py81# ============================================================================COMMENT
MEDIUMtests/test_domain.py83# ============================================================================COMMENT
MEDIUMtests/test_domain.py264# ============================================================================COMMENT
MEDIUMtests/test_domain.py266# ============================================================================COMMENT
MEDIUMtests/test_domain.py402# ============================================================================COMMENT
MEDIUMtests/test_domain.py404# ============================================================================COMMENT
MEDIUMtests/test_domain.py442# ============================================================================COMMENT
MEDIUMtests/test_domain.py444# ============================================================================COMMENT
52 more matches not shown…
Excessive Try-Catch Wrapping274 hits · 270 pts
SeverityFileLineSnippetContext
LOWopen_notebook/AGENTS.md34 except Exception as e:CODE
LOWopen_notebook/database/async_migrate.py47 except Exception as e:CODE
LOWopen_notebook/database/async_migrate.py253 except Exception as e:CODE
LOWopen_notebook/database/async_migrate.py268 except Exception:CODE
LOWopen_notebook/database/async_migrate.py278 except Exception:CODE
LOWopen_notebook/database/repository.py116 except Exception as e:CODE
LOWopen_notebook/database/repository.py137 except Exception as e:CODE
LOWopen_notebook/database/repository.py204 except Exception as e:CODE
LOWopen_notebook/database/repository.py214 except Exception as e:CODE
LOWopen_notebook/database/repository.py240 except Exception as e:CODE
LOWopen_notebook/utils/runtime_capabilities.py34 except Exception:CODE
LOWopen_notebook/utils/runtime_capabilities.py50 except Exception:CODE
LOWopen_notebook/utils/chunking.py191 except Exception:CODE
LOWopen_notebook/utils/encryption.py55 except Exception as e:CODE
LOWopen_notebook/utils/encryption.py163 except Exception:CODE
LOWopen_notebook/utils/encryption.py196 except Exception as e:CODE
LOWopen_notebook/utils/embedding.py179 except Exception as e:CODE
LOWopen_notebook/utils/context_builder.py295 except Exception:CODE
LOWopen_notebook/utils/context_builder.py306 except Exception as e:CODE
LOWopen_notebook/utils/context_builder.py324 except Exception as e:CODE
LOWopen_notebook/utils/context_builder.py334 except Exception as e:CODE
LOWopen_notebook/utils/context_builder.py347 except Exception as e:CODE
LOWopen_notebook/utils/context_builder.py357 except Exception as e:CODE
LOWopen_notebook/utils/context_builder.py509 except Exception as e:CODE
LOWopen_notebook/utils/url_validation.py107 except Exception:CODE
LOWopen_notebook/utils/graph_utils.py21 except Exception as e:CODE
LOWopen_notebook/podcasts/models.py263 except Exception:CODE
LOWopen_notebook/podcasts/models.py281 except Exception:CODE
LOWopen_notebook/podcasts/models.py314 except Exception as e:CODE
LOWopen_notebook/ai/models.py99 except Exception as e:CODE
LOWopen_notebook/ai/models.py132 except Exception:CODE
LOWopen_notebook/ai/models.py184 except Exception:CODE
LOWopen_notebook/ai/connection_tester.py149 except Exception as e:CODE
LOWopen_notebook/ai/connection_tester.py194 except Exception as e:CODE
LOWopen_notebook/ai/connection_tester.py245 except Exception as e:CODE
LOWopen_notebook/ai/connection_tester.py298 except Exception as e:CODE
LOWopen_notebook/ai/connection_tester.py529 except Exception:CODE
LOWopen_notebook/ai/connection_tester.py561 except Exception as e:CODE
LOWopen_notebook/ai/key_provider.py97 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py847 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py943 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py315 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py391 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py443 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py483 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py639 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py675 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py721 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py738 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py782 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py809 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py965 except Exception as e:CODE
LOWopen_notebook/graphs/transformation.py68 except Exception as e:CODE
LOWopen_notebook/graphs/ask.py80 except Exception as e:CODE
LOWopen_notebook/graphs/ask.py124 except Exception as e:CODE
LOWopen_notebook/graphs/ask.py143 except Exception as e:CODE
LOWopen_notebook/graphs/source_chat.py64 except Exception as e:CODE
LOWopen_notebook/graphs/chat.py83 except Exception as e:CODE
LOWopen_notebook/graphs/source.py104 except Exception as e:CODE
LOWopen_notebook/graphs/source.py122 except Exception as e:CODE
214 more matches not shown…
Structural Annotation Overuse124 hits · 230 pts
SeverityFileLineSnippetContext
LOWREADME.md105### Step 1: Get docker-compose.ymlCOMMENT
LOWREADME.md167### Step 2: Set Your Encryption KeyCOMMENT
LOWREADME.md174### Step 3: Start ServicesCOMMENT
LOWREADME.md181### Step 4: Configure AI ProviderCOMMENT
LOWfrontend/src/lib/utils/source-references.tsx180 // Step 1: Find ALL references using simple greedy pattern.COMMENT
LOWfrontend/src/lib/utils/source-references.tsx210 // Step 2: Process references from end to start (to preserve indices)COMMENT
LOWfrontend/src/lib/utils/source-references.tsx218 // Step 3: Analyze context around the referenceCOMMENT
LOWfrontend/src/lib/utils/source-references.tsx258 // Step 4: Build the markdown linkCOMMENT
LOWfrontend/src/lib/utils/source-references.tsx262 // Step 5: Replace in the result stringCOMMENT
LOWfrontend/src/lib/utils/source-references.tsx349 // Step 1: Parse all references using existing functionCOMMENT
LOWfrontend/src/lib/utils/source-references.tsx352 // Step 2: If no references found, return original textCOMMENT
LOWfrontend/src/lib/utils/source-references.tsx357 // Step 3: Build reference map (deduplicate and assign numbers)COMMENT
LOWfrontend/src/lib/utils/source-references.tsx408 // Step 5: Build reference listCOMMENT
LOWfrontend/src/lib/utils/source-references.tsx417 // Step 6: Append reference list to resultCOMMENT
LOWfrontend/src/lib/utils/source-references.tsx372 // Step 4: Replace references with numbered citations (process from end to start)COMMENT
LOWdocs/7-DEVELOPMENT/development-setup.md16## Step 1: Clone and Initial SetupCOMMENT
LOWdocs/7-DEVELOPMENT/development-setup.md27## Step 2: Install Python DependenciesCOMMENT
LOWdocs/7-DEVELOPMENT/development-setup.md37## Step 3: Environment VariablesCOMMENT
LOWdocs/7-DEVELOPMENT/development-setup.md86## Step 4: Start SurrealDBCOMMENT
LOWdocs/7-DEVELOPMENT/development-setup.md125## Step 5: Run Database MigrationsCOMMENT
LOWdocs/7-DEVELOPMENT/development-setup.md144## Step 6: Start the API ServerCOMMENT
LOWdocs/7-DEVELOPMENT/development-setup.md172## Step 7: Start the Frontend (Optional)COMMENT
LOWdocs/0-START-HERE/quick-start-local.md17## Step 1: Choose Your Setup (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-local.md27## Step 2: Create Configuration (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-local.md93## Step 3: Start Services (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-local.md105## Step 4: Download a Model (2-3 min)COMMENT
LOWdocs/0-START-HERE/quick-start-local.md124## Step 5: Access Open Notebook (instant)COMMENT
LOWdocs/0-START-HERE/quick-start-local.md135## Step 6: Configure Ollama Provider (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-local.md148## Step 7: Configure Local Model (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-local.md158## Step 8: Create Your First Notebook (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-local.md166## Step 9: Add Local Content (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-local.md175## Step 10: Chat With Your Content (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-cloud.md20## Step 1: Create Configuration (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-cloud.md65## Step 2: Start Services (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-cloud.md77## Step 3: Access Open Notebook (instant)COMMENT
LOWdocs/0-START-HERE/quick-start-cloud.md88## Step 4: Configure Your AI Provider (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-cloud.md104## Step 5: Configure Your Model (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-cloud.md122## Step 6: Create Your First Notebook (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-cloud.md130## Step 7: Add Content & Chat (2 min)COMMENT
LOWdocs/0-START-HERE/quick-start-openai.md17## Step 1: Create Configuration (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-openai.md63## Step 2: Start Services (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-openai.md75## Step 3: Access Open Notebook (instant)COMMENT
LOWdocs/0-START-HERE/quick-start-openai.md86## Step 4: Configure Your OpenAI Provider (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-openai.md101## Step 5: Create Your First Notebook (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-openai.md109## Step 6: Add a Source (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-openai.md119## Step 7: Chat With Your Content (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-external-ollama.md22## Step 1: Start Ollama (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-external-ollama.md40## Step 2: Create Configuration (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-external-ollama.md86## Step 3: Connect Open Notebook to Host Ollama (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-external-ollama.md98## Step 4: Start Open Notebook (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-external-ollama.md110## Step 5: Configure Ollama Provider (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-external-ollama.md125## Step 6: Configure Models (1 min)COMMENT
LOWdocs/0-START-HERE/quick-start-external-ollama.md135## Step 7: Access Open Notebook (instant)COMMENT
LOWdocs/1-INSTALLATION/docker-compose.md13## Step 1: Get docker-compose.yml (1 min)COMMENT
LOWdocs/1-INSTALLATION/docker-compose.md88## Step 2: Start Services (2 min)COMMENT
LOWdocs/1-INSTALLATION/docker-compose.md109## Step 3: Verify Installation (1 min)COMMENT
LOWdocs/1-INSTALLATION/docker-compose.md127## Step 4: Configure AI Provider (2 min)COMMENT
LOWdocs/1-INSTALLATION/docker-compose.md147## Step 5: First Notebook (2 min)COMMENT
LOWdocs/5-CONFIGURATION/local-tts.md28### Step 1: Create Docker Compose FileCOMMENT
LOWdocs/5-CONFIGURATION/local-tts.md47### Step 2: Start and Download ModelCOMMENT
64 more matches not shown…
Docstring Block Structure10 hits · 50 pts
SeverityFileLineSnippetContext
HIGHopen_notebook/utils/version_utils.py60 Fetch and parse the version from pyproject.toml in a public GitHub repository. Args: repo_url (str): USTRING
HIGHopen_notebook/utils/version_utils.py114 Get the version of an installed package. Args: package_name (str): Name of the installed package STRING
HIGHopen_notebook/utils/encryption.py129 Encrypt a string value using Fernet symmetric encryption. Args: value: The plain text string to encrypSTRING
HIGHopen_notebook/utils/encryption.py168 Decrypt a Fernet-encrypted string value. Handles graceful fallback for legacy unencrypted data. Args: STRING
HIGHopen_notebook/utils/embedding.py51 Combine multiple embeddings into a single embedding using mean pooling. Algorithm: 1. Normalize each embedSTRING
HIGHopen_notebook/utils/embedding.py109 Generate embeddings for multiple texts with automatic batching and retry. Texts are split into batches of EMBESTRING
HIGHopen_notebook/utils/embedding.py210 Generate a single embedding for text, handling large content via chunking and mean pooling. For short text (<=STRING
HIGHopen_notebook/domain/notebook.py579 Submit insight creation as an async command (fire-and-forget). Submits a create_insight command that hSTRING
HIGHdocs/7-DEVELOPMENT/code-standards.md79Perform vector search across embedded content. Args: query: Search query string limit: Maximum numbSTRING
HIGHdocs/7-DEVELOPMENT/code-standards.md131Create a new notebook with validation. Args: name: The notebook name (required, non-empty) descriptSTRING
Modern AI Meta-Vocabulary16 hits · 48 pts
SeverityFileLineSnippetContext
MEDIUMopen_notebook/domain/notebook.py793 # Both search paths failed (e.g. no embedding model configured).COMMENT
MEDIUMopen_notebook/domain/credential.py79 # Ollama-only: overrides the context window (num_ctx). Esperanto defaults toCOMMENT
MEDIUMopen_notebook/domain/credential.py80 # 8192; raise this if your hardware can handle a larger context window.COMMENT
MEDIUMtests/test_crud_404.py125 mock_embed_model.return_value = MagicMock() # an embedding model is configuredCODE
MEDIUMdocs/2-CORE-CONCEPTS/index.md14### 2. [AI Context & RAG](ai-context-rag.md)COMMENT
MEDIUMdocs/2-CORE-CONCEPTS/ai-context-rag.md1# AI Context & RAG - How Open Notebook Uses Your ResearchCOMMENT
MEDIUMdocs/2-CORE-CONCEPTS/ai-context-rag.md40## How RAG Works: Three StagesCOMMENT
MEDIUMdocs/2-CORE-CONCEPTS/ai-context-rag.md272### Chat: Full-Content Context (NO RAG)COMMENT
MEDIUMdocs/2-CORE-CONCEPTS/ai-context-rag.md311### Ask: RAG - Automatic RetrievalCOMMENT
MEDIUMdocs/2-CORE-CONCEPTS/ai-context-rag.md437### Ask (RAG)COMMENT
MEDIUMdocs/5-CONFIGURATION/ollama.md36ollama pull mxbai-embed-large # Best embedding model for OllamaCODE
MEDIUMapi/routers/embedding.py20 # Check if embedding model is availableCOMMENT
MEDIUMapi/routers/search.py26 # Check if embedding model is available for vector searchCOMMENT
MEDIUMapi/routers/search.py148 # Check if embedding model is availableCOMMENT
MEDIUMapi/routers/search.py202 # Check if embedding model is availableCOMMENT
MEDIUMcommands/embedding_commands.py635 # Check embedding model availability (fail fast)COMMENT
Verbosity Indicators20 hits · 43 pts
SeverityFileLineSnippetContext
LOWfrontend/src/lib/utils/source-references.tsx180 // Step 1: Find ALL references using simple greedy pattern.COMMENT
LOWfrontend/src/lib/utils/source-references.tsx210 // Step 2: Process references from end to start (to preserve indices)COMMENT
LOWfrontend/src/lib/utils/source-references.tsx218 // Step 3: Analyze context around the referenceCOMMENT
LOWfrontend/src/lib/utils/source-references.tsx258 // Step 4: Build the markdown linkCOMMENT
LOWfrontend/src/lib/utils/source-references.tsx262 // Step 5: Replace in the result stringCOMMENT
LOWfrontend/src/lib/utils/source-references.tsx349 // Step 1: Parse all references using existing functionCOMMENT
LOWfrontend/src/lib/utils/source-references.tsx352 // Step 2: If no references found, return original textCOMMENT
LOWfrontend/src/lib/utils/source-references.tsx357 // Step 3: Build reference map (deduplicate and assign numbers)COMMENT
LOWfrontend/src/lib/utils/source-references.tsx408 // Step 5: Build reference listCOMMENT
LOWfrontend/src/lib/utils/source-references.tsx417 // Step 6: Append reference list to resultCOMMENT
LOWfrontend/src/lib/utils/source-references.tsx372 // Step 4: Replace references with numbered citations (process from end to start)COMMENT
LOW.codex/agents/harness-qa.toml24## Step 0: Static Checks Gate (MANDATORY)COMMENT
LOW.codex/agents/harness-qa.toml36## Step 1: Understand What to TestCOMMENT
LOW.codex/agents/harness-qa.toml46## Step 2: Choose the Right Testing ApproachCOMMENT
LOW.codex/agents/harness-qa.toml112## Step 3: Write Your VerdictCOMMENT
LOW.codex/agents/harness-qa.toml129## Step 4: Update .harness/feature_list.jsonCOMMENT
LOW.codex/agents/harness-qa.toml135## Step 5: SummaryCOMMENT
LOW.codex/agents/smoke-e2e.toml205# Step 1: Create sessionCOMMENT
LOW.codex/agents/smoke-e2e.toml214# Step 2: Build context for the notebookCOMMENT
LOW.codex/agents/smoke-e2e.toml223# Step 3: Send message with contextCOMMENT
Deep Nesting46 hits · 38 pts
SeverityFileLineSnippetContext
LOWopen_notebook/utils/encryption.py29CODE
LOWopen_notebook/utils/text_utils.py122CODE
LOWopen_notebook/utils/embedding.py106CODE
LOWopen_notebook/utils/context_builder.py42CODE
LOWopen_notebook/utils/context_builder.py264CODE
LOWopen_notebook/utils/context_builder.py364CODE
LOWopen_notebook/ai/models.py177CODE
LOWopen_notebook/ai/models.py330CODE
LOWopen_notebook/ai/connection_tester.py86CODE
LOWopen_notebook/ai/connection_tester.py153CODE
LOWopen_notebook/ai/connection_tester.py198CODE
LOWopen_notebook/ai/connection_tester.py249CODE
LOWopen_notebook/ai/connection_tester.py479CODE
LOWopen_notebook/ai/key_provider.py273CODE
LOWopen_notebook/ai/model_discovery.py407CODE
LOWopen_notebook/domain/provider_config.py198CODE
LOWopen_notebook/domain/notebook.py70CODE
LOWopen_notebook/domain/notebook.py211CODE
LOWopen_notebook/domain/credential.py176CODE
LOWopen_notebook/domain/base.py40CODE
LOWopen_notebook/domain/base.py148CODE
LOWopen_notebook/domain/base.py284CODE
LOWtests/test_max_body_size_middleware.py86CODE
LOWapi/credentials_service.py119CODE
LOWapi/credentials_service.py242CODE
LOWapi/credentials_service.py380CODE
LOWapi/credentials_service.py753CODE
LOWapi/credentials_service.py861CODE
LOWapi/routers/models.py388CODE
LOWapi/routers/models.py707CODE
LOWapi/routers/transformations.py210CODE
LOWapi/routers/embedding.py17CODE
LOWapi/routers/credentials.py306CODE
LOWapi/routers/podcasts.py178CODE
LOWapi/routers/source_chat.py130CODE
LOWapi/routers/source_chat.py332CODE
LOWapi/routers/sources.py258CODE
LOWapi/routers/sources.py427CODE
LOWapi/routers/sources.py844CODE
LOWapi/routers/sources.py935CODE
LOWapi/routers/embedding_rebuild.py20CODE
LOWapi/routers/search.py69CODE
LOWapi/routers/notebooks.py62CODE
LOWapi/routers/languages.py38CODE
LOWapi/routers/commands.py142CODE
LOWcommands/podcast_commands.py66CODE
Cross-File Repetition7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHtests/test_search_api.py0create test client after environment variables have been cleared by conftest.STRING
HIGHtests/test_recently_viewed_api.py0create test client after environment variables have been cleared by conftest.STRING
HIGHtests/test_sources_api.py0create test client after environment variables have been cleared by conftest.STRING
HIGHtests/test_models_api.py0create test client after environment variables have been cleared by conftest.STRING
HIGHtests/test_credentials_api.py0create test client after environment variables have been cleared by conftest.STRING
HIGHtests/test_notes_api.py0create test client after environment variables have been cleared by conftest.STRING
HIGHtests/test_insight_timestamps.py0create test client after environment variables have been cleared by conftest.STRING
Unused Imports37 hits · 34 pts
SeverityFileLineSnippetContext
LOWopen_notebook/utils/context_builder.py17CODE
LOWopen_notebook/utils/__init__.py12CODE
LOWopen_notebook/utils/__init__.py12CODE
LOWopen_notebook/utils/__init__.py12CODE
LOWopen_notebook/utils/__init__.py12CODE
LOWopen_notebook/utils/__init__.py12CODE
LOWopen_notebook/utils/__init__.py12CODE
LOWopen_notebook/utils/__init__.py20CODE
LOWopen_notebook/utils/__init__.py20CODE
LOWopen_notebook/utils/__init__.py20CODE
LOWopen_notebook/utils/__init__.py25CODE
LOWopen_notebook/utils/__init__.py25CODE
LOWopen_notebook/utils/__init__.py29CODE
LOWopen_notebook/utils/__init__.py30CODE
LOWopen_notebook/utils/__init__.py30CODE
LOWopen_notebook/utils/__init__.py30CODE
LOWopen_notebook/utils/__init__.py30CODE
LOWopen_notebook/utils/__init__.py36CODE
LOWopen_notebook/utils/__init__.py36CODE
LOWopen_notebook/utils/__init__.py37CODE
LOWopen_notebook/utils/__init__.py37CODE
LOWopen_notebook/utils/__init__.py37CODE
LOWtests/test_podcast_legacy_field_removal.py109CODE
LOWapi/command_service.py22CODE
LOWapi/credentials_service.py31CODE
LOWapi/podcast_service.py91CODE
LOWapi/routers/embedding.py43CODE
LOWapi/routers/sources.py511CODE
LOWapi/routers/sources.py576CODE
LOWapi/routers/sources.py1000CODE
LOWapi/routers/embedding_rebuild.py35CODE
LOWcommands/__init__.py11CODE
LOWcommands/__init__.py11CODE
LOWcommands/__init__.py11CODE
LOWcommands/__init__.py11CODE
LOWcommands/__init__.py17CODE
LOWcommands/__init__.py18CODE
Over-Commented Block29 hits · 28 pts
SeverityFileLineSnippetContext
LOWcubic.yaml1# yaml-language-server: $schema=https://cubic.dev/schema/cubic-repository-config.schema.jsonCOMMENT
LOW.pre-commit-config.yaml21 # ── Ruff: Python lint & format (mirrors CI backend-lint job) ──────COMMENT
LOWdocker-compose.yml1services:COMMENT
LOWfrontend/src/components/ui/markdown-editor.tsx21// (e.g. pasted content, or an AI-generated note echoing an indirect promptCOMMENT
LOWfrontend/src/components/sources/SourceCard.tsx121 onContextModeChangeCOMMENT
LOWopen_notebook/config.py21# TIKTOKEN CACHE FOLDERCOMMENT
LOWopen_notebook/podcasts/__init__.py1# Podcasts moduleCOMMENT
LOWopen_notebook/ai/__init__.py1# AI infrastructure moduleCOMMENT
LOWtests/test_podcast_audio_paths.py141 # Percent-encoded file:// URIs cannot be URL-decoded in SurrealQL andCOMMENT
LOW.agents/skills/release/runbook.md21```COMMENT
LOWdocs/6-TROUBLESHOOTING/connection-issues.md61COMMENT
LOWdocs/6-TROUBLESHOOTING/quick-fixes.md121**Solution (1 minute):**COMMENT
LOWdocs/6-TROUBLESHOOTING/quick-fixes.md181**Solution (1 minute):**COMMENT
LOWexamples/docker-compose-speaches.yml1# Docker Compose with Speaches (Local TTS/STT)COMMENT
LOWexamples/docker-compose-speaches.yml81# For TTS (Text-to-Speech):COMMENT
LOWexamples/docker-compose-speaches.yml101# 6. Add TTS Model:COMMENT
LOWexamples/docker-compose-speaches.yml121# Test STT:COMMENT
LOWexamples/docker-compose-ollama.yml1# Docker Compose with Ollama (Free Local AI)COMMENT
LOWexamples/docker-compose-full-local.yml1# Docker Compose - 100% Local AI SetupCOMMENT
LOWexamples/docker-compose-full-local.yml101 hf-hub-cache:COMMENT
LOWexamples/docker-compose-full-local.yml121#COMMENT
LOWexamples/docker-compose-full-local.yml141# 3. Discover Speech Models:COMMENT
LOWexamples/docker-compose-full-local.yml161# For TTS:COMMENT
LOWexamples/docker-compose-full-local.yml181# - 50 GB disk spaceCOMMENT
LOWexamples/docker-compose-single.yml21 # Access:COMMENT
LOWscripts/docker-entrypoint.sh1#!/bin/shCOMMENT
LOWscripts/release-test/rc-stack.sh1#!/bin/bashCOMMENT
LOWscripts/release-test/release-image-test.sh1#!/bin/bashCOMMENT
LOWapi/main.py261#COMMENT
Redundant / Tautological Comments15 hits · 25 pts
SeverityFileLineSnippetContext
LOWopen_notebook/utils/embedding.py240 # Check if chunking is neededCOMMENT
LOWopen_notebook/ai/model_discovery.py950 # Check if model already exists using pre-fetched dataCOMMENT
LOW.github/workflows/build-dev.yml66 # Check if this is a push to main (not a PR)COMMENT
LOWapi/credentials_service.py779 # Check if a credential already exists for this provider with same nameCOMMENT
LOWapi/podcast_service.py167 # Check if profiles already existCOMMENT
LOWapi/podcast_service.py188 # Check if profiles already existCOMMENT
LOWapi/routers/config.py53 # Check if cache is still valid (within TTL)COMMENT
LOWapi/routers/embedding.py20 # Check if embedding model is availableCOMMENT
LOWapi/routers/sources.py852 # Check if this is a legacy source (no command)COMMENT
LOWapi/routers/sources.py943 # Check if source already has a running commandCOMMENT
LOWapi/routers/sources.py990 # Check if it's a text source by trying to get full_textCOMMENT
LOWapi/routers/search.py26 # Check if embedding model is available for vector searchCOMMENT
LOWapi/routers/search.py148 # Check if embedding model is availableCOMMENT
LOWapi/routers/search.py202 # Check if embedding model is availableCOMMENT
LOWapi/routers/notebooks.py354 # Check if reference already exists (idempotency)COMMENT
Self-Referential Comments6 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMopen_notebook/ai/model_discovery.py939 # Create a set of (name, type) tuples for O(1) lookupCOMMENT
MEDIUMopen_notebook/graphs/source_chat.py221# Create the StateGraphCOMMENT
MEDIUMopen_notebook/graphs/source.py284# Define the graph edgesCOMMENT
MEDIUMopen_notebook/domain/credential.py193 # Create a minimal credential with error info from raw DB fieldsCOMMENT
MEDIUMtests/test_domain.py290 # Create a temporary fileCOMMENT
MEDIUMcommands/podcast_commands.py257 # Create the record for the episode and associate with the ongoing commandCOMMENT
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHfrontend/src/components/ui/markdown-editor.tsx21// (e.g. pasted content, or an AI-generated note echoing an indirect promptCOMMENT
HIGHfrontend/src/components/ui/markdown-editor.test.tsx9// default). Notes can hold AI-generated content that echoes an indirectCOMMENT
AI Slop Vocabulary4 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMfrontend/src/lib/api/source-chat.ts54 // Use relative URL to leverage Next.js rewritesCOMMENT
MEDIUMfrontend/src/lib/api/search.ts17 // Use relative URL to leverage Next.js rewritesCOMMENT
MEDIUM.codex/agents/harness-qa.toml119## Feature: "[description from .harness/feature_list.json]"COMMENT
MEDIUM.codex/agents/harness-qa.toml129## Step 4: Update .harness/feature_list.jsonCOMMENT
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippetContext
LOWexamples/docker-compose-speaches.yml13# Usage:COMMENT
LOWexamples/docker-compose-ollama.yml6# Usage:COMMENT
LOWexamples/docker-compose-full-local.yml16# Usage:COMMENT
LOWscripts/release-test/rc-stack.sh6# Usage:COMMENT
Modern Structural Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
LOWopen_notebook/utils/__init__.py43__all__ = [CODE
LOWscripts/export_docs.py18logger = logging.getLogger(__name__)CODE
LOWcommands/__init__.py20__all__ = [CODE
AI Structural Patterns3 hits · 2 pts
SeverityFileLineSnippetContext
LOWopen_notebook/domain/provider_config.py51CODE
LOWapi/auth.py82CODE
LOWapi/routers/sources.py186CODE