pub struct RemoteVectorStoreConfig {
pub api_key: String,
pub endpoint: String,
pub collection: String,
pub dimension: usize,
pub metric: DistanceMetric,
pub pool_size: usize,
pub timeout_secs: u64,
}Expand description
远程向量存储配置
Fields§
§api_key: StringAPI 密钥
endpoint: StringAPI 端点 URL
collection: String集合/索引名称
dimension: usize向量维度
metric: DistanceMetric距离度量
pool_size: usize连接池大小
timeout_secs: u64请求超时(秒)
Implementations§
Source§impl RemoteVectorStoreConfig
impl RemoteVectorStoreConfig
Sourcepub fn pinecone_from_env() -> Layer3Result<Self>
pub fn pinecone_from_env() -> Layer3Result<Self>
从环境变量创建 Pinecone 配置
Sourcepub fn chroma_from_env() -> Layer3Result<Self>
pub fn chroma_from_env() -> Layer3Result<Self>
从环境变量创建 Chroma 配置
Sourcepub fn qdrant_from_env() -> Layer3Result<Self>
pub fn qdrant_from_env() -> Layer3Result<Self>
从环境变量创建 Qdrant 配置
Trait Implementations§
Source§impl Clone for RemoteVectorStoreConfig
impl Clone for RemoteVectorStoreConfig
Source§fn clone(&self) -> RemoteVectorStoreConfig
fn clone(&self) -> RemoteVectorStoreConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RemoteVectorStoreConfig
impl RefUnwindSafe for RemoteVectorStoreConfig
impl Send for RemoteVectorStoreConfig
impl Sync for RemoteVectorStoreConfig
impl Unpin for RemoteVectorStoreConfig
impl UnsafeUnpin for RemoteVectorStoreConfig
impl UnwindSafe for RemoteVectorStoreConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more