pub struct CohereEmbeddingsConfig {
pub api_key: String,
pub model: String,
pub input_type: CohereInputType,
pub query_input_type: CohereInputType,
pub base_url: String,
}Expand description
Configuration for CohereEmbeddings.
Fields§
§api_key: String§model: StringModel name (default: "embed-english-v3.0").
input_type: CohereInputTypeInput type for document embedding (default: SearchDocument).
query_input_type: CohereInputTypeQuery input type (default: SearchQuery).
base_url: StringBase URL (default: "https://api.cohere.ai/v2").
Implementations§
Source§impl CohereEmbeddingsConfig
impl CohereEmbeddingsConfig
pub fn new(api_key: impl Into<String>) -> Self
pub fn with_model(self, model: impl Into<String>) -> Self
pub fn with_input_type(self, input_type: CohereInputType) -> Self
pub fn with_base_url(self, base_url: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for CohereEmbeddingsConfig
impl Clone for CohereEmbeddingsConfig
Source§fn clone(&self) -> CohereEmbeddingsConfig
fn clone(&self) -> CohereEmbeddingsConfig
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CohereEmbeddingsConfig
impl RefUnwindSafe for CohereEmbeddingsConfig
impl Send for CohereEmbeddingsConfig
impl Sync for CohereEmbeddingsConfig
impl Unpin for CohereEmbeddingsConfig
impl UnsafeUnpin for CohereEmbeddingsConfig
impl UnwindSafe for CohereEmbeddingsConfig
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