feat: complete catalog-driven preprocessing
Publish documentation / publish (push) Successful in 2m12s
Publish documentation / publish (push) Successful in 2m12s
This commit is contained in:
@@ -36,7 +36,7 @@ class _FakeSearcher:
|
||||
metadata={"session_id": "2026-01-01-000000-x", "sql": "SELECT 1",
|
||||
"tables": ["fact_ablazione"], "question": "quanti pazienti nel 2024?"},
|
||||
)]
|
||||
if kinds == ["schema_table", "schema_column"]:
|
||||
if kinds == ["schema_table", "schema_column", "schema_relationship"]:
|
||||
return [SimpleNamespace(
|
||||
kind="schema_table", ref="fact_ablazione", id="t1",
|
||||
title="Tabella fact_ablazione", similarity=0.88,
|
||||
@@ -128,7 +128,7 @@ def test_pack_single_embed_and_sections(tmp_path, monkeypatch):
|
||||
assert res.exit_code == 0, res.output
|
||||
assert emb.calls == 2 # schema/memory share one; Evidence embeds its own deterministic text
|
||||
assert [call["kinds"] for call in searcher.calls] == [
|
||||
["schema_table", "schema_column"],
|
||||
["schema_table", "schema_column", "schema_relationship"],
|
||||
["solved_question"],
|
||||
]
|
||||
assert "fact_ablazione" in res.output and "Ablazioni" in res.output
|
||||
|
||||
Reference in New Issue
Block a user