pub struct TextEmbedding { /* private fields */ }
Expand description
The natural language processing task to perform.
Implementations§
Source§impl TextEmbedding
impl TextEmbedding
Sourcepub fn new<T, U>(model_id: T, model_text: U) -> Self
pub fn new<T, U>(model_id: T, model_text: U) -> Self
Creates an instance of TextEmbedding
model_id
- The ID of the text embedding model to use to generate the dense vectors from the query string. Use the same model that generated the embeddings from the input text in the index you search against. You can use the value of the deployment_id instead in the model_id argument.model_text
- The query string from which the model generates the dense vector representation.
Trait Implementations§
Source§impl Clone for TextEmbedding
impl Clone for TextEmbedding
Source§fn clone(&self) -> TextEmbedding
fn clone(&self) -> TextEmbedding
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TextEmbedding
impl Debug for TextEmbedding
Source§impl From<TextEmbedding> for QueryVectorBuilder
impl From<TextEmbedding> for QueryVectorBuilder
Source§fn from(embedding: TextEmbedding) -> Self
fn from(embedding: TextEmbedding) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TextEmbedding
impl PartialEq for TextEmbedding
Source§impl Serialize for TextEmbedding
impl Serialize for TextEmbedding
impl StructuralPartialEq for TextEmbedding
Auto Trait Implementations§
impl Freeze for TextEmbedding
impl RefUnwindSafe for TextEmbedding
impl Send for TextEmbedding
impl Sync for TextEmbedding
impl Unpin for TextEmbedding
impl UnwindSafe for TextEmbedding
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