Native DeepSeek datasheet extraction in periscope/src (Fase C3).

Pipeline and LCSC resolve call datasheet_extract; inherited extraction.py
stays in dependency as fallback. No Anthropic Console skill ids.
This commit is contained in:
2026-09-20 15:26:21 +02:00
parent a96ee2e88a
commit 5c0c5184fb
11 changed files with 1351 additions and 18 deletions
+4 -4
View File
@@ -52,12 +52,12 @@ def test_ambiguous_string_returns_none():
def test_resolve_from_value_skips_llm_when_parseable(monkeypatch):
from backend.services.extraction import resolve_from_value
from backend.services.datasheet_extract import resolve_from_value
async def boom(*_a, **_k):
raise AssertionError("LLM must not run")
monkeypatch.setattr("backend.services.extraction.call_with_fallback", boom)
monkeypatch.setattr("backend.services.datasheet_extract.call_with_fallback", boom)
tax = TAXONOMY
model = asyncio.run(
resolve_from_value(
@@ -71,12 +71,12 @@ def test_resolve_from_value_skips_llm_when_parseable(monkeypatch):
def test_resolve_from_value_placeholder_no_llm(monkeypatch):
from backend.services.extraction import resolve_from_value
from backend.services.datasheet_extract import resolve_from_value
async def boom(*_a, **_k):
raise AssertionError("LLM must not run")
monkeypatch.setattr("backend.services.extraction.call_with_fallback", boom)
monkeypatch.setattr("backend.services.datasheet_extract.call_with_fallback", boom)
tax = TAXONOMY
with pytest.raises(ValueError, match="Placeholder"):
asyncio.run(