circuitforge-core/tests
pyr0ball 82f0b4c3d0
Some checks are pending
CI / test (push) Waiting to run
Mirror / mirror (push) Waiting to run
feat: cf_core.reranker — shared reranker module Phase 1 (#54)
Trunk + text branch + BGE adapter:
- base.py: Reranker Protocol, RerankResult (frozen dataclass), TextReranker
  base class with rerank() / rerank_batch() built on _score_pairs()
- adapters/mock.py: MockTextReranker — Jaccard scoring, no deps, deterministic
- adapters/bge.py: BGETextReranker — FlagEmbedding cross-encoder, thread-safe,
  batched forward pass via rerank_batch(); graceful ImportError if dep missing
- __init__.py: rerank() singleton, make_reranker(), reset_reranker();
  CF_RERANKER_MODEL / CF_RERANKER_BACKEND / CF_RERANKER_MOCK env vars
- pyproject.toml: reranker-bge and reranker-qwen3 optional dep groups
- 20 tests, all passing

Architecture ready for Phase 2 (Qwen3TextReranker) and Phase 3 (cf-orch remote
backend). ImageReranker/AudioReranker branches stubbed in base.py docstring.
2026-04-21 12:25:01 -07:00
..
community feat(community): add SharedStore base class with typed pg read/write methods 2026-04-12 22:03:27 -07:00
test_activitypub feat: add activitypub module — actor, objects, signing, delivery, Lemmy, inbox (closes #51) 2026-04-20 13:18:03 -07:00
test_affiliates test: affiliates integration tests — full wrap_url round-trip 2026-04-04 18:28:27 -07:00
test_api fix: raise 502 on label creation failure; narrow subprocess exception scope 2026-04-05 17:36:52 -07:00
test_audio feat: audio module, musicgen tests, SQLCipher PRAGMA hardening 2026-04-20 11:10:49 -07:00
test_config feat: add CF_LICENSE_KEY validation via Heimdall (closes #26) 2026-04-05 21:16:57 -07:00
test_documents feat: hardware detection, cf-docuvision service, documents ingestion pipeline 2026-04-02 18:53:25 -07:00
test_hardware feat: hardware detection, cf-docuvision service, documents ingestion pipeline 2026-04-02 18:53:25 -07:00
test_job_quality feat: add job_quality deterministic trust scorer (closes #48) 2026-04-20 13:02:57 -07:00
test_manage feat: manage.py cross-platform product manager (closes #6) 2026-04-02 23:04:35 -07:00
test_musicgen feat: audio module, musicgen tests, SQLCipher PRAGMA hardening 2026-04-20 11:10:49 -07:00
test_pipeline feat: v0.9.0 — cf-text, pipeline crystallization engine, multimodal pipeline, a11y preferences 2026-04-08 23:17:18 -07:00
test_reranker feat: cf_core.reranker — shared reranker module Phase 1 (#54) 2026-04-21 12:25:01 -07:00
test_tasks refactor: replace coordinator-aware TaskScheduler with Protocol + LocalScheduler (MIT); update LLMRouter import path 2026-04-04 22:26:06 -07:00
test_text feat(text): add OpenAI-compat /v1/chat/completions endpoint 2026-04-12 17:04:58 -07:00
test_vision feat: cf-vision managed service (#43) 2026-04-09 06:53:43 -07:00
__init__.py feat: scaffold circuitforge-core package 2026-03-25 11:02:26 -07:00
test_db.py feat: audio module, musicgen tests, SQLCipher PRAGMA hardening 2026-04-20 11:10:49 -07:00
test_llm_router.py refactor: update LLMRouter lazy import — circuitforge_core.resources.client → circuitforge_orch.client 2026-04-04 22:16:17 -07:00
test_preferences.py feat: add currency_code preference + format_currency utility (closes #52) 2026-04-20 13:06:04 -07:00
test_stubs.py feat: add wizard and pipeline stubs 2026-03-25 11:09:40 -07:00
test_tiers.py feat: add generalised tier system with BYOK and local vision unlocks 2026-03-25 11:04:55 -07:00