WIP 5 add image embedding provider (local only for now)

This commit is contained in:
Maxime Van Hees
2025-09-29 16:14:34 +02:00
parent 4aa49e0d5c
commit 7d07b57d32
3 changed files with 98 additions and 1 deletions

View File

@@ -996,6 +996,7 @@ impl RpcServer for RpcServerImpl {
}
let prov = match provider.to_lowercase().as_str() {
"test-hash" | "testhash" => EmbeddingProvider::TestHash,
"testimagehash" | "image-test-hash" | "imagetesthash" => EmbeddingProvider::ImageTestHash,
"fastembed" | "lancefastembed" => EmbeddingProvider::LanceFastEmbed,
"openai" | "lanceopenai" => EmbeddingProvider::LanceOpenAI,
other => EmbeddingProvider::LanceOther(other.to_string()),
@@ -1030,6 +1031,7 @@ impl RpcServer for RpcServerImpl {
Ok(serde_json::json!({
"provider": match cfg.provider {
EmbeddingProvider::TestHash => "test-hash",
EmbeddingProvider::ImageTestHash => "testimagehash",
EmbeddingProvider::LanceFastEmbed => "lancefastembed",
EmbeddingProvider::LanceOpenAI => "lanceopenai",
EmbeddingProvider::LanceOther(ref s) => s,