pub struct EmbeddingScorer { /* private fields */ }Expand description
Back-compat re-exports: keep external scc_cli::embed_cli:: paths
compiling during migration (single implementation in the engine).
Fuses stored entity embeddings with the embedded goal. Vectors are
preloaded once per pack generation.
Implementations§
Source§impl EmbeddingScorer
impl EmbeddingScorer
pub fn from_vectors( goal_vector: Vec<f32>, vectors: HashMap<String, Vec<f32>>, ) -> EmbeddingScorer
pub fn new( goal: &str, cfg: &EmbedConfig, store: &Store, ) -> Result<EmbeddingScorer, String>
Trait Implementations§
Source§impl SemanticScorer for EmbeddingScorer
impl SemanticScorer for EmbeddingScorer
Auto Trait Implementations§
impl Freeze for EmbeddingScorer
impl RefUnwindSafe for EmbeddingScorer
impl Send for EmbeddingScorer
impl Sync for EmbeddingScorer
impl Unpin for EmbeddingScorer
impl UnsafeUnpin for EmbeddingScorer
impl UnwindSafe for EmbeddingScorer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more