MCPcopy Create free account

hub / github.com/aieng-abdullah/production-rag-assistant / functions

Functions205 in github.com/aieng-abdullah/production-rag-assistant

Functiontest_documents_to_chunks
()
tests/test_bm25.py:34
Functiontest_documents_to_chunks_defaults
()
tests/test_bm25.py:47
Methodtest_embedding_error
(self, mock_extract, mock_chunk, mock_embed)
tests/test_pipeline_ingest.py:137
Methodtest_embedding_model_is_nonempty
(self)
tests/test_config.py:86
Methodtest_empty_chunks
(self)
tests/test_generate.py:103
Methodtest_empty_pages_skipped_by_chunker
Verify that empty pages from extract_pages are filtered by chunk_pages.
tests/test_pipeline_ingest.py:63
Methodtest_error_stops_pipeline_early
If BM25 fails, vector search and rerank should NOT be called.
tests/test_retrieval_pipeline.py:134
Functiontest_extract_pages_default_doc_id
(mock_fitz)
tests/test_parser.py:57
Functiontest_extract_pages_file_not_found
()
tests/test_parser.py:10
Functiontest_extract_pages_skips_short_pages
(mock_fitz)
tests/test_parser.py:37
Functiontest_extract_pages_success
(mock_fitz)
tests/test_parser.py:16
Methodtest_extraction_error
(self, mock_extract)
tests/test_pipeline_ingest.py:107
Methodtest_extracts_token_usage
(self)
tests/test_generate.py:17
Methodtest_failover_to_second_provider
(self, mock_call, mock_chain)
tests/test_generate.py:220
Methodtest_faithfulness_threshold_is_between_0_and_1
(self)
tests/test_config.py:77
Methodtest_fields
(self)
tests/test_providers.py:95
Methodtest_file_not_found
(self, mock_extract)
tests/test_pipeline_ingest.py:101
Methodtest_first_provider_succeeds
(self, mock_call, mock_chain)
tests/test_generate.py:204
Functiontest_flush_langfuse_calls_flush
()
tests/test_langfuse_tracer.py:97
Functiontest_flush_langfuse_exception_silenced
()
tests/test_langfuse_tracer.py:106
Functiontest_flush_langfuse_no_client
()
tests/test_langfuse_tracer.py:90
Methodtest_full_pipeline_returns_counts
(self, mock_extract, mock_embed, mock_upsert)
tests/test_pipeline_ingest.py:13
Methodtest_generate_no_langfuse_calls_run_pipeline
(self, mock_lf, mock_pipeline)
tests/test_generate.py:174
Methodtest_generate_with_langfuse_calls_traced
(self, mock_lf, mock_traced)
tests/test_generate.py:187
Functiontest_get_bm25_retriever
(mock_bm25_cls)
tests/test_bm25.py:84
Functiontest_get_collection
(mock_embed, mock_chroma)
tests/test_chroma_client.py:39
Functiontest_get_langfuse_client_already_failed
()
tests/test_langfuse_tracer.py:45
Functiontest_get_langfuse_client_generic_error
(mock_cls)
tests/test_langfuse_tracer.py:80
Functiontest_get_langfuse_client_import_error
(mock_cls)
tests/test_langfuse_tracer.py:69
Functiontest_get_langfuse_client_not_configured
()
tests/test_langfuse_tracer.py:36
Functiontest_get_langfuse_client_returns_cached
()
tests/test_langfuse_tracer.py:56
Functiontest_get_vectorstore
(mock_embed, mock_chroma)
tests/test_chroma_client.py:137
Functiontest_get_vectorstore_init
(mock_embed, mock_chroma)
tests/test_chroma_client.py:17
Functiontest_get_vectorstore_singleton
(mock_embed, mock_chroma)
tests/test_chroma_client.py:28
Methodtest_groq_client
(self, mock_chat_groq)
tests/test_providers.py:67
Methodtest_groq_model_has_default
(self)
tests/test_config.py:36
Methodtest_groq_model_is_valid_groq_model
(self)
tests/test_config.py:40
Methodtest_groq_only
(self)
tests/test_providers.py:16
Methodtest_handles_non_numeric_tokens
(self)
tests/test_generate.py:65
Methodtest_handles_none_token_values
(self)
tests/test_generate.py:73
Methodtest_handles_partial_tokens
(self)
tests/test_generate.py:56
Methodtest_handles_usage_key_instead_of_token_usage
(self)
tests/test_generate.py:29
Functiontest_has_chunks_false
(mock_embed, mock_chroma)
tests/test_chroma_client.py:103
Functiontest_has_chunks_true
(mock_embed, mock_chroma)
tests/test_chroma_client.py:90
Functiontest_langfuse_configured_false_missing_keys
()
tests/test_langfuse_tracer.py:28
Functiontest_langfuse_configured_true
()
tests/test_langfuse_tracer.py:20
Functiontest_load_all_chunks
(mock_embed, mock_chroma)
tests/test_chroma_client.py:68
Methodtest_log_level_has_default
(self)
tests/test_config.py:33
Functiontest_missing_citation_rejected
()
tests/test_citations.py:11
Methodtest_no_chunks
(self, mock_extract, mock_chunk)
tests/test_pipeline_ingest.py:128
Methodtest_no_keys_raises
(self)
tests/test_providers.py:46
Methodtest_no_pages
(self, mock_extract)
tests/test_pipeline_ingest.py:113
Methodtest_openai_client
(self, mock_chat_openai)
tests/test_providers.py:83
Methodtest_pipeline_chains_steps_in_order
(self, mock_bm25, mock_vector, mock_rerank)
tests/test_retrieval_pipeline.py:15
Methodtest_pipeline_creates_sources_from_chunks
Verify that sources are built from the retrieval chunks.
tests/test_generate.py:143
Methodtest_pipeline_llm_receives_citation_prompt
Verify that _invoke_llm receives a prompt built from chunks.
tests/test_generate.py:128
Methodtest_pipeline_passes_retrieval_result_to_prompt
Verify that chunks from retrieval are forwarded to build_citation_prompt.
tests/test_generate.py:113
Methodtest_pipeline_raises_on_citation_validation_failure
Verify that an answer without [SOURCE N] raises ValidationError.
tests/test_generate.py:160
Methodtest_preserves_order
(self)
tests/test_providers.py:56
Methodtest_real_chunker_is_used
Verify that real chunk_pages runs, not a mock.
tests/test_pipeline_ingest.py:25
Functiontest_rerank_basic
(mock_cls)
tests/test_cross_encoder.py:16
Functiontest_rerank_empty_chunks
(mock_cls)
tests/test_cross_encoder.py:35
Methodtest_rerank_error_wrapped
(self, mock_bm25, mock_vector, mock_rrf, mock_rerank)
tests/test_retrieval_pipeline.py:123
Functiontest_rerank_inference_error
(mock_cls)
tests/test_cross_encoder.py:62
Functiontest_rerank_invalid_top_k
()
tests/test_cross_encoder.py:41
Functiontest_rerank_model_singleton
(mock_cls)
tests/test_cross_encoder.py:73
Functiontest_rerank_with_threshold
(mock_cls)
tests/test_cross_encoder.py:48
Methodtest_reranker_model_is_nonempty
(self)
tests/test_config.py:89
Functiontest_reset_client
()
tests/test_chroma_client.py:127
Methodtest_returns_none_when_empty_metadata
(self)
tests/test_generate.py:46
Methodtest_returns_none_when_no_metadata
(self)
tests/test_generate.py:41
Methodtest_returns_none_when_usage_not_dict
(self)
tests/test_generate.py:51
Methodtest_returns_none_when_usage_not_dict_type
(self)
tests/test_generate.py:81
Functiontest_rrf_bm25_only_chunks
()
tests/test_hybrid_fusion_extra.py:32
Methodtest_rrf_deduplicates_overlapping_chunks
Real RRF fusion deduplicates chunks with the same chunk_id.
tests/test_retrieval_pipeline.py:64
Methodtest_rrf_error_wrapped
(self, mock_bm25, mock_vector, mock_rrf)
tests/test_retrieval_pipeline.py:112
Methodtest_rrf_fusion_is_called_with_real_function
Verify real rrf_fusion runs, not a mock.
tests/test_retrieval_pipeline.py:39
Functiontest_rrf_has_score
()
tests/test_rrf.py:9
Methodtest_rrf_k_is_positive
(self)
tests/test_config.py:74
Functiontest_rrf_overlapping_chunk_ids
()
tests/test_hybrid_fusion_extra.py:6
Functiontest_rrf_overlapping_uses_bm25_text
()
tests/test_hybrid_fusion_extra.py:17
Functiontest_rrf_returns_top_k
()
tests/test_rrf.py:3
Methodtest_rrf_scores_are_assigned
Real RRF fusion adds rrf_score to each chunk.
tests/test_retrieval_pipeline.py:80
Functiontest_rrf_vector_only_chunks
()
tests/test_hybrid_fusion_extra.py:24
Methodtest_single_provider_success
(self, mock_call, mock_chain)
tests/test_generate.py:254
Methodtest_storage_error
(self, mock_extract, mock_chunk, mock_embed, mock_upsert)
tests/test_pipeline_ingest.py:148
Methodtest_top_k_rerank_is_positive
(self)
tests/test_config.py:71
Methodtest_unknown_provider_raises
(self)
tests/test_providers.py:88
Functiontest_upsert_chunks
(mock_embed, mock_chroma)
tests/test_chroma_client.py:52
Functiontest_usage_from_lc_response_no_metadata
()
tests/test_chain_utils.py:25
Functiontest_usage_from_lc_response_non_numeric
()
tests/test_chain_utils.py:49
Functiontest_usage_from_lc_response_none_metadata
()
tests/test_chain_utils.py:32
Functiontest_usage_from_lc_response_partial_tokens
()
tests/test_chain_utils.py:39
Functiontest_usage_from_lc_response_token_usage
()
tests/test_chain_utils.py:7
Functiontest_usage_from_lc_response_usage_key
()
tests/test_chain_utils.py:16
Functiontest_usage_from_lc_response_usage_not_dict
()
tests/test_chain_utils.py:77
Functiontest_valid_citation_accepted
()
tests/test_citations.py:4
Functiontest_validate_missing_groq_key
()
tests/test_config_validate.py:8
Functiontest_validate_passes_with_key
()
tests/test_config_validate.py:20
Methodtest_validate_passes_with_key
(self)
tests/test_config.py:46
← previousnext →101–200 of 205, ranked by callers