We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ExtractEmbeddableTrait
pub trait Embed { fn embed(&self, embedder: &mut Embedder) -> Result<(), EmbedError>; } #[derive(Default)] pub struct Embedder { pub texts: Vec<String>, } impl Embedder { pub fn embed(&mut self, text: String) { self.texts.push(text); } }
build()
rig::to_embed(item: impl Embed) -> Vec<String>
EmbeddingsBuilder.documents()
The text was updated successfully, but these errors were encountered:
Closed by #120
Sorry, something went wrong.
marieaurore123
No branches or pull requests
ExtractEmbeddableTrait
to:build()
method, catch errors about exceeding token limitrig::to_embed(item: impl Embed) -> Vec<String>
functionEmbeddingsBuilder.documents()
must take an iteratorThe text was updated successfully, but these errors were encountered: