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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user