pub struct Collection {
pub id: String,
pub name: String,
pub dim: usize,
/* private fields */
}Expand description
A named vector collection
Fields§
§id: String§name: String§dim: usizeImplementations§
Source§impl Collection
impl Collection
Sourcepub fn upsert(&self, entry: VectorEntry) -> Result<()>
pub fn upsert(&self, entry: VectorEntry) -> Result<()>
Insert or update a single vector
Sourcepub fn upsert_batch(&self, entries: Vec<BatchEntry>) -> Result<usize>
pub fn upsert_batch(&self, entries: Vec<BatchEntry>) -> Result<usize>
Insert or update multiple vectors in a single transaction
Sourcepub fn search(
&self,
query: &[f32],
opts: SearchOptions,
) -> Result<Vec<SearchResult>>
pub fn search( &self, query: &[f32], opts: SearchOptions, ) -> Result<Vec<SearchResult>>
ANN search with optional advanced metadata filtering
Auto Trait Implementations§
impl !Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnsafeUnpin for Collection
impl UnwindSafe for Collection
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