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
Function
run_transformation_command
Run a transformation on an existing source to generate an insight. This command runs the transformation graph which: 1. Loads the source
commands/source_commands.py:192
Method
save
Save the configuration to the database. Uses _prepare_save_data() to properly handle SecretStr conversion and encryption.
open_notebook/domain/provider_config.py:429
Method
save
Save the model to the database. Note: Embedding is no longer generated inline. Subclasses that need embedding should overrid
open_notebook/domain/base.py:146
Function
save_insight_as_note
Convert an insight to a note.
api/routers/insights.py:56
Method
save_insight_as_note
Convert an insight to a note.
api/client.py:453
Method
save_insight_as_note
Convert an insight to a note.
api/insights_service.py:58
Method
search
Search the knowledge base.
api/search_service.py:18
Function
search_knowledge_base
Search the knowledge base using text or vector search.
api/routers/search.py:18
Function
send_message_to_source_chat
Send a message to source chat session with SSE streaming response.
api/routers/source_chat.py:484
Method
set_default_config
Set a configuration as the default for a provider. Args: provider: Provider name config_id: Configuration ID
open_notebook/domain/provider_config.py:384
Function
start_rebuild
Start a background job to rebuild embeddings. - **mode**: "existing" (re-embed items with embeddings) or "all" (embed everything) - **in
api/routers/embedding_rebuild.py:19
Function
stream_podcast_episode_audio
Stream the audio file associated with a podcast episode
api/routers/podcasts.py:191
Function
sync_all_models
Sync models for all configured providers. Discovers and registers models from all providers that have valid API keys configured. This is
api/routers/models.py:550
Function
sync_models
Sync models for a specific provider. Discovers available models from the provider's API and registers any new models in the database. Ex
api/routers/models.py:523
Method
test_413_status_code
(self)
tests/test_embedding.py:335
Method
test_async_link_source_persists_url_asset
POST /sources with type=link and async_processing=true persists Asset(url=...).
tests/test_sources_api.py:33
Method
test_async_text_source_has_no_asset
POST /sources with type=text and async_processing=true has asset=None.
tests/test_sources_api.py:109
Method
test_async_upload_source_persists_file_asset
POST /sources with type=upload and async_processing=true persists Asset(file_path=...).
tests/test_sources_api.py:71
Method
test_azure_specific_urls
Azure OpenAI endpoints should be validated.
tests/test_url_validation.py:106
Method
test_batch_retry_exhaustion
Test that RuntimeError is raised after all retries are exhausted.
tests/test_embedding.py:303
Method
test_batch_retry_on_transient_failure
Test that a transient failure is retried and succeeds.
tests/test_embedding.py:274
Method
test_batching
Test that large input is split into batches of EMBEDDING_BATCH_SIZE.
tests/test_embedding.py:242
Method
test_cascade_delete_linked_models
Deleting credential without options cascade-deletes linked models.
tests/test_credentials_api.py:25
Method
test_cjk_text_is_chunked_by_tokens
Test that long CJK text is chunked using token measurement.
tests/test_chunking.py:265
Method
test_classify_matrix
(self)
tests/test_credentials_api.py:262
Method
test_classify_voxtral_and_aura
(self)
tests/test_credentials_api.py:222
Method
test_clean_thinking_content
Test convenience function for cleaning thinking content.
tests/test_utils.py:120
Method
test_clearing_num_ctx_keeps_other_config_keys
(self)
tests/test_domain.py:698
Method
test_code_extensions_as_plain
Test code file extensions are treated as plain text.
tests/test_chunking.py:72
Method
test_compare_versions_equal
Test comparing equal versions.
tests/test_utils.py:185
Method
test_compare_versions_greater_than
Test comparing when first version is greater.
tests/test_utils.py:201
Method
test_compare_versions_less_than
Test comparing when first version is less.
tests/test_utils.py:190
Method
test_compare_versions_prerelease
Test comparing versions with pre-release tags.
tests/test_utils.py:212
Method
test_content_settings_defaults
Test ContentSettings has proper defaults.
tests/test_domain.py:554
Method
test_content_type_parameter
Test that content type parameter is passed through.
tests/test_embedding.py:220
Method
test_context_builder_initialization
Test ContextBuilder initialization with various params.
tests/test_utils.py:268
Method
test_context_config_defaults
Test ContextConfig default values.
tests/test_utils.py:255
Method
test_create_duplicate_model_different_case
Test that creating a duplicate model with different case returns 400.
tests/test_models_api.py:50
Method
test_create_duplicate_model_same_case
Test that creating a duplicate model with same case returns 400.
tests/test_models_api.py:21
Method
test_create_note_command_id_none_when_no_content_embedding
Test that command_id is None when save returns None (no embedding).
tests/test_notes_api.py:43
Method
test_create_note_returns_command_id
Test that creating a note returns the embed command_id.
tests/test_notes_api.py:19
Method
test_create_same_model_name_different_provider
Test that creating a model with same name but different provider is allowed.
tests/test_models_api.py:78
Method
test_create_same_model_name_different_type
Test that creating a model with same name but different type is allowed.
tests/test_models_api.py:100
Function
test_credential
Test connection using a credential's configuration. Returns dict with provider, success, message keys.
api/credentials_service.py:365
Function
test_credential
Test connection using this credential's configuration.
api/routers/credentials.py:358
Method
test_custom_title_preserved
User-set title is NOT overwritten by content_state.title.
tests/test_graphs.py:166
Method
test_db_row_with_config_lifts_num_ctx_to_top_level
(self)
tests/test_domain.py:646
Method
test_deepgram_has_env_and_test_model
(self)
tests/test_credentials_api.py:243
Method
test_delete_credential_no_linked_models
Deleting credential with no linked models works cleanly.
tests/test_credentials_api.py:57
Method
test_directory_can_be_created
Create the directory on the real filesystem.
tests/test_podcast_path.py:63
Method
test_directory_name_is_valid_uuid
(self)
tests/test_podcast_path.py:18
Method
test_drops_degenerate_short_chunks
Header splitters can emit single-char chunks; they must be filtered.
tests/test_chunking.py:333
Method
test_empty_list
Test that empty list returns empty list.
tests/test_embedding.py:119
Method
test_empty_list_raises
Test that empty list raises ValueError.
tests/test_embedding.py:74
Method
test_empty_string
Test empty string input.
tests/test_chunking.py:94
Method
test_empty_text
Test empty text defaults to plain.
tests/test_chunking.py:183
Method
test_empty_text
Test chunking empty text.
tests/test_chunking.py:239
Method
test_empty_text_raises
Test that empty text raises ValueError.
tests/test_embedding.py:166
Method
test_empty_title_replaced
Empty string title IS replaced by extracted title.
tests/test_graphs.py:253
Method
test_empty_url
Empty URLs should not raise (handled elsewhere).
tests/test_url_validation.py:87
Method
test_episode_profile_segment_validation
Test segment count validation (3-20).
tests/test_domain.py:573
Method
test_explicit_content_type_html
Test chunking with explicit HTML content type.
tests/test_chunking.py:280
Method
test_explicit_content_type_markdown
Test chunking with explicit Markdown content type.
tests/test_chunking.py:293
Method
test_explicit_content_type_plain
Test chunking with explicit plain content type.
tests/test_chunking.py:310
Method
test_extension_html
Test HTML extension detection.
tests/test_chunking.py:212
Method
test_extension_markdown
Test Markdown extension detection.
tests/test_chunking.py:217
Method
test_extension_takes_priority
Test that file extension takes priority over heuristics.
tests/test_chunking.py:197
Method
test_file_path_detection
Test chunking with file path for content type detection.
tests/test_chunking.py:317
Method
test_filter_never_empties_result
Even if every chunk would be dropped, at least one survives.
tests/test_chunking.py:345
Method
test_generic_env_var_enables_all_modes
Test that OPENAI_COMPATIBLE_BASE_URL enables all 4 modes.
tests/test_models_api.py:124
Method
test_get_current_timestamp_format
Test timestamp tool returns correct format.
tests/test_graphs.py:32
Method
test_get_current_timestamp_is_tool
Test that function is properly decorated as a tool.
tests/test_graphs.py:64
Method
test_get_current_timestamp_validity
Test timestamp represents valid datetime.
tests/test_graphs.py:40
Method
test_get_installed_version_not_found
Test getting version of non-existent package.
tests/test_utils.py:229
Method
test_get_installed_version_success
Test getting installed package version.
tests/test_utils.py:220
Method
test_get_missing_source_returns_404
(self, mock_get, client)
tests/test_sources_api.py:207
Method
test_get_version_from_github_invalid_url
Test GitHub version fetch with invalid URL.
tests/test_utils.py:236
Method
test_high_confidence_override
Test that very high confidence heuristics can override plain extension.
tests/test_chunking.py:222
Method
test_high_dimensional
Test mean pooling with high-dimensional embeddings.
tests/test_embedding.py:93
Method
test_html_detection_doctype
Test HTML detection with DOCTYPE.
tests/test_chunking.py:107
Method
test_html_detection_tags
Test HTML detection with structural tags.
tests/test_chunking.py:114
Method
test_html_extensions
Test HTML file extensions.
tests/test_chunking.py:53
Method
test_identical_embeddings
Test mean pooling with identical embeddings.
tests/test_embedding.py:59
Method
test_individual_mode_embedding_only
Test individual mode-specific var (EMBEDDING only).
tests/test_models_api.py:305
Method
test_individual_mode_llm_only
Test individual mode-specific var (LLM only).
tests/test_models_api.py:275
Method
test_individual_mode_stt_only
Test individual mode-specific var (STT only).
tests/test_models_api.py:335
Method
test_individual_mode_tts_only
Test individual mode-specific var (TTS only).
tests/test_models_api.py:365
Method
test_invalid_scheme
URLs with invalid schemes should be rejected.
tests/test_url_validation.py:33
Method
test_invalid_url_format
Malformed URLs should be rejected.
tests/test_url_validation.py:93
Method
test_ipv4_mapped_ipv6_link_local_rejected
IPv4-mapped IPv6 addresses pointing to link-local should be rejected.
tests/test_url_validation.py:122
Method
test_ipv4_mapped_ipv6_private_allowed
IPv4-mapped IPv6 addresses pointing to private IPs should be allowed.
tests/test_url_validation.py:127
Method
test_ipv6_localhost_allowed
IPv6 localhost should be allowed for self-hosted scenarios.
tests/test_url_validation.py:82
Function
test_legacy_embed_chunk_processes_stale_queue_payload
(monkeypatch)
tests/test_embedding_commands.py:19
Function
test_legacy_embed_single_item_routes_insights
(monkeypatch)
tests/test_embedding_commands.py:81
Function
test_legacy_embedding_commands_are_registered
()
tests/test_embedding_commands.py:10
Function
test_legacy_vectorize_source_delegates_to_embed_source
(monkeypatch)
tests/test_embedding_commands.py:58
Method
test_limit_above_max_returns_422
(self, client)
tests/test_search_api.py:26
Method
test_link_local_rejection
Link-local addresses should be rejected (cloud metadata protection).
tests/test_url_validation.py:73
Method
test_localhost_allowed_for_ollama
Localhost should be allowed for Ollama provider.
tests/test_url_validation.py:48
Method
test_localhost_allowed_for_self_hosted
Localhost should be allowed for self-hosted services.
tests/test_url_validation.py:41
← previous
next →
1,001–1,100 of 1,250, ranked by callers