feature/insight-jobs #102
+3
-2
@@ -78,8 +78,9 @@ pub async fn embed_one(
|
|||||||
.pop()
|
.pop()
|
||||||
.ok_or_else(|| anyhow::anyhow!("llama-swap returned no embeddings"));
|
.ok_or_else(|| anyhow::anyhow!("llama-swap returned no embeddings"));
|
||||||
}
|
}
|
||||||
log::warn!(
|
anyhow::bail!(
|
||||||
"LLM_BACKEND=llamacpp but LlamaCppClient is unconfigured; falling back to Ollama embeddings"
|
"LLM_BACKEND=llamacpp but LlamaCppClient is unconfigured — \
|
||||||
|
set LLAMA_SWAP_URL or switch to LLM_BACKEND=ollama"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
ollama.generate_embedding(text).await
|
ollama.generate_embedding(text).await
|
||||||
|
|||||||
Reference in New Issue
Block a user