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
test_long_text_chunked_and_pooled
Test that long text is chunked and mean pooled.
tests/test_embedding.py:193
Method
test_long_text_is_chunked
Test that long English text is chunked by token budget.
tests/test_chunking.py:258
Method
test_loopback_allowed_for_self_hosted
Loopback addresses should be allowed for self-hosted scenarios.
tests/test_url_validation.py:68
Method
test_markdown_detection_code_blocks
Test Markdown detection with code blocks.
tests/test_chunking.py:154
Method
test_markdown_detection_headers
Test Markdown detection with headers.
tests/test_chunking.py:121
Method
test_markdown_detection_links
Test Markdown detection with links and headers for stronger signal.
tests/test_chunking.py:141
Method
test_markdown_extensions
Test Markdown file extensions.
tests/test_chunking.py:60
Method
test_migrate_models_instead_of_delete
Passing migrate_to reassigns models instead of deleting them.
tests/test_credentials_api.py:73
Method
test_mirrored_num_ctx_is_validated_as_int
(self)
tests/test_domain.py:711
Method
test_mixed_config_generic_and_mode_specific
Test mixed config: generic + mode-specific (generic should enable all).
tests/test_models_api.py:233
Method
test_mixed_language_text_is_chunked_by_tokens
Test that mixed-language text is chunked using token measurement.
tests/test_chunking.py:272
Method
test_mode_specific_env_vars_llm_embedding
Test mode-specific env vars (LLM + EMBEDDING) enable only those 2 modes.
tests/test_models_api.py:162
Function
test_model
Test if a specific model is correctly configured and functional.
api/routers/models.py:271
Method
test_model_discovery_base_url_can_include_models_path
Model discovery should not append /models twice.
tests/test_credentials_api.py:158
Method
test_model_manager_instance_isolation
Test that each ModelManager instance is independent (not a singleton).
tests/test_domain.py:65
Method
test_no_collision_between_calls
(self)
tests/test_podcast_path.py:27
Method
test_no_env_vars_set
Test that openai-compatible is not available when no env vars are set.
tests/test_models_api.py:204
Method
test_no_extension
Test files without extension.
tests/test_chunking.py:85
Method
test_no_extension_uses_heuristics
Test that heuristics are used when no extension is available.
tests/test_chunking.py:206
Method
test_no_model_raises
Test that missing model raises ValueError.
tests/test_embedding.py:125
Method
test_non_positive_limit_returns_422
(self, bad_limit, client)
tests/test_search_api.py:19
Method
test_none_input
Test None input.
tests/test_chunking.py:90
Method
test_none_title_replaced
None title IS replaced by extracted title.
tests/test_graphs.py:224
Method
test_normalization
Test that result is normalized to unit length.
tests/test_embedding.py:80
Method
test_note_content_for_embedding
Test notes can hold content for embedding. Note: Embedding is now handled via command submission in Note.save(), not via needs_embedd
tests/test_domain.py:382
Method
test_note_content_validation
Test empty content is rejected.
tests/test_domain.py:364
Method
test_notebook_archived_flag
Test archived flag defaults to False.
tests/test_domain.py:97
Method
test_notebook_get_context_includes_note_content
Test notebook context includes linked note content.
tests/test_domain.py:148
Method
test_notebook_get_context_includes_source_full_text
Test notebook context includes full source content for podcasts.
tests/test_domain.py:106
Method
test_notebook_get_context_propagates_source_errors
Test source context failures are not swallowed by notebook context.
tests/test_domain.py:195
Method
test_notebook_get_context_returns_empty_string_without_content
Test notebooks with no source or note content produce empty context.
tests/test_domain.py:178
Method
test_notebook_name_validation
Test empty/whitespace names are rejected.
tests/test_domain.py:83
Method
test_null_config_loads_without_extras
(self)
tests/test_domain.py:673
Method
test_num_ctx_absent_when_unset
(self)
tests/test_credentials_api.py:208
Method
test_num_ctx_included_when_set
(self)
tests/test_credentials_api.py:194
Method
test_num_ctx_round_trips_through_save_and_load
(self)
tests/test_domain.py:658
Method
test_openai_compatible_urls
OpenAI-compatible provider URLs should be validated.
tests/test_url_validation.py:115
Method
test_openai_discovery_respects_base_url
OpenAI model discovery should call the configured API base URL.
tests/test_credentials_api.py:106
Method
test_other_runtime_errors_still_raise
(self)
tests/test_search_api.py:93
Method
test_parse_thinking_content_basic
Test parsing single thinking block.
tests/test_utils.py:64
Method
test_parse_thinking_content_invalid_input
Test parsing with invalid input types.
tests/test_utils.py:99
Method
test_parse_thinking_content_large_content
Test that very large content is not processed.
tests/test_utils.py:111
Method
test_parse_thinking_content_malformed_no_open_tag
Test parsing malformed output where opening <think> tag is missing.
tests/test_utils.py:91
Method
test_parse_thinking_content_multiple_tags
Test parsing multiple thinking blocks.
tests/test_utils.py:72
Method
test_parse_thinking_content_no_tags
Test parsing content without thinking tags.
tests/test_utils.py:83
Method
test_path_is_independent_of_episode_name
The returned path must never contain user-supplied episode names. Since build_episode_output_dir does not accept an episode name at all,
tests/test_podcast_path.py:32
Method
test_path_structure
(self)
tests/test_podcast_path.py:23
Method
test_path_works_on_posix
(self)
tests/test_podcast_path.py:58
Method
test_pattern_chain_state_structure
Test PatternChainState structure and fields.
tests/test_graphs.py:79
Method
test_placeholder_title_replaced
Placeholder 'Processing...' title IS replaced by extracted title.
tests/test_graphs.py:195
Method
test_plain_text_detection
Test plain text detection.
tests/test_chunking.py:169
Method
test_plain_text_extensions
Test plain text file extensions.
tests/test_chunking.py:67
Method
test_position_overflow_falls_back_to_vector_search
(self)
tests/test_search_api.py:48
Method
test_position_overflow_raises_when_vector_also_fails
(self)
tests/test_search_api.py:71
Method
test_prepare_save_data_config_none_when_no_extras
(self)
tests/test_domain.py:637
Method
test_prepare_save_data_packs_num_ctx_into_config
(self)
tests/test_domain.py:628
Method
test_private_ip_allowed_for_ollama
Private IP addresses should be allowed for Ollama provider.
tests/test_url_validation.py:62
Method
test_private_ip_allowed_for_self_hosted
Private IP addresses should be allowed for self-hosted scenarios.
tests/test_url_validation.py:54
Method
test_prompt_graph_compilation
Test that prompt graph compiles correctly.
tests/test_graphs.py:90
Method
test_provider_modalities_include_audio
(self)
tests/test_credentials_api.py:235
Method
test_provider_modalities_matrix
(self)
tests/test_credentials_api.py:254
Method
test_public_hostnames_allowed
Public hostnames should be allowed.
tests/test_url_validation.py:98
Method
test_recordmodel_singleton_behavior
Test that same instance is returned for same record_id.
tests/test_domain.py:34
Method
test_remove_non_ascii
Test removal of non-ASCII characters.
tests/test_utils.py:29
Method
test_remove_non_ascii_pure_ascii
Test that pure ASCII text is unchanged.
tests/test_utils.py:40
Method
test_remove_non_printable
Test removal of non-printable characters.
tests/test_utils.py:46
Method
test_remove_non_printable_preserves_newlines
Test that newlines and tabs are preserved.
tests/test_utils.py:57
Method
test_request_entity_too_large
(self)
tests/test_embedding.py:344
Method
test_retry_400_only_when_truly_unlinked
( self, mock_get, mock_repo_query, client )
tests/test_sources_api.py:185
Method
test_retry_finds_notebooks_and_requeues
( self, mock_get, mock_repo_query, mock_submit, client )
tests/test_sources_api.py:149
Method
test_run_transformation_assertion_no_content
Test transformation raises assertion with no content.
tests/test_graphs.py:130
Method
test_secondary_chunking_for_large_sections
Test that large Markdown sections are further chunked by tokens.
tests/test_chunking.py:323
Method
test_short_text
Test short text defaults to plain.
tests/test_chunking.py:178
Method
test_short_text_direct_embedding
Test that short text is embedded directly without chunking.
tests/test_embedding.py:175
Method
test_short_text_no_chunking
Test that short text is not chunked.
tests/test_chunking.py:244
Method
test_single_embedding
Test mean pooling with single embedding returns normalized version.
tests/test_embedding.py:34
Method
test_source_command_field_parsing
Test RecordID parsing for command field.
tests/test_domain.py:226
Method
test_source_delete_cleans_up_file
Test that deleting a source removes the associated file.
tests/test_domain.py:242
Method
test_source_delete_continues_on_file_error
Test that source deletion continues even if file deletion fails.
tests/test_domain.py:299
Method
test_source_delete_without_file
Test that deleting a source without a file doesn't fail.
tests/test_domain.py:282
Method
test_speaker_profile_validation
Test speaker profile validates count and required fields.
tests/test_domain.py:404
Method
test_submit_generation_job_uses_notebook_context_content
Test notebook podcast jobs submit real source content, not model repr.
tests/test_domain.py:457
Method
test_successful_embedding
Test successful embedding generation with mocked model.
tests/test_embedding.py:138
Method
test_text_at_chunk_limit
Test text within the token chunk size limit.
tests/test_chunking.py:251
Method
test_token_count_fallback
Test fallback when tiktoken raises an error.
tests/test_utils.py:138
Method
test_token_count_network_error_fallback
Test fallback when tiktoken raises a network error (issue #264). In offline environments tiktoken.get_encoding() tries to download the
tests/test_utils.py:154
Method
test_transformation_creation
Test transformation model creation.
tests/test_domain.py:532
Method
test_transformation_graph_compilation
Test that transformation graph compiles correctly.
tests/test_graphs.py:149
Method
test_transformation_state_structure
Test TransformationState structure and fields.
tests/test_graphs.py:107
Method
test_two_embeddings
Test mean pooling with two embeddings.
tests/test_embedding.py:45
Method
test_unknown_extensions
Test unknown extensions return None.
tests/test_chunking.py:79
Method
test_unmapped_config_keys_are_preserved_on_save
(self)
tests/test_domain.py:682
Method
test_update_note_command_id_none_when_no_embedding
Test that command_id is None on update when no embedding is triggered.
tests/test_notes_api.py:94
Method
test_update_note_returns_command_id
Test that updating a note returns the embed command_id.
tests/test_notes_api.py:72
Method
test_valid_http_url
Valid HTTP URLs should pass.
tests/test_url_validation.py:28
Method
test_valid_https_url
Valid HTTPS URLs should pass.
tests/test_url_validation.py:22
Method
test_valid_limit_returns_200
(self, mock_text_search, client)
tests/test_search_api.py:34
Method
test_vectorize_raises_valueerror_when_empty_string
Test that vectorize() raises ValueError for empty string.
tests/test_domain.py:327
Method
test_vectorize_raises_valueerror_when_no_text
Test that vectorize() raises ValueError (not DatabaseOperationError) for empty text.
tests/test_domain.py:320
Method
test_vectorize_raises_valueerror_when_whitespace_only
Test that vectorize() raises ValueError for whitespace-only text.
tests/test_domain.py:334
← previous
next →
1,101–1,200 of 1,250, ranked by callers