Trait ragtime::llama::LlamaEmbedModel

source ·
pub trait LlamaEmbedModel: Default {
    type EmbedPrompt: FormattedPrompt;
    type SearchPrompt: FormattedPrompt;

    // Required method
    fn get_embedding(
        &mut self,
        ctx: &mut LlamaContext<'_>,
        i: i32,
    ) -> Result<Vec<f32>>;
}

Required Associated Types§

Required Methods§

source

fn get_embedding( &mut self, ctx: &mut LlamaContext<'_>, i: i32, ) -> Result<Vec<f32>>

Object Safety§

This trait is not object safe.

Implementors§