Repository Analysis

lfnovo/open-notebook

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

16.0 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of lfnovo/open-notebook, a TypeScript project with 35,620 GitHub stars. SynthScan v2.0 examined 108,341 lines of code across 493 source files, recording 1163 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 16.0 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.0
Adjusted Score
16.0
Raw Score
100%
Time Factor
2026-07-13
Last Push
35.6K
Stars
TypeScript
Language
108.3K
Lines of Code
493
Files
1.2K
Pattern Hits
2026-07-14
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 137LOW 1007

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 1163 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 Identifiers491 hits · 524 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/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/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.py176async def _test_openai_compatible_connection(base_url: str, api_key: Optional[str] = None) -> Tuple[bool, str]:CODE
LOWopen_notebook/ai/connection_tester.py284def _connection_failure_reason(error_msg: str) -> Optional[str]:CODE
LOWopen_notebook/ai/connection_tester.py366def classify_provider_test_error(error_msg: str) -> Tuple[bool, str]:CODE
LOWopen_notebook/ai/key_provider.py113async def _provision_simple_provider(provider: str) -> bool:CODE
LOWopen_notebook/ai/key_provider.py221async def _provision_openai_compatible() -> bool:CODE
LOWopen_notebook/ai/provision.py10async def provision_langchain_model(CODE
LOWopen_notebook/ai/model_discovery.py317async def fetch_anthropic_model_ids(api_key: str) -> List[str]:CODE
LOWopen_notebook/ai/model_discovery.py247async def discover_openai_compatible_provider(provider: str) -> List[DiscoveredModel]:CODE
LOWopen_notebook/ai/model_discovery.py290def _make_openai_compat_discoverer(CODE
LOWopen_notebook/ai/model_discovery.py351async def discover_anthropic_models() -> List[DiscoveredModel]:CODE
LOWopen_notebook/ai/model_discovery.py473async def discover_elevenlabs_models() -> List[DiscoveredModel]:CODE
LOWopen_notebook/ai/model_discovery.py530async def discover_openai_compatible_models() -> List[DiscoveredModel]:CODE
LOWopen_notebook/graphs/source_chat.py33def call_model_with_source_context(CODE
LOWopen_notebook/graphs/source_chat.py54def _call_model_with_source_context_inner(CODE
LOWopen_notebook/domain/notebook.py679 def content_must_not_be_empty(cls, v):CODE
LOWtests/test_model_discovery.py47 def test_table_covers_all_openai_compatible_providers(self):CODE
LOWtests/test_model_discovery.py59 def test_provider_discovery_functions_keys_unchanged(self):CODE
LOWtests/test_model_discovery.py83 def test_module_level_names_preserved(self):CODE
LOWtests/test_model_discovery.py92 async def test_discovery_uses_spec_url_and_bearer_key(self, monkeypatch):CODE
LOWtests/test_model_discovery.py121 async def test_missing_env_key_returns_empty(self, monkeypatch):CODE
LOWtests/test_model_discovery.py126 async def test_http_error_returns_empty(self, monkeypatch):CODE
LOWtests/test_model_discovery.py138 async def test_mistral_capabilities_quirk(self, monkeypatch):CODE
LOWtests/test_model_discovery.py164 async def test_openrouter_quirk_language_and_description(self, monkeypatch):CODE
LOWtests/test_model_discovery.py185 async def test_missing_key_returns_empty(self, monkeypatch):CODE
LOWtests/test_model_discovery.py190 async def test_discovery_paginates_and_sends_anthropic_headers(self, monkeypatch):CODE
LOWtests/test_model_discovery.py236 async def test_api_failure_falls_back_to_static_list(self, monkeypatch):CODE
LOWtests/test_model_discovery.py256 async def test_discover_with_config_uses_anthropic_api(self, monkeypatch):CODE
LOWtests/test_model_discovery.py275 async def test_discover_with_config_falls_back_on_error(self, monkeypatch):CODE
LOWtests/test_model_discovery.py291 async def test_discover_with_config_requires_key(self):CODE
LOWtests/test_add_insight_failure_propagation.py31 async def test_returns_command_id_on_success(self):CODE
LOWtests/test_add_insight_failure_propagation.py41 async def test_raises_database_operation_error_on_submission_failure(self):CODE
LOWtests/test_add_insight_failure_propagation.py51 async def test_still_raises_invalid_input_for_empty_content(self):CODE
LOWtests/test_add_insight_failure_propagation.py57 async def test_still_raises_invalid_input_for_empty_type(self):CODE
LOWtests/test_add_insight_failure_propagation.py67 async def test_add_insight_failure_propagates_out_of_run_transformation(self):CODE
LOWtests/test_add_insight_failure_propagation.py111 async def test_successful_add_insight_returns_output_normally(self):CODE
431 more matches not shown…
Decorative Section Separators108 hits · 412 pts
SeverityFileLineSnippetContext
MEDIUMopen_notebook/ai/key_provider.py22# =============================================================================COMMENT
MEDIUMopen_notebook/ai/key_provider.py24# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py312# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py314# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py594# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py596# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py32# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py34# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py194# =============================================================================COMMENT
MEDIUMopen_notebook/ai/model_discovery.py196# =============================================================================COMMENT
MEDIUMtests/test_utils.py134# ============================================================================COMMENT
MEDIUMtests/test_utils.py136# ============================================================================COMMENT
MEDIUMtests/test_utils.py181# ============================================================================COMMENT
MEDIUMtests/test_utils.py183# ============================================================================COMMENT
MEDIUMtests/test_utils.py24# ============================================================================COMMENT
MEDIUMtests/test_utils.py26# ============================================================================COMMENT
MEDIUMtests/test_utils.py251# ============================================================================COMMENT
MEDIUMtests/test_utils.py253# ============================================================================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_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.py232# ============================================================================COMMENT
MEDIUMtests/test_domain.py234# ============================================================================COMMENT
MEDIUMtests/test_domain.py370# ============================================================================COMMENT
MEDIUMtests/test_domain.py372# ============================================================================COMMENT
MEDIUMtests/test_domain.py410# ============================================================================COMMENT
MEDIUMtests/test_domain.py412# ============================================================================COMMENT
MEDIUMtests/test_domain.py539# ============================================================================COMMENT
MEDIUMtests/test_domain.py541# ============================================================================COMMENT
MEDIUMtests/test_domain.py597# ============================================================================COMMENT
MEDIUMtests/test_domain.py599# ============================================================================COMMENT
48 more matches not shown…
Excessive Try-Catch Wrapping265 hits · 264 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.py247 except Exception as e:CODE
LOWopen_notebook/database/async_migrate.py262 except Exception:CODE
LOWopen_notebook/database/async_migrate.py272 except Exception:CODE
LOWopen_notebook/database/repository.py109 except Exception as e:CODE
LOWopen_notebook/database/repository.py130 except Exception as e:CODE
LOWopen_notebook/database/repository.py197 except Exception as e:CODE
LOWopen_notebook/database/repository.py207 except Exception as e:CODE
LOWopen_notebook/database/repository.py233 except Exception as e: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.py71 except Exception:CODE
LOWopen_notebook/utils/context_builder.py82 except Exception as e:CODE
LOWopen_notebook/utils/context_builder.py100 except Exception as e:CODE
LOWopen_notebook/utils/context_builder.py110 except Exception as e:CODE
LOWopen_notebook/utils/context_builder.py123 except Exception as e:CODE
LOWopen_notebook/utils/context_builder.py133 except Exception as e:CODE
LOWopen_notebook/utils/context_builder.py206 except Exception as e:CODE
LOWopen_notebook/utils/url_validation.py96 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.py97 except Exception as e:CODE
LOWopen_notebook/ai/models.py130 except Exception:CODE
LOWopen_notebook/ai/models.py182 except Exception:CODE
LOWopen_notebook/ai/connection_tester.py133 except Exception as e:CODE
LOWopen_notebook/ai/connection_tester.py172 except Exception as e:CODE
LOWopen_notebook/ai/connection_tester.py215 except Exception as e:CODE
LOWopen_notebook/ai/connection_tester.py442 except Exception:CODE
LOWopen_notebook/ai/connection_tester.py474 except Exception as e:CODE
LOWopen_notebook/ai/key_provider.py82 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py588 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py679 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py284 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py359 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py411 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py445 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py546 except Exception as e:CODE
LOWopen_notebook/ai/model_discovery.py701 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.py49 except Exception as e:CODE
LOWopen_notebook/graphs/chat.py83 except Exception as e:CODE
LOWopen_notebook/graphs/source.py76 except Exception as e:CODE
LOWopen_notebook/graphs/source.py94 except Exception as e:CODE
LOWopen_notebook/graphs/source.py160 except Exception as e:CODE
LOWopen_notebook/domain/provider_config.py268 except Exception:CODE
MEDIUMopen_notebook/domain/notebook.py136def get_chat_sessions(self) -> List["ChatSession"]:CODE
MEDIUMopen_notebook/domain/notebook.py315def get_source(self) -> "Source":CODE
MEDIUMopen_notebook/domain/notebook.py364def get_source(self) -> "Source":CODE
MEDIUMopen_notebook/domain/notebook.py484def get_embedded_chunks(self) -> int:CODE
MEDIUMopen_notebook/domain/notebook.py500def get_insights(self) -> List[SourceInsight]:CODE
LOWopen_notebook/domain/notebook.py780 except Exception as ve:CODE
205 more matches not shown…
Structural Annotation Overuse115 hits · 210 pts
SeverityFileLineSnippetContext
LOWREADME.md103### Step 1: Get docker-compose.ymlCOMMENT
LOWREADME.md165### Step 2: Set Your Encryption KeyCOMMENT
LOWREADME.md172### Step 3: Start ServicesCOMMENT
LOWREADME.md179### 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
55 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.py567 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.py781 # 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
Deep Nesting44 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.py40CODE
LOWopen_notebook/utils/context_builder.py140CODE
LOWopen_notebook/utils/url_validation.py22CODE
LOWopen_notebook/ai/models.py175CODE
LOWopen_notebook/ai/models.py295CODE
LOWopen_notebook/ai/connection_tester.py74CODE
LOWopen_notebook/ai/connection_tester.py137CODE
LOWopen_notebook/ai/connection_tester.py176CODE
LOWopen_notebook/ai/connection_tester.py392CODE
LOWopen_notebook/ai/model_discovery.py375CODE
LOWopen_notebook/graphs/source_chat.py189CODE
LOWopen_notebook/domain/provider_config.py198CODE
LOWopen_notebook/domain/notebook.py70CODE
LOWopen_notebook/domain/notebook.py211CODE
LOWopen_notebook/domain/credential.py171CODE
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.py104CODE
LOWapi/credentials_service.py217CODE
LOWapi/credentials_service.py577CODE
LOWapi/credentials_service.py685CODE
LOWapi/routers/models.py388CODE
LOWapi/routers/models.py690CODE
LOWapi/routers/transformations.py210CODE
LOWapi/routers/embedding.py17CODE
LOWapi/routers/credentials.py299CODE
LOWapi/routers/podcasts.py178CODE
LOWapi/routers/source_chat.py130CODE
LOWapi/routers/source_chat.py332CODE
LOWapi/routers/sources.py245CODE
LOWapi/routers/sources.py414CODE
LOWapi/routers/sources.py831CODE
LOWapi/routers/sources.py922CODE
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 Imports36 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/podcast_service.py91CODE
LOWapi/routers/embedding.py43CODE
LOWapi/routers/sources.py498CODE
LOWapi/routers/sources.py563CODE
LOWapi/routers/sources.py987CODE
LOWapi/routers/embedding_rebuild.py35CODE
LOWcommands/__init__.py3CODE
LOWcommands/__init__.py3CODE
LOWcommands/__init__.py3CODE
LOWcommands/__init__.py3CODE
LOWcommands/__init__.py9CODE
LOWcommands/__init__.py10CODE
Redundant / Tautological Comments15 hits · 25 pts
SeverityFileLineSnippetContext
LOWopen_notebook/utils/embedding.py240 # Check if chunking is neededCOMMENT
LOWopen_notebook/ai/model_discovery.py686 # 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.py603 # 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.py839 # Check if this is a legacy source (no command)COMMENT
LOWapi/routers/sources.py930 # Check if source already has a running commandCOMMENT
LOWapi/routers/sources.py977 # 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
Over-Commented Block25 hits · 24 pts
SeverityFileLineSnippetContext
LOWcubic.yaml1# yaml-language-server: $schema=https://cubic.dev/schema/cubic-repository-config.schema.jsonCOMMENT
LOWdocker-compose.yml1services:COMMENT
LOWfrontend/src/components/ui/markdown-editor.tsx21// (e.g. pasted content, or an AI-generated note echoing an indirect promptCOMMENT
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
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
LOWapi/main.py241)COMMENT
Verbosity Indicators11 hits · 23 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
Self-Referential Comments6 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMopen_notebook/ai/model_discovery.py675 # Create a set of (name, type) tuples for O(1) lookupCOMMENT
MEDIUMopen_notebook/graphs/source_chat.py249# Create the StateGraphCOMMENT
MEDIUMopen_notebook/graphs/source.py253# Define the graph edgesCOMMENT
MEDIUMopen_notebook/domain/credential.py188 # Create a minimal credential with error info from raw DB fieldsCOMMENT
MEDIUMtests/test_domain.py258 # 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 Vocabulary2 hits · 6 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
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__.py12__all__ = [CODE
AI Structural Patterns3 hits · 2 pts
SeverityFileLineSnippetContext
LOWopen_notebook/domain/provider_config.py51CODE
LOWapi/auth.py82CODE
LOWapi/routers/sources.py173CODE