MCPcopy Create free account

hub / github.com/lfnovo/open-notebook / functions

Functions1,250 in github.com/lfnovo/open-notebook

Functionrun_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
Methodsave
Save the configuration to the database. Uses _prepare_save_data() to properly handle SecretStr conversion and encryption.
open_notebook/domain/provider_config.py:429
Methodsave
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
Functionsave_insight_as_note
Convert an insight to a note.
api/routers/insights.py:56
Methodsave_insight_as_note
Convert an insight to a note.
api/client.py:453
Methodsave_insight_as_note
Convert an insight to a note.
api/insights_service.py:58
Methodsearch
Search the knowledge base.
api/search_service.py:18
Functionsearch_knowledge_base
Search the knowledge base using text or vector search.
api/routers/search.py:18
Functionsend_message_to_source_chat
Send a message to source chat session with SSE streaming response.
api/routers/source_chat.py:484
Methodset_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
Functionstart_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
Functionstream_podcast_episode_audio
Stream the audio file associated with a podcast episode
api/routers/podcasts.py:191
Functionsync_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
Functionsync_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
Methodtest_413_status_code
(self)
tests/test_embedding.py:335
Methodtest_async_link_source_persists_url_asset
POST /sources with type=link and async_processing=true persists Asset(url=...).
tests/test_sources_api.py:33
Methodtest_async_text_source_has_no_asset
POST /sources with type=text and async_processing=true has asset=None.
tests/test_sources_api.py:109
Methodtest_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
Methodtest_azure_specific_urls
Azure OpenAI endpoints should be validated.
tests/test_url_validation.py:106
Methodtest_batch_retry_exhaustion
Test that RuntimeError is raised after all retries are exhausted.
tests/test_embedding.py:303
Methodtest_batch_retry_on_transient_failure
Test that a transient failure is retried and succeeds.
tests/test_embedding.py:274
Methodtest_batching
Test that large input is split into batches of EMBEDDING_BATCH_SIZE.
tests/test_embedding.py:242
Methodtest_cascade_delete_linked_models
Deleting credential without options cascade-deletes linked models.
tests/test_credentials_api.py:25
Methodtest_cjk_text_is_chunked_by_tokens
Test that long CJK text is chunked using token measurement.
tests/test_chunking.py:265
Methodtest_classify_matrix
(self)
tests/test_credentials_api.py:262
Methodtest_classify_voxtral_and_aura
(self)
tests/test_credentials_api.py:222
Methodtest_clean_thinking_content
Test convenience function for cleaning thinking content.
tests/test_utils.py:120
Methodtest_clearing_num_ctx_keeps_other_config_keys
(self)
tests/test_domain.py:698
Methodtest_code_extensions_as_plain
Test code file extensions are treated as plain text.
tests/test_chunking.py:72
Methodtest_compare_versions_equal
Test comparing equal versions.
tests/test_utils.py:185
Methodtest_compare_versions_greater_than
Test comparing when first version is greater.
tests/test_utils.py:201
Methodtest_compare_versions_less_than
Test comparing when first version is less.
tests/test_utils.py:190
Methodtest_compare_versions_prerelease
Test comparing versions with pre-release tags.
tests/test_utils.py:212
Methodtest_content_settings_defaults
Test ContentSettings has proper defaults.
tests/test_domain.py:554
Methodtest_content_type_parameter
Test that content type parameter is passed through.
tests/test_embedding.py:220
Methodtest_context_builder_initialization
Test ContextBuilder initialization with various params.
tests/test_utils.py:268
Methodtest_context_config_defaults
Test ContextConfig default values.
tests/test_utils.py:255
Methodtest_create_duplicate_model_different_case
Test that creating a duplicate model with different case returns 400.
tests/test_models_api.py:50
Methodtest_create_duplicate_model_same_case
Test that creating a duplicate model with same case returns 400.
tests/test_models_api.py:21
Methodtest_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
Methodtest_create_note_returns_command_id
Test that creating a note returns the embed command_id.
tests/test_notes_api.py:19
Methodtest_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
Methodtest_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
Functiontest_credential
Test connection using a credential's configuration. Returns dict with provider, success, message keys.
api/credentials_service.py:365
Functiontest_credential
Test connection using this credential's configuration.
api/routers/credentials.py:358
Methodtest_custom_title_preserved
User-set title is NOT overwritten by content_state.title.
tests/test_graphs.py:166
Methodtest_db_row_with_config_lifts_num_ctx_to_top_level
(self)
tests/test_domain.py:646
Methodtest_deepgram_has_env_and_test_model
(self)
tests/test_credentials_api.py:243
Methodtest_delete_credential_no_linked_models
Deleting credential with no linked models works cleanly.
tests/test_credentials_api.py:57
Methodtest_directory_can_be_created
Create the directory on the real filesystem.
tests/test_podcast_path.py:63
Methodtest_directory_name_is_valid_uuid
(self)
tests/test_podcast_path.py:18
Methodtest_drops_degenerate_short_chunks
Header splitters can emit single-char chunks; they must be filtered.
tests/test_chunking.py:333
Methodtest_empty_list
Test that empty list returns empty list.
tests/test_embedding.py:119
Methodtest_empty_list_raises
Test that empty list raises ValueError.
tests/test_embedding.py:74
Methodtest_empty_string
Test empty string input.
tests/test_chunking.py:94
Methodtest_empty_text
Test empty text defaults to plain.
tests/test_chunking.py:183
Methodtest_empty_text
Test chunking empty text.
tests/test_chunking.py:239
Methodtest_empty_text_raises
Test that empty text raises ValueError.
tests/test_embedding.py:166
Methodtest_empty_title_replaced
Empty string title IS replaced by extracted title.
tests/test_graphs.py:253
Methodtest_empty_url
Empty URLs should not raise (handled elsewhere).
tests/test_url_validation.py:87
Methodtest_episode_profile_segment_validation
Test segment count validation (3-20).
tests/test_domain.py:573
Methodtest_explicit_content_type_html
Test chunking with explicit HTML content type.
tests/test_chunking.py:280
Methodtest_explicit_content_type_markdown
Test chunking with explicit Markdown content type.
tests/test_chunking.py:293
Methodtest_explicit_content_type_plain
Test chunking with explicit plain content type.
tests/test_chunking.py:310
Methodtest_extension_html
Test HTML extension detection.
tests/test_chunking.py:212
Methodtest_extension_markdown
Test Markdown extension detection.
tests/test_chunking.py:217
Methodtest_extension_takes_priority
Test that file extension takes priority over heuristics.
tests/test_chunking.py:197
Methodtest_file_path_detection
Test chunking with file path for content type detection.
tests/test_chunking.py:317
Methodtest_filter_never_empties_result
Even if every chunk would be dropped, at least one survives.
tests/test_chunking.py:345
Methodtest_generic_env_var_enables_all_modes
Test that OPENAI_COMPATIBLE_BASE_URL enables all 4 modes.
tests/test_models_api.py:124
Methodtest_get_current_timestamp_format
Test timestamp tool returns correct format.
tests/test_graphs.py:32
Methodtest_get_current_timestamp_is_tool
Test that function is properly decorated as a tool.
tests/test_graphs.py:64
Methodtest_get_current_timestamp_validity
Test timestamp represents valid datetime.
tests/test_graphs.py:40
Methodtest_get_installed_version_not_found
Test getting version of non-existent package.
tests/test_utils.py:229
Methodtest_get_installed_version_success
Test getting installed package version.
tests/test_utils.py:220
Methodtest_get_missing_source_returns_404
(self, mock_get, client)
tests/test_sources_api.py:207
Methodtest_get_version_from_github_invalid_url
Test GitHub version fetch with invalid URL.
tests/test_utils.py:236
Methodtest_high_confidence_override
Test that very high confidence heuristics can override plain extension.
tests/test_chunking.py:222
Methodtest_high_dimensional
Test mean pooling with high-dimensional embeddings.
tests/test_embedding.py:93
Methodtest_html_detection_doctype
Test HTML detection with DOCTYPE.
tests/test_chunking.py:107
Methodtest_html_detection_tags
Test HTML detection with structural tags.
tests/test_chunking.py:114
Methodtest_html_extensions
Test HTML file extensions.
tests/test_chunking.py:53
Methodtest_identical_embeddings
Test mean pooling with identical embeddings.
tests/test_embedding.py:59
Methodtest_individual_mode_embedding_only
Test individual mode-specific var (EMBEDDING only).
tests/test_models_api.py:305
Methodtest_individual_mode_llm_only
Test individual mode-specific var (LLM only).
tests/test_models_api.py:275
Methodtest_individual_mode_stt_only
Test individual mode-specific var (STT only).
tests/test_models_api.py:335
Methodtest_individual_mode_tts_only
Test individual mode-specific var (TTS only).
tests/test_models_api.py:365
Methodtest_invalid_scheme
URLs with invalid schemes should be rejected.
tests/test_url_validation.py:33
Methodtest_invalid_url_format
Malformed URLs should be rejected.
tests/test_url_validation.py:93
Methodtest_ipv4_mapped_ipv6_link_local_rejected
IPv4-mapped IPv6 addresses pointing to link-local should be rejected.
tests/test_url_validation.py:122
Methodtest_ipv4_mapped_ipv6_private_allowed
IPv4-mapped IPv6 addresses pointing to private IPs should be allowed.
tests/test_url_validation.py:127
Methodtest_ipv6_localhost_allowed
IPv6 localhost should be allowed for self-hosted scenarios.
tests/test_url_validation.py:82
Functiontest_legacy_embed_chunk_processes_stale_queue_payload
(monkeypatch)
tests/test_embedding_commands.py:19
Functiontest_legacy_embed_single_item_routes_insights
(monkeypatch)
tests/test_embedding_commands.py:81
Functiontest_legacy_embedding_commands_are_registered
()
tests/test_embedding_commands.py:10
Functiontest_legacy_vectorize_source_delegates_to_embed_source
(monkeypatch)
tests/test_embedding_commands.py:58
Methodtest_limit_above_max_returns_422
(self, client)
tests/test_search_api.py:26
Methodtest_link_local_rejection
Link-local addresses should be rejected (cloud metadata protection).
tests/test_url_validation.py:73
Methodtest_localhost_allowed_for_ollama
Localhost should be allowed for Ollama provider.
tests/test_url_validation.py:48
Methodtest_localhost_allowed_for_self_hosted
Localhost should be allowed for self-hosted services.
tests/test_url_validation.py:41
← previousnext →1,001–1,100 of 1,250, ranked by callers