Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DONT MERGE] PoC spanish embeddings #478

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ impl JobManager {
}
}

// TODO: add this back under a flag
// println!(
// "\n\n\nDone Vector Searching: {}\n------------------------------------------------",
// query_text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl VectorFSInternals {
pub async fn new_empty() -> Self {
let node_name = ShinkaiName::from_node_name("@@node1_test.shinkai".to_string()).unwrap();
let default_embedding_model =
EmbeddingModelType::OllamaTextEmbeddingsInference(OllamaTextEmbeddingsInference::SnowflakeArcticEmbed_M);
EmbeddingModelType::OllamaTextEmbeddingsInference(OllamaTextEmbeddingsInference::JinaEmbeddingsV2BaseEs);
let supported_embedding_models = vec![default_embedding_model.clone()];
Self::new(node_name, default_embedding_model, supported_embedding_models).await
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ impl RemoteEmbeddingGenerator {
/// Create a RemoteEmbeddingGenerator that uses the default model and server
pub fn new_default() -> RemoteEmbeddingGenerator {
let model_architecture =
EmbeddingModelType::OllamaTextEmbeddingsInference(OllamaTextEmbeddingsInference::SnowflakeArcticEmbed_M);
EmbeddingModelType::OllamaTextEmbeddingsInference(OllamaTextEmbeddingsInference::JinaEmbeddingsV2BaseEs);
RemoteEmbeddingGenerator {
model_type: model_architecture,
api_url: DEFAULT_EMBEDDINGS_SERVER_URL.to_string(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ impl DocumentVectorResource {
Embedding::new(&String::new(), vec![]),
Vec::new(),
Vec::new(),
EmbeddingModelType::OllamaTextEmbeddingsInference(OllamaTextEmbeddingsInference::SnowflakeArcticEmbed_M),
EmbeddingModelType::OllamaTextEmbeddingsInference(OllamaTextEmbeddingsInference::JinaEmbeddingsV2BaseEs),
is_merkelized,
DistributionInfo::new_empty(),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ impl MapVectorResource {
Embedding::new(&String::new(), vec![]),
HashMap::new(),
HashMap::new(),
EmbeddingModelType::OllamaTextEmbeddingsInference(OllamaTextEmbeddingsInference::SnowflakeArcticEmbed_M),
EmbeddingModelType::OllamaTextEmbeddingsInference(OllamaTextEmbeddingsInference::JinaEmbeddingsV2BaseEs),
is_merkelized,
DistributionInfo::new_empty(),
)
Expand Down
Loading