Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lfnovo/open-notebook
/ functions
Functions
1,250 in github.com/lfnovo/open-notebook
⨍
Functions
1,250
◇
Types & classes
422
↳
Endpoints
144
↓ 3 callers
Function
_find_or_create_model
Find existing Model record or auto-create one linked to provider credential.
open_notebook/podcasts/migration.py:27
↓ 3 callers
Method
add_item
Add a ContextItem to the builder. Args: item: ContextItem to add
open_notebook/utils/context_builder.py:305
↓ 3 callers
Function
applyBulkNoteContext
( existing: Record<string, ContextMode>, notes: NoteLike[], action: NoteContextDefault, )
frontend/src/lib/utils/source-context.ts:127
↓ 3 callers
Function
checkAuth
()
frontend/src/components/auth/LoginForm.tsx:43
↓ 3 callers
Function
check_env_configured
Check if a provider has sufficient env vars configured for migration.
api/credentials_service.py:234
↓ 3 callers
Function
closeModal
()
frontend/src/lib/hooks/use-modal-manager.ts:32
↓ 3 callers
Function
getKeys
(obj: Record<string, unknown>, prefix = '')
frontend/src/lib/locales/index.test.ts:7
↓ 3 callers
Function
getSourceDefaultMode
(source: SourceListResponse)
frontend/src/components/podcasts/GeneratePodcastDialog.tsx:64
↓ 3 callers
Method
get_job_detail
Get status and error_message of the associated command
open_notebook/podcasts/models.py:244
↓ 3 callers
Method
get_notes
(self, include_content: bool = False)
open_notebook/domain/notebook.py:47
↓ 3 callers
Method
get_sources
Get all sources with optional notebook filtering.
api/client.py:359
↓ 3 callers
Method
get_status
Get the processing status of the associated command
open_notebook/domain/notebook.py:384
↓ 3 callers
Function
handleCreateSelection
(target: CreateTarget)
frontend/src/components/layout/AppSidebar.tsx:95
↓ 3 callers
Function
handleOpenEditor
(trans?: Transformation)
frontend/src/app/(dashboard)/transformations/components/TransformationsList.tsx:25
↓ 3 callers
Function
handleSave
()
frontend/src/components/common/InlineEdit.tsx:52
↓ 3 callers
Function
handleSubmit
(e: React.FormEvent)
frontend/src/app/(dashboard)/settings/api-keys/page.tsx:214
↓ 3 callers
Function
includedMode
(insightsCount: number)
frontend/src/lib/utils/source-context.ts:24
↓ 3 callers
Function
isStepValid
(step: number)
frontend/src/components/sources/AddSourceDialog.tsx:210
↓ 3 callers
Function
repo_delete
Delete a record by record id
open_notebook/database/repository.py:158
↓ 3 callers
Function
repo_update
Update an existing record by table and id
open_notebook/database/repository.py:134
↓ 3 callers
Function
resolveModelName
(id?: string | null)
frontend/src/app/(dashboard)/search/page.tsx:74
↓ 3 callers
Function
str_to_bool
(value: str)
api/routers/sources.py:114
↓ 3 callers
Method
submit_generation_job
Submit a podcast generation job for background processing
api/podcast_service.py:37
↓ 3 callers
Method
title
(self)
api/sources_service.py:38
↓ 3 callers
Function
useAuth
()
frontend/src/lib/hooks/use-auth.ts:7
↓ 3 callers
Function
useCreateNote
()
frontend/src/lib/hooks/use-notes.ts:26
↓ 3 callers
Function
useEpisodeProfiles
()
frontend/src/lib/hooks/use-podcasts.ts:139
↓ 3 callers
Function
useModelDefaults
()
frontend/src/lib/hooks/use-models.ts:81
↓ 3 callers
Function
useSettings
()
frontend/src/lib/hooks/use-settings.ts:9
↓ 3 callers
Function
vector_search
( keyword: str, results: int, source: bool = True, note: bool = True, minimum_score=0.2, )
open_notebook/domain/notebook.py:738
↓ 2 callers
Function
StreamingResponse
({ isStreaming, strategy, answers, finalAnswer }: StreamingResponseProps)
frontend/src/components/search/StreamingResponse.tsx:28
↓ 2 callers
Method
_add_note_context
Add note to context. Args: note_id: ID of the note inclusion_level: "full content" or "not in"
open_notebook/utils/context_builder.py:254
↓ 2 callers
Method
_from_db_row
Create a Credential from a database row, decrypting api_key.
open_notebook/domain/credential.py:278
↓ 2 callers
Function
_get_plain_splitter
Get plain text splitter using CHUNK_SIZE and CHUNK_OVERLAP constants.
open_notebook/utils/chunking.py:388
↓ 2 callers
Method
_prepare_save_data
(self)
open_notebook/podcasts/models.py:89
↓ 2 callers
Function
_resolve_source_file
(source_id: str)
api/routers/sources.py:588
↓ 2 callers
Function
_truncate
Truncate text to max_length to avoid leaking verbose internal details.
open_notebook/utils/error_classifier.py:99
↓ 2 callers
Method
add_insight
Submit insight creation as an async command (fire-and-forget). Submits a create_insight command that handles database operations wit
open_notebook/domain/notebook.py:525
↓ 2 callers
Method
add_to_notebook
(self, notebook_id: str)
open_notebook/domain/notebook.py:472
↓ 2 callers
Method
add_to_notebook
(self, notebook_id: str)
open_notebook/domain/notebook.py:661
↓ 2 callers
Function
bulkModeForNote
(action: NoteContextDefault)
frontend/src/lib/utils/source-context.ts:103
↓ 2 callers
Method
clear_instance
Clear the singleton instance (useful for testing)
open_notebook/domain/base.py:352
↓ 2 callers
Function
createChatMock
()
frontend/src/app/(dashboard)/notebooks/components/ChatColumn.test.tsx:23
↓ 2 callers
Function
createCollapseButton
(onToggle: () => void, label: string)
frontend/src/components/notebooks/CollapsibleColumn.tsx:69
↓ 2 callers
Function
createNotesMock
(overrides: { isLoading?: boolean } = {})
frontend/src/app/(dashboard)/notebooks/components/ChatColumn.test.tsx:15
↓ 2 callers
Function
discover_provider_models
Discover available models for a specific provider. Args: provider: Provider name (openai, anthropic, etc.) Returns: Lis
open_notebook/ai/model_discovery.py:740
↓ 2 callers
Function
embed_source_command
Generate and store embeddings for a source document. Creates multiple chunk embeddings stored in the source_embedding table. Uses conten
commands/embedding_commands.py:380
↓ 2 callers
Function
encrypt_value
Encrypt a string value using Fernet symmetric encryption. Args: value: The plain text string to encrypt. Returns: Base6
open_notebook/utils/encryption.py:128
↓ 2 callers
Function
fetchConfig
* Fetch configuration from the API or use defaults.
frontend/src/lib/config.ts:59
↓ 2 callers
Function
formatApiError
(error: unknown)
frontend/src/lib/utils/error-handler.ts:82
↓ 2 callers
Function
formatNumber
(num: number)
frontend/src/components/podcasts/GeneratePodcastDialog.tsx:44
↓ 2 callers
Function
formatNumber
(num: number)
frontend/src/components/common/ContextIndicator.tsx:18
↓ 2 callers
Function
getModelsForType
(type: ModelType)
frontend/src/app/(dashboard)/settings/api-keys/page.tsx:1168
↓ 2 callers
Function
getSourceTypes
(t: TFunction)
frontend/src/components/sources/steps/SourceTypeStep.tsx:68
↓ 2 callers
Function
getYouTubeVideoId
(url: string)
frontend/src/components/source/SourceDetailContent.tsx:334
↓ 2 callers
Method
get_credential_obj
Get the Credential object linked to this model, if any.
open_notebook/ai/models.py:49
↓ 2 callers
Function
get_default_modalities
Get default modalities for a provider.
api/credentials_service.py:247
↓ 2 callers
Method
get_default_model
Get the default model for a specific type. Args: model_type: The type of model to retrieve (e.g., 'chat', 'embedding', e
open_notebook/ai/models.py:221
↓ 2 callers
Function
get_fernet
Get Fernet instance with the configured encryption key. Returns: Fernet instance. Raises: ValueError: If encryption key
open_notebook/utils/encryption.py:115
↓ 2 callers
Function
get_installed_version
Get the version of an installed package. Args: package_name (str): Name of the installed package Returns: str: Version
open_notebook/utils/version_utils.py:113
↓ 2 callers
Method
get_processing_progress
Get detailed processing information for the associated command
open_notebook/domain/notebook.py:398
↓ 2 callers
Method
get_sources
(self, include_full_text: bool = False)
open_notebook/domain/notebook.py:29
↓ 2 callers
Function
get_version_from_github
Fetch and parse the version from pyproject.toml in a public GitHub repository. Args: repo_url (str): URL of the GitHub repository
open_notebook/utils/version_utils.py:59
↓ 2 callers
Function
handleClose
()
frontend/src/components/sources/AddSourceDialog.tsx:425
↓ 2 callers
Function
handleDeleteClick
(noteId: string)
frontend/src/app/(dashboard)/notebooks/components/NotesColumn.tsx:61
↓ 2 callers
Function
handleRetry
()
frontend/src/components/sources/SourceCard.tsx:187
↓ 2 callers
Function
hasActiveEpisodes
(episodes: PodcastEpisode[])
frontend/src/lib/hooks/use-podcasts.ts:35
↓ 2 callers
Function
hasSelections
(selection?: NotebookSelection)
frontend/src/components/podcasts/GeneratePodcastDialog.tsx:54
↓ 2 callers
Function
models_endpoint
(url: str)
api/credentials_service.py:487
↓ 2 callers
Function
needsModelSetup
(profile: EpisodeProfile | SpeakerProfile)
frontend/src/lib/types/podcasts.ts:149
↓ 2 callers
Method
needs_migration
Check if migration is needed.
open_notebook/database/async_migrate.py:181
↓ 2 callers
Function
parseAndValidateUrls
(text: string)
frontend/src/components/sources/steps/SourceTypeStep.tsx:44
↓ 2 callers
Function
parseSourceReferences
(text: string)
frontend/src/lib/utils/source-references.tsx:46
↓ 2 callers
Function
remove_non_ascii
Remove non-ASCII characters from text.
open_notebook/utils/text_utils.py:17
↓ 2 callers
Function
remove_non_printable
Remove non-printable characters from text.
open_notebook/utils/text_utils.py:22
↓ 2 callers
Function
repo_upsert
Create or update a record in the specified table
open_notebook/database/repository.py:123
↓ 2 callers
Function
resetConfig
()
frontend/src/lib/config.ts:145
↓ 2 callers
Method
save
Save credential, handling api_key re-hydration after DB round-trip.
open_notebook/domain/credential.py:261
↓ 2 callers
Function
sync_provider_models
Sync models for a provider: discover and optionally register in database. Args: provider: Provider name auto_register: If Tr
open_notebook/ai/model_discovery.py:764
↓ 2 callers
Function
useAddSourcesToNotebook
()
frontend/src/lib/hooks/use-sources.ts:292
↓ 2 callers
Function
useCreateDialogs
()
frontend/src/lib/hooks/use-create-dialogs.tsx:41
↓ 2 callers
Function
useCredentialStatus
()
frontend/src/lib/hooks/use-credentials.ts:26
↓ 2 callers
Function
useEnvStatus
()
frontend/src/lib/hooks/use-credentials.ts:36
↓ 2 callers
Function
useNotes
(notebookId?: string)
frontend/src/lib/hooks/use-notes.ts:9
↓ 2 callers
Function
useRemoveSourceFromNotebook
()
frontend/src/lib/hooks/use-sources.ts:354
↓ 2 callers
Function
useSpeakerProfiles
(episodeProfiles?: EpisodeProfile[])
frontend/src/lib/hooks/use-podcasts.ts:259
↓ 2 callers
Function
useTheme
()
frontend/src/lib/stores/theme-store.ts:52
↓ 2 callers
Function
useTransformations
()
frontend/src/lib/hooks/use-transformations.ts:19
↓ 2 callers
Function
useUpdateNotebook
()
frontend/src/lib/hooks/use-notebooks.ts:48
↓ 1 callers
Method
__init__
(self)
open_notebook/ai/models.py:99
↓ 1 callers
Method
__new__
(cls, **kwargs)
open_notebook/domain/base.py:254
↓ 1 callers
Method
_add_notebook_context
Add notebook content based on context configuration. Args: notebook_id: ID of the notebook
open_notebook/utils/context_builder.py:210
↓ 1 callers
Function
_apply_secondary_chunking
Apply secondary chunking to ensure no chunk exceeds CHUNK_SIZE tokens. Used when primary splitters (HTML/Markdown) produce oversized chunks.
open_notebook/utils/chunking.py:398
↓ 1 callers
Function
_build_text_exceeding_tokens
Build text that exceeds a token threshold.
tests/test_embedding.py:18
↓ 1 callers
Function
_build_text_with_max_tokens
Build text that stays within a token budget.
tests/test_chunking.py:21
↓ 1 callers
Function
_calculate_html_score
Calculate confidence score for HTML content.
open_notebook/utils/chunking.py:230
↓ 1 callers
Function
_calculate_markdown_score
Calculate confidence score for Markdown content.
open_notebook/utils/chunking.py:266
↓ 1 callers
Function
_call_model_with_source_context_inner
( state: SourceChatState, config: RunnableConfig )
open_notebook/graphs/source_chat.py:54
↓ 1 callers
Function
_ensure_fernet_key
Derive a valid Fernet key from an arbitrary string via SHA-256. Any string is accepted as input. The key is derived by hashing it with S
open_notebook/utils/encryption.py:104
↓ 1 callers
Function
_find_model_record
Find an existing Model record matching provider + name + type.
open_notebook/podcasts/migration.py:14
← previous
next →
101–200 of 1,250, ranked by callers