Use measured query-only context across desktop CLI and MCP
This commit is contained in:
1 parent
95c72c5fd4
commit
88cd9c7f5a
12 files changed
+582
-20
No files matched your search
@@ -314,6 +314,17 @@ impl HybridSearch {
|
||||
Self::with_provider(db, Box::new(embedder))
|
||||
}
|
||||
|
||||
/// Foreground-only Google session. Indexing must use `open` instead.
|
||||
pub fn open_query(
|
||||
db: impl AsRef<Path>,
|
||||
model_dir: impl AsRef<Path>,
|
||||
runtime_library: impl AsRef<Path>,
|
||||
threads: usize,
|
||||
) -> Result<Self> {
|
||||
let embedder = GemmaEmbedder::load_query(model_dir, runtime_library, threads)?;
|
||||
Self::with_provider(db, Box::new(embedder))
|
||||
}
|
||||
|
||||
/// Explicit provider injection for future model generations, never fallback.
|
||||
pub fn with_provider(
|
||||
db: impl AsRef<Path>,
|
||||
|
||||
Reference in new issue
Block a user