ALL-205: Make reranker health, startup, and installer config provider-aware#212
ALL-205: Make reranker health, startup, and installer config provider-aware#212christabone wants to merge 6 commits intomainfrom
Conversation
PR Review: ALL-205 — Make reranker health, startup, and installer config provider-awareSummaryThis PR introduces a BLOCKING1. Comment uses prohibited word "fallback" # - default: Fallback when the env var is unsetPer project rules, comments containing the word "fallback" are flagged as blocking regardless of intent. Reword the comment. Suggested fix: # - default: Value assumed when the env var is unsetWarnings1. Default value for rerank_provider = os.environ.get("RERANK_PROVIDER", "bedrock_cohere").strip().lower()
default: bedrock_cohere
DEFAULT_RERANK_PROVIDER="bedrock_cohere"
The string 2. Duplicated shell functions across installer scripts Suggestions1. Logging in What looks good
Overall AssessmentThis is a well-structured PR. One blocking comment wording issue to fix, and some duplication to consider consolidating. The core logic is sound and well-tested. Need help? Comment |
|
@claude Please review these recent changes.
|
Re-review: ALL-205 — Make reranker health, startup, and installer config provider-aware
Status of previously flagged issues1. BLOCKING (now resolved): "fallback" comment wording 2. Warning (still open): Default value
Not blocking, but a future source of drift. 3. Warning (still open): Duplicated shell functions New changes in
|
|
@claude Please review these recent changes.
|
TL;DR
bedrock_cohereas the standalone default.Summary
config/connections.yamland aligns backend startup health handling withRERANK_PROVIDER.RERANK_PROVIDER,BEDROCK_RERANK_MODEL_ARN, andRERANKER_URL, and moves provider-specific warnings to stages that already know the selected provider.Test Plan
docker compose -f docker-compose.test.yml run --rm backend-unit-tests bash -lc "python -m pytest tests/unit/api/test_auth_api.py tests/unit/api/test_auth_api_endpoints.py tests/unit/api/test_chat_execute_flow_endpoint.py tests/unit/api/test_flow_evidence_export.py tests/unit/api/test_flows_api.py tests/unit/api/test_flows_endpoints.py tests/unit/lib/pdf_viewer/test_rapidfuzz_matcher.py -v --tb=short"docker compose -f docker-compose.test.yml run --rm backend-unit-tests bash -lc "python -m pytest tests/unit/test_config_loaders.py tests/unit/test_main_startup.py -v --tb=short"cd frontend && npm run test -- --run src/features/curation/evidence/useEvidenceNavigation.test.tscd frontend && npm run test -- --runManual validation checklist
HEALTH_CHECK_STRICT_MODE=trueand no local reranker container present.local_transformersmode starts cleanly withHEALTH_CHECK_STRICT_MODE=trueand the local reranker container present.nonemode starts cleanly withHEALTH_CHECK_STRICT_MODE=trueand no local reranker container present.