kebab-config: EmbeddingModelCfg.endpoint: Option<String>(serde default, ollama용, None→models.llm.endpoint 폴백) + provider 문서에 ollama + env KEBAB_MODELS_EMBEDDING_ENDPOINT. kebab-app embedder(): provider match 에 ollama 분기(facade 경유). workspace member += kebab-embed-ollama, app dep 추가. version 0.25.0 → 0.26.0(minor, +Cargo.lock) — 신규 임베딩 백엔드/모델은 CLAUDE.md §Release 의 surface 변경 트리거. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
109 lines
5.4 KiB
TOML
109 lines
5.4 KiB
TOML
[package]
|
|
name = "kebab-app"
|
|
version = { workspace = true }
|
|
edition = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
license = { workspace = true }
|
|
repository = { workspace = true }
|
|
description = "Facade — orchestrates components for kb-cli/tui/desktop"
|
|
|
|
[dependencies]
|
|
kebab-core = { path = "../kebab-core" }
|
|
kebab-config = { path = "../kebab-config" }
|
|
kebab-source-fs = { path = "../kebab-source-fs" }
|
|
kebab-parse-md = { path = "../kebab-parse-md" }
|
|
kebab-chunk = { path = "../kebab-chunk" }
|
|
kebab-store-sqlite = { path = "../kebab-store-sqlite" }
|
|
kebab-store-vector = { path = "../kebab-store-vector" }
|
|
kebab-search = { path = "../kebab-search" }
|
|
kebab-embed = { path = "../kebab-embed" }
|
|
kebab-embed-local = { path = "../kebab-embed-local" }
|
|
kebab-embed-candle = { path = "../kebab-embed-candle" }
|
|
kebab-embed-ollama = { path = "../kebab-embed-ollama" }
|
|
kebab-llm = { path = "../kebab-llm" }
|
|
kebab-llm-local = { path = "../kebab-llm-local" }
|
|
kebab-rag = { path = "../kebab-rag" }
|
|
# p9-fb-41 PR-9c-2: facade construction of OnnxNliVerifier when
|
|
# `[rag] nli_threshold > 0`. Trait-only consumption via kebab-rag's
|
|
# `with_verifier`; no kebab-nli internals leak into kebab-app code
|
|
# beyond the construction site in `open_with_config`.
|
|
kebab-nli = { path = "../kebab-nli" }
|
|
# P6-4: image extractor + OCR + caption adapters live here. App
|
|
# threads them into the per-asset dispatch (see `ingest_one_asset`
|
|
# image branch). Trait-only consumption — no `kebab-parse-image`
|
|
# internals leak into kb-app code.
|
|
kebab-parse-image = { path = "../kebab-parse-image" }
|
|
# P7-3: PDF text extractor lives here. App threads it into the
|
|
# per-asset dispatch (see `ingest_one_asset` PDF branch) and runs the
|
|
# resulting `CanonicalDocument` through `kebab-chunk::PdfPageV1Chunker`.
|
|
kebab-parse-pdf = { path = "../kebab-parse-pdf" }
|
|
lopdf = { workspace = true }
|
|
# Enhancement 1 (v0.20.x r2): JPEG dimension decode in pdf_ocr_apply.rs.
|
|
# jpeg feature added explicitly (F3 closure-r1) rather than relying on
|
|
# feature unification via kebab-parse-image.
|
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg"] }
|
|
# p10-1A-2: Rust AST extractor lives here. App threads it into the
|
|
# per-asset dispatch (see `ingest_one_asset` Code branch) and runs the
|
|
# resulting `CanonicalDocument` through `kebab-chunk::CodeRustAstV1Chunker`.
|
|
kebab-parse-code = { path = "../kebab-parse-code" }
|
|
anyhow = { workspace = true }
|
|
blake3 = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
time = { workspace = true }
|
|
uuid = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "json"] }
|
|
tracing-appender = "0.2"
|
|
toml = "0.8"
|
|
dirs = "5"
|
|
# p9-fb-19: in-process LRU cache for `App::search`. Capacity from
|
|
# `config.search.cache_capacity` (default 256, ~1.3 MB cap).
|
|
lru = { workspace = true }
|
|
# p9-fb-19: NFKC-normalize cache-key queries so `"Foo"` / `"FOO"` /
|
|
# `" foo "` collapse to one entry. Same crate kebab-normalize +
|
|
# kebab-core already use, no version drift.
|
|
unicode-normalization = "0.1"
|
|
# p9-fb-31: GitignoreBuilder for .kebabignore matching in ingest_file_with_config.
|
|
# Same version as kebab-source-fs (0.4) to avoid duplicate dep versions.
|
|
ignore = "0.4"
|
|
# p9-fb-34: opaque pagination cursor encodes payload as base64.
|
|
base64 = { workspace = true }
|
|
# Enhancement 3 (v0.20.x r2): direct SQL queries for inspect_ocr_stats/failures.
|
|
rusqlite = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
kebab-config = { path = "../kebab-config" }
|
|
# doc-side expansion (Phase 2) Task 4: ExpansionGenerator unit tests build
|
|
# MockLanguageModel (gated behind kebab-llm's `mock` feature, default OFF in
|
|
# [dependencies]). Enabling it here turns it on for the test build only.
|
|
kebab-llm = { path = "../kebab-llm", features = ["mock"] }
|
|
rusqlite = { workspace = true }
|
|
filetime = "0.2"
|
|
tempfile = { workspace = true }
|
|
# Image-pipeline integration tests use wiremock to stub Ollama for OCR
|
|
# / caption HTTP calls. Async runtime to host the mock server only;
|
|
# the kb-app code under test stays sync.
|
|
wiremock = { workspace = true }
|
|
tokio = { workspace = true, features = ["rt-multi-thread"] }
|
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg"] }
|
|
# P7-3 PDF integration tests build in-memory PDF fixtures via the same
|
|
# lopdf builder pattern `kebab-parse-pdf::tests::common` uses; pinned
|
|
# to the same major (0.32) so byte output is identical between the two
|
|
# fixture surfaces.
|
|
lopdf = { workspace = true }
|
|
# error_wire::tests::llm_unreachable_classifies_to_model_unreachable needs a real
|
|
# reqwest::Error (private constructor) — built from a connect-refused call.
|
|
reqwest = { version = "0.12", default-features = false, features = ["blocking", "rustls-tls"] }
|
|
|
|
[features]
|
|
# Marker feature — spec §6.3 Option A (단순): lindera 는 kebab-chunk 가 default dep 으로 소유.
|
|
# disable path 없음; 이 feature 는 spec §6.3 명시를 honor 하는 role 만.
|
|
default = ["fts_korean_morphological"]
|
|
fts_korean_morphological = []
|
|
# opt-in (macOS): candle embedder runs on the Apple Silicon GPU. See kebab-embed-candle.
|
|
embed_metal = ["kebab-embed-candle/metal"]
|
|
|
|
[lints]
|
|
workspace = true
|