feat: bump version to 0.1.8 and update FastEmbedAdapter constructor return type
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -1775,7 +1775,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "k-core"
|
name = "k-core"
|
||||||
version = "0.1.7"
|
version = "0.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-nats",
|
"async-nats",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "k-core"
|
name = "k-core"
|
||||||
version = "0.1.7"
|
version = "0.1.8"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ pub struct FastEmbedAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl FastEmbedAdapter {
|
impl FastEmbedAdapter {
|
||||||
pub fn new() -> DomainResult<Self> {
|
pub fn new() -> anyhow::Result<Self> {
|
||||||
let mut options = InitOptions::default();
|
let mut options = InitOptions::default();
|
||||||
options.model_name = EmbeddingModel::AllMiniLML6V2;
|
options.model_name = EmbeddingModel::AllMiniLML6V2;
|
||||||
options.show_download_progress = false;
|
options.show_download_progress = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user