Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aieng-abdullah/production-rag-assistant
/ functions
Functions
205 in github.com/aieng-abdullah/production-rag-assistant
⨍
Functions
205
◇
Types & classes
20
↳
Endpoints
65
Function
test_documents_to_chunks
()
tests/test_bm25.py:34
Function
test_documents_to_chunks_defaults
()
tests/test_bm25.py:47
Method
test_embedding_error
(self, mock_extract, mock_chunk, mock_embed)
tests/test_pipeline_ingest.py:137
Method
test_embedding_model_is_nonempty
(self)
tests/test_config.py:86
Method
test_empty_chunks
(self)
tests/test_generate.py:103
Method
test_empty_pages_skipped_by_chunker
Verify that empty pages from extract_pages are filtered by chunk_pages.
tests/test_pipeline_ingest.py:63
Method
test_error_stops_pipeline_early
If BM25 fails, vector search and rerank should NOT be called.
tests/test_retrieval_pipeline.py:134
Function
test_extract_pages_default_doc_id
(mock_fitz)
tests/test_parser.py:57
Function
test_extract_pages_file_not_found
()
tests/test_parser.py:10
Function
test_extract_pages_skips_short_pages
(mock_fitz)
tests/test_parser.py:37
Function
test_extract_pages_success
(mock_fitz)
tests/test_parser.py:16
Method
test_extraction_error
(self, mock_extract)
tests/test_pipeline_ingest.py:107
Method
test_extracts_token_usage
(self)
tests/test_generate.py:17
Method
test_failover_to_second_provider
(self, mock_call, mock_chain)
tests/test_generate.py:220
Method
test_faithfulness_threshold_is_between_0_and_1
(self)
tests/test_config.py:77
Method
test_fields
(self)
tests/test_providers.py:95
Method
test_file_not_found
(self, mock_extract)
tests/test_pipeline_ingest.py:101
Method
test_first_provider_succeeds
(self, mock_call, mock_chain)
tests/test_generate.py:204
Function
test_flush_langfuse_calls_flush
()
tests/test_langfuse_tracer.py:97
Function
test_flush_langfuse_exception_silenced
()
tests/test_langfuse_tracer.py:106
Function
test_flush_langfuse_no_client
()
tests/test_langfuse_tracer.py:90
Method
test_full_pipeline_returns_counts
(self, mock_extract, mock_embed, mock_upsert)
tests/test_pipeline_ingest.py:13
Method
test_generate_no_langfuse_calls_run_pipeline
(self, mock_lf, mock_pipeline)
tests/test_generate.py:174
Method
test_generate_with_langfuse_calls_traced
(self, mock_lf, mock_traced)
tests/test_generate.py:187
Function
test_get_bm25_retriever
(mock_bm25_cls)
tests/test_bm25.py:84
Function
test_get_collection
(mock_embed, mock_chroma)
tests/test_chroma_client.py:39
Function
test_get_langfuse_client_already_failed
()
tests/test_langfuse_tracer.py:45
Function
test_get_langfuse_client_generic_error
(mock_cls)
tests/test_langfuse_tracer.py:80
Function
test_get_langfuse_client_import_error
(mock_cls)
tests/test_langfuse_tracer.py:69
Function
test_get_langfuse_client_not_configured
()
tests/test_langfuse_tracer.py:36
Function
test_get_langfuse_client_returns_cached
()
tests/test_langfuse_tracer.py:56
Function
test_get_vectorstore
(mock_embed, mock_chroma)
tests/test_chroma_client.py:137
Function
test_get_vectorstore_init
(mock_embed, mock_chroma)
tests/test_chroma_client.py:17
Function
test_get_vectorstore_singleton
(mock_embed, mock_chroma)
tests/test_chroma_client.py:28
Method
test_groq_client
(self, mock_chat_groq)
tests/test_providers.py:67
Method
test_groq_model_has_default
(self)
tests/test_config.py:36
Method
test_groq_model_is_valid_groq_model
(self)
tests/test_config.py:40
Method
test_groq_only
(self)
tests/test_providers.py:16
Method
test_handles_non_numeric_tokens
(self)
tests/test_generate.py:65
Method
test_handles_none_token_values
(self)
tests/test_generate.py:73
Method
test_handles_partial_tokens
(self)
tests/test_generate.py:56
Method
test_handles_usage_key_instead_of_token_usage
(self)
tests/test_generate.py:29
Function
test_has_chunks_false
(mock_embed, mock_chroma)
tests/test_chroma_client.py:103
Function
test_has_chunks_true
(mock_embed, mock_chroma)
tests/test_chroma_client.py:90
Function
test_langfuse_configured_false_missing_keys
()
tests/test_langfuse_tracer.py:28
Function
test_langfuse_configured_true
()
tests/test_langfuse_tracer.py:20
Function
test_load_all_chunks
(mock_embed, mock_chroma)
tests/test_chroma_client.py:68
Method
test_log_level_has_default
(self)
tests/test_config.py:33
Function
test_missing_citation_rejected
()
tests/test_citations.py:11
Method
test_no_chunks
(self, mock_extract, mock_chunk)
tests/test_pipeline_ingest.py:128
Method
test_no_keys_raises
(self)
tests/test_providers.py:46
Method
test_no_pages
(self, mock_extract)
tests/test_pipeline_ingest.py:113
Method
test_openai_client
(self, mock_chat_openai)
tests/test_providers.py:83
Method
test_pipeline_chains_steps_in_order
(self, mock_bm25, mock_vector, mock_rerank)
tests/test_retrieval_pipeline.py:15
Method
test_pipeline_creates_sources_from_chunks
Verify that sources are built from the retrieval chunks.
tests/test_generate.py:143
Method
test_pipeline_llm_receives_citation_prompt
Verify that _invoke_llm receives a prompt built from chunks.
tests/test_generate.py:128
Method
test_pipeline_passes_retrieval_result_to_prompt
Verify that chunks from retrieval are forwarded to build_citation_prompt.
tests/test_generate.py:113
Method
test_pipeline_raises_on_citation_validation_failure
Verify that an answer without [SOURCE N] raises ValidationError.
tests/test_generate.py:160
Method
test_preserves_order
(self)
tests/test_providers.py:56
Method
test_real_chunker_is_used
Verify that real chunk_pages runs, not a mock.
tests/test_pipeline_ingest.py:25
Function
test_rerank_basic
(mock_cls)
tests/test_cross_encoder.py:16
Function
test_rerank_empty_chunks
(mock_cls)
tests/test_cross_encoder.py:35
Method
test_rerank_error_wrapped
(self, mock_bm25, mock_vector, mock_rrf, mock_rerank)
tests/test_retrieval_pipeline.py:123
Function
test_rerank_inference_error
(mock_cls)
tests/test_cross_encoder.py:62
Function
test_rerank_invalid_top_k
()
tests/test_cross_encoder.py:41
Function
test_rerank_model_singleton
(mock_cls)
tests/test_cross_encoder.py:73
Function
test_rerank_with_threshold
(mock_cls)
tests/test_cross_encoder.py:48
Method
test_reranker_model_is_nonempty
(self)
tests/test_config.py:89
Function
test_reset_client
()
tests/test_chroma_client.py:127
Method
test_returns_none_when_empty_metadata
(self)
tests/test_generate.py:46
Method
test_returns_none_when_no_metadata
(self)
tests/test_generate.py:41
Method
test_returns_none_when_usage_not_dict
(self)
tests/test_generate.py:51
Method
test_returns_none_when_usage_not_dict_type
(self)
tests/test_generate.py:81
Function
test_rrf_bm25_only_chunks
()
tests/test_hybrid_fusion_extra.py:32
Method
test_rrf_deduplicates_overlapping_chunks
Real RRF fusion deduplicates chunks with the same chunk_id.
tests/test_retrieval_pipeline.py:64
Method
test_rrf_error_wrapped
(self, mock_bm25, mock_vector, mock_rrf)
tests/test_retrieval_pipeline.py:112
Method
test_rrf_fusion_is_called_with_real_function
Verify real rrf_fusion runs, not a mock.
tests/test_retrieval_pipeline.py:39
Function
test_rrf_has_score
()
tests/test_rrf.py:9
Method
test_rrf_k_is_positive
(self)
tests/test_config.py:74
Function
test_rrf_overlapping_chunk_ids
()
tests/test_hybrid_fusion_extra.py:6
Function
test_rrf_overlapping_uses_bm25_text
()
tests/test_hybrid_fusion_extra.py:17
Function
test_rrf_returns_top_k
()
tests/test_rrf.py:3
Method
test_rrf_scores_are_assigned
Real RRF fusion adds rrf_score to each chunk.
tests/test_retrieval_pipeline.py:80
Function
test_rrf_vector_only_chunks
()
tests/test_hybrid_fusion_extra.py:24
Method
test_single_provider_success
(self, mock_call, mock_chain)
tests/test_generate.py:254
Method
test_storage_error
(self, mock_extract, mock_chunk, mock_embed, mock_upsert)
tests/test_pipeline_ingest.py:148
Method
test_top_k_rerank_is_positive
(self)
tests/test_config.py:71
Method
test_unknown_provider_raises
(self)
tests/test_providers.py:88
Function
test_upsert_chunks
(mock_embed, mock_chroma)
tests/test_chroma_client.py:52
Function
test_usage_from_lc_response_no_metadata
()
tests/test_chain_utils.py:25
Function
test_usage_from_lc_response_non_numeric
()
tests/test_chain_utils.py:49
Function
test_usage_from_lc_response_none_metadata
()
tests/test_chain_utils.py:32
Function
test_usage_from_lc_response_partial_tokens
()
tests/test_chain_utils.py:39
Function
test_usage_from_lc_response_token_usage
()
tests/test_chain_utils.py:7
Function
test_usage_from_lc_response_usage_key
()
tests/test_chain_utils.py:16
Function
test_usage_from_lc_response_usage_not_dict
()
tests/test_chain_utils.py:77
Function
test_valid_citation_accepted
()
tests/test_citations.py:4
Function
test_validate_missing_groq_key
()
tests/test_config_validate.py:8
Function
test_validate_passes_with_key
()
tests/test_config_validate.py:20
Method
test_validate_passes_with_key
(self)
tests/test_config.py:46
← previous
next →
101–200 of 205, ranked by callers