Skip to content

test(kb): regression guard for BibTeX-KB local-embedding routing#23

Merged
lfnothias merged 1 commit into
mainfrom
test/bibtex-kb-local-embeddings
Jun 19, 2026
Merged

test(kb): regression guard for BibTeX-KB local-embedding routing#23
lfnothias merged 1 commit into
mainfrom
test/bibtex-kb-local-embeddings

Conversation

@lfnothias

Copy link
Copy Markdown
Collaborator

Ports the regression test from the now-closed #13 (whose code fix already landed on main via 464a34c).

Locks the local-first behaviour: both bibtex_kb builders must route embeddings through create_embedding_provider, so a local model (e.g. the default all-MiniLM-L6-v2) uses the SentenceTransformerEmbeddingProvider rather than being sent to LiteLLM (which raised "LLM Provider NOT provided" → 0-chunk KBs). Directly relevant to local-only setups.

Test Plan

  • tests/unit/test_bibtex_kb_local_embeddings.py — 4 passed on current main (local→SentenceTransformer, api→LiteLLM, api+fallback→Fallback, and a source-inspection guard that neither builder hardcodes LiteLLMEmbeddingProvider)

🤖 Generated with Claude Code

Locks the fix in 464a34c: bibtex_kb builders must route through
create_embedding_provider so local models (e.g. all-MiniLM-L6-v2) use the
SentenceTransformer provider instead of being sent to LiteLLM (which raised
"LLM Provider NOT provided" and produced 0-chunk KBs). Test ported from the
now-superseded #13.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@lfnothias lfnothias merged commit b022f99 into main Jun 19, 2026
1 of 2 checks passed
@lfnothias lfnothias deleted the test/bibtex-kb-local-embeddings branch June 19, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant