Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/core/embeddings.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use anyhow::{Context, Result};
use std::num::NonZeroU32;
use std::path::Path;
use std::sync::Once;

Expand Down Expand Up @@ -78,6 +79,7 @@ impl EmbeddingEngine {
.unwrap_or(4);

let ctx_params = LlamaContextParams::default()
.with_n_ctx(Some(NonZeroU32::new(self.n_ctx as u32).unwrap()))
.with_n_threads_batch(n_threads)
.with_n_threads(n_threads)
.with_embeddings(true);
Expand Down
Loading