diff --git a/nucliadb_core/src/vectors.rs b/nucliadb_core/src/vectors.rs
index c850fcc05a..c0e1a03a21 100644
--- a/nucliadb_core/src/vectors.rs
+++ b/nucliadb_core/src/vectors.rs
@@ -18,22 +18,25 @@
// along with this program. If not, see .
//
+use std::collections::HashMap;
use std::collections::HashSet;
use std::path::PathBuf;
+use nucliadb_protos::nodereader;
+use nucliadb_protos::utils;
use uuid::Uuid;
use crate::metrics::vectors::MergeSource;
use crate::prelude::*;
-use crate::protos::*;
use crate::query_language::BooleanExpression;
use crate::Channel;
use crate::IndexFiles;
+use nucliadb_protos::noderesources;
pub type VectorsReaderPointer = Box;
pub type VectorsWriterPointer = Box;
-pub type ProtosRequest = VectorSearchRequest;
-pub type ProtosResponse = VectorSearchResponse;
+pub type ProtosRequest = nodereader::VectorSearchRequest;
+pub type ProtosResponse = nodereader::VectorSearchResponse;
#[derive(Debug, Clone, Copy)]
pub struct MergeParameters {
@@ -49,7 +52,7 @@ pub struct MergeContext {
#[derive(Clone)]
pub struct VectorConfig {
- pub similarity: VectorSimilarity,
+ pub similarity: utils::VectorSimilarity,
pub path: PathBuf,
pub channel: Channel,
pub shard_id: String,
@@ -94,9 +97,65 @@ pub trait VectorWriter: std::fmt::Debug + Send + Sync {
fn prepare_merge(&self, parameters: MergeParameters) -> NodeResult