From 93436f9ecaef17ed72d57bad76ef88671e640145 Mon Sep 17 00:00:00 2001 From: altair823 Date: Mon, 25 May 2026 21:42:07 +0000 Subject: [PATCH] =?UTF-8?q?feat(nli):=20fb-41=20PR-9b=20prep=20=E2=80=94?= =?UTF-8?q?=20activate=20ort/tokenizers/hf-hub/ndarray/tracing=20deps=20in?= =?UTF-8?q?=20kebab-nli?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-9a 의 workspace.dependencies 만 declared 였던 5 crate 의존을 kebab-nli/Cargo.toml 에 활성화. PR-9b 의 OnnxNliVerifier 실 구현이 본 commit 위에서 빌드 가능. Co-Authored-By: Claude Opus 4.7 (1M context) --- Cargo.lock | 5 +++++ crates/kebab-nli/Cargo.toml | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 91c7e4a..997f3cc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4332,9 +4332,14 @@ name = "kebab-nli" version = "0.17.2" dependencies = [ "anyhow", + "hf-hub", "kebab-config", + "ndarray", + "ort", "serde", "tempfile", + "tokenizers", + "tracing", ] [[package]] diff --git a/crates/kebab-nli/Cargo.toml b/crates/kebab-nli/Cargo.toml index 7336062..5e52ae1 100644 --- a/crates/kebab-nli/Cargo.toml +++ b/crates/kebab-nli/Cargo.toml @@ -8,13 +8,17 @@ repository = { workspace = true } description = "fb-41: NLI-based post-synthesis verification (XNLI mDeBERTa-v3). PR-9a = trait + scaffolding; ONNX inference lands in PR-9b." [dependencies] -# PR-9a scope: kebab-config for the OnnxNliVerifier::new(&Config) signature -# the rag crate will call once PR-9d wires verification into ask_multi_hop. -# ort / tokenizers / hf-hub / ndarray are intentionally NOT depended on here -# — they sit in workspace.dependencies until PR-9b adds the real adapter. +# PR-9b: ONNX inference path activated. ort / tokenizers / hf-hub / ndarray +# all source from `[workspace.dependencies]` so the workspace pins a single +# version + feature set for the whole NLI + embed stack. kebab-config = { path = "../kebab-config" } anyhow = { workspace = true } serde = { workspace = true } +ort = { workspace = true } +tokenizers = { workspace = true } +hf-hub = { workspace = true } +ndarray = { workspace = true } +tracing = { workspace = true } [dev-dependencies] tempfile = { workspace = true }