feat(search): add calibrated retrieval and LangChain knowledge tool

Add exact and semantic evidence admission, measured calibration, bounded tool execution, and independent held-out evaluation preparation with regression coverage and operator guides. Real-provider quality gates remain pending.

Validation: 1300 provider-free tests passed; 3 Windows symlink skips. PostgreSQL acceptance not rerun because TEST_DATABASE_URL is unset.
This commit is contained in:
amirhosein mazaheri
2026-10-08 12:58:59 +03:30
parent 4d36f2ba35
commit fef381c41b
36 changed files with 6679 additions and 45 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ def publish(engine, settings, root, user, evidence=EVIDENCE):
root = Path(root)
root.mkdir(parents=True, exist_ok=True)
source = root / "pump.md"
source.write_text(evidence, encoding="utf-8")
source.write_text(evidence, encoding="utf-8", newline="\n")
store = LocalFileStore(root / "originals")
candidates = LocalExtractionCandidates(root / "extractions", original_directory=store.directory)
document = import_document(SqlIntakeRepository(engine), store, settings, path=source,