Use a WithoutTls env

This commit is contained in:
Kerollmops 2025-03-11 15:33:10 +01:00
parent ff8cf38d6b
commit bef5954741
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
2 changed files with 3 additions and 1 deletions

View file

@ -340,7 +340,8 @@ impl SearchKind {
vector_len: Option<usize>,
route: Route,
) -> Result<(String, Arc<Embedder>, bool), ResponseError> {
let embedder_configs = index.embedding_configs(&index.read_txn()?)?;
let rtxn = index.read_txn()?;
let embedder_configs = index.embedding_configs(&rtxn)?;
let embedders = index_scheduler.embedders(index_uid, embedder_configs)?;
let (embedder, _, quantized) = embedders