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
Method
__aexit__
(self, exc_type, exc, tb)
tests/test_credentials_api.py:115
Method
__init__
Initialize ContextBuilder with flexible parameters. Supported parameters: - source_id: str - Include specific source
open_notebook/utils/context_builder.py:65
Method
__init__
Initialize migration with SQL content.
open_notebook/database/async_migrate.py:18
Method
__init__
Initialize runner with migration lists.
open_notebook/database/async_migrate.py:57
Method
__init__
Initialize migration manager.
open_notebook/database/async_migrate.py:96
Method
__init__
Initialize with async migration manager.
open_notebook/database/migrate.py:11
Method
__init__
( self, id: str, name: str, provider: str, is_default: bool = False,
open_notebook/domain/provider_config.py:51
Method
__init__
(self, **kwargs)
open_notebook/domain/base.py:269
Method
__init__
(self)
api/settings_service.py:14
Method
__init__
(self, base_url: Optional[str] = None)
api/client.py:16
Method
__init__
(self)
api/transformations_service.py:17
Method
__init__
(self)
api/episode_profiles_service.py:16
Method
__init__
(self)
api/context_service.py:15
Method
__init__
(self)
api/sources_service.py:69
Method
__init__
(self, app, excluded_paths: Optional[list] = None)
api/auth.py:19
Method
__init__
(self)
api/search_service.py:15
Method
__init__
(self)
api/models_service.py:16
Method
__init__
(self)
api/embedding_service.py:15
Method
__init__
(self)
api/notes_service.py:16
Method
__init__
(self)
api/chat_service.py:16
Method
__init__
(self)
api/podcast_api_service.py:16
Method
__init__
(self)
api/notebook_service.py:16
Method
__init__
(self)
api/insights_service.py:16
Method
__post_init__
Calculate token count for the content if not provided.
open_notebook/utils/context_builder.py:31
Method
__post_init__
Initialize default values.
open_notebook/utils/context_builder.py:49
Method
_clear_for_test
Clear the singleton instance for testing purposes.
open_notebook/domain/provider_config.py:441
Method
_mirror_config_to_fields
Mirror known keys from the persisted `config` bag onto their convenience fields on load. Done in `before` so the values flow through n
open_notebook/domain/credential.py:88
Method
_prepare_save_data
(self)
open_notebook/podcasts/models.py:171
Method
_prepare_save_data
Override to ensure command field is always RecordID format for database
open_notebook/podcasts/models.py:269
Method
_prepare_save_data
(self)
open_notebook/ai/models.py:43
Method
add_config
Add a new configuration for a provider. If this is the first config for the provider, it becomes the default. When adding a
open_notebook/domain/provider_config.py:326
Function
add_source_to_notebook
Add an existing source to a notebook (create the reference).
api/routers/notebooks.py:246
Function
analyze_data_command
Example command for data analysis. Tests command with complex input/output and demonstrates error handling.
commands/example_commands.py:95
Function
areEqual
(prev: SourceCardProps, next: SourceCardProps)
frontend/src/components/sources/SourceCard.tsx:427
Function
ask_knowledge_base
Ask the knowledge base a question using AI models.
api/routers/search.py:114
Method
ask_knowledge_base
Ask the knowledge base a question.
api/search_service.py:40
Function
ask_knowledge_base_simple
Ask the knowledge base a question and return a simple response (non-streaming).
api/routers/search.py:161
Method
asset
(self)
api/sources_service.py:50
Function
authentication_error_handler
(request: Request, exc: AuthenticationError)
api/main.py:236
Function
auto_assign_defaults
Auto-assign default models based on available models. This endpoint intelligently assigns the first available model of each required typ
api/routers/models.py:689
Method
auto_save_validator
(self)
open_notebook/domain/base.py:315
Function
build_context
Build context for a notebook based on context configuration.
api/routers/chat.py:422
Method
build_context
Build context for a notebook
api/chat_service.py:149
Function
build_mixed_context
Build context from mixed sources. Args: source_ids: List of source IDs note_ids: List of note IDs notebook_id: Optio
open_notebook/utils/context_builder.py:464
Function
build_notebook_context
Build context for a notebook. Args: notebook_id: ID of the notebook context_config: Optional context configuration m
open_notebook/utils/context_builder.py:422
Function
build_source_context
Build context for a single source. Args: source_id: ID of the source include_insights: Whether to include insights m
open_notebook/utils/context_builder.py:444
Function
call_model
(state: dict, config: RunnableConfig)
open_notebook/graphs/prompt.py:20
Function
call_model_with_messages
(state: ThreadState, config: RunnableConfig)
open_notebook/graphs/chat.py:30
Function
call_model_with_messages
(state: ThreadState, config: RunnableConfig)
open_notebook/graphs/ask.py:51
Function
call_model_with_source_context
Main function that builds source context and calls the model. This function: 1. Uses ContextBuilder to build source-specific context
open_notebook/graphs/source_chat.py:33
Function
cancel_command_job
Cancel a running command job
api/routers/commands.py:109
Method
capture_save
(self_source)
tests/test_sources_api.py:42
Function
check_api_password
Utility function to check API password. Can be used as a dependency in individual routes if needed. Supports Docker secrets via OPEN_NOTE
api/auth.py:82
Function
check_source_file
Check if a source has a downloadable file.
api/routers/sources.py:690
Function
client
Create test client after environment variables have been cleared by conftest.
tests/test_sources_api.py:14
Function
client
Create test client after environment variables have been cleared by conftest.
tests/test_search_api.py:8
Function
client
Create test client after environment variables have been cleared by conftest.
tests/test_models_api.py:8
Function
client
Create test client after environment variables have been cleared by conftest.
tests/test_notes_api.py:8
Function
client
Create test client after environment variables have been cleared by conftest.
tests/test_credentials_api.py:13
Method
componentDidCatch
(error: Error, errorInfo: React.ErrorInfo)
frontend/src/components/common/ErrorBoundary.tsx:36
Function
configuration_error_handler
(request: Request, exc: ConfigurationError)
api/main.py:254
Method
constructor
(props: ErrorBoundaryProps)
frontend/src/components/common/ErrorBoundary.tsx:24
Method
content_must_not_be_empty
(cls, v)
open_notebook/domain/notebook.py:631
Function
content_process
(state: SourceState)
open_notebook/graphs/source.py:34
Function
convertSourceReferences
( text: string, onReferenceClick: (type: ReferenceType, id: string) => void )
frontend/src/lib/utils/source-references.tsx:76
Function
convertSourceReferencesLegacy
(text: string)
frontend/src/lib/utils/source-references.tsx:482
Function
createInsight
()
frontend/src/components/source/SourceDetailContent.tsx:151
Function
create_credential
Create a new credential.
api/routers/credentials.py:140
Method
create_default_episode_profiles
Create default episode profiles if they don't exist
api/podcast_service.py:167
Method
create_default_speaker_profiles
Create default speaker profiles if they don't exist
api/podcast_service.py:188
Function
create_episode_profile
Create a new episode profile
api/routers/episode_profiles.py:101
Method
create_episode_profile
Create a new episode profile.
api/client.py:487
Method
create_episode_profile
Create a new episode profile.
api/episode_profiles_service.py:62
Method
create_episode_profile
Create a new episode profile.
api/podcast_api_service.py:39
Function
create_insight_command
Create a source insight with automatic retry on transaction conflicts. This command wraps the CREATE source_insight operation with retry log
commands/embedding_commands.py:731
Function
create_model
Create a new model configuration.
api/routers/models.py:198
Method
create_model
Create a new model.
api/client.py:165
Method
create_model
Create a new model.
api/models_service.py:36
Function
create_note
Create a new note.
api/routers/notes.py:50
Method
create_note
Create a new note.
api/client.py:259
Method
create_note
Create a new note.
api/notes_service.py:52
Function
create_notebook
Create a new notebook.
api/routers/notebooks.py:90
Method
create_notebook
Create a new notebook.
api/client.py:91
Method
create_notebook
Create a new notebook.
api/notebook_service.py:50
Function
create_session
Create a new chat session.
api/routers/chat.py:138
Method
create_session
Create a new chat session
api/chat_service.py:39
Method
create_source
Create a new source.
api/client.py:367
Method
create_source_async
Create a new source with async processing enabled. This is a convenience method that always uses async processing. Returns a
api/sources_service.py:224
Function
create_source_chat_session
Create a new chat session for a source.
api/routers/source_chat.py:90
Function
create_source_insight
Start insight generation for a source by running a transformation. This endpoint returns immediately with a 202 Accepted status. The tra
api/routers/sources.py:1006
Method
create_source_insight
Create a new insight for a source by running a transformation.
api/client.py:464
Method
create_source_insight
Create a new insight for a source by running a transformation.
api/insights_service.py:76
Function
create_source_json
Create a new source using JSON payload (legacy endpoint for backward compatibility).
api/routers/sources.py:581
Function
create_speaker_profile
Create a new speaker profile
api/routers/speaker_profiles.py:83
Method
create_speaker_profile
Create a new speaker profile.
api/podcast_api_service.py:83
Function
create_transformation
Create a new transformation.
api/routers/transformations.py:50
Method
create_transformation
Create a new transformation.
api/client.py:198
Method
create_transformation
Create a new transformation.
api/transformations_service.py:63
Method
created
(self)
api/sources_service.py:58
Function
custom_http_exception_handler
Custom exception handler that ensures CORS headers are included in error responses. This is particularly important for 413 (Payload Too Large
api/main.py:201
← previous
next →
601–700 of 1,250, ranked by callers