pub struct IntegratedVectorStore { /* private fields */ }Expand description
Integrated vector store with advanced capabilities
Implementations§
Source§impl IntegratedVectorStore
impl IntegratedVectorStore
pub fn new( config: StoreIntegrationConfig, embedding_strategy: EmbeddingStrategy, ) -> Result<Self>
Sourcepub fn begin_transaction(
&self,
isolation_level: IsolationLevel,
) -> Result<TransactionId>
pub fn begin_transaction( &self, isolation_level: IsolationLevel, ) -> Result<TransactionId>
Begin a new transaction
Sourcepub fn commit_transaction(&self, transaction_id: TransactionId) -> Result<()>
pub fn commit_transaction(&self, transaction_id: TransactionId) -> Result<()>
Commit a transaction
Sourcepub fn abort_transaction(&self, transaction_id: TransactionId) -> Result<()>
pub fn abort_transaction(&self, transaction_id: TransactionId) -> Result<()>
Abort a transaction
Sourcepub fn transactional_insert(
&self,
transaction_id: TransactionId,
uri: String,
vector: Vector,
embedding_content: Option<EmbeddableContent>,
) -> Result<()>
pub fn transactional_insert( &self, transaction_id: TransactionId, uri: String, vector: Vector, embedding_content: Option<EmbeddableContent>, ) -> Result<()>
Insert vector within a transaction
Sourcepub fn stream_insert(
&self,
uri: String,
vector: Vector,
priority: Priority,
) -> Result<()>
pub fn stream_insert( &self, uri: String, vector: Vector, priority: Priority, ) -> Result<()>
Stream-based insert for high throughput
Sourcepub fn batch_insert(
&self,
items: Vec<(String, Vector)>,
auto_commit: bool,
) -> Result<TransactionId>
pub fn batch_insert( &self, items: Vec<(String, Vector)>, auto_commit: bool, ) -> Result<TransactionId>
Batch insert with automatic transaction management
Sourcepub fn consistent_search(
&self,
query: &Vector,
k: usize,
consistency_level: Option<ConsistencyLevel>,
) -> Result<Vec<(String, f32)>>
pub fn consistent_search( &self, query: &Vector, k: usize, consistency_level: Option<ConsistencyLevel>, ) -> Result<Vec<(String, f32)>>
Search with caching and consistency guarantees
Sourcepub fn rdf_vector_search(
&self,
rdf_term: &str,
k: usize,
graph_context: Option<&str>,
) -> Result<Vec<(String, f32)>>
pub fn rdf_vector_search( &self, rdf_term: &str, k: usize, graph_context: Option<&str>, ) -> Result<Vec<(String, f32)>>
RDF-aware vector search
Sourcepub fn sparql_vector_search(
&self,
_query: &str,
bindings: &HashMap<String, String>,
) -> Result<Vec<HashMap<String, String>>>
pub fn sparql_vector_search( &self, _query: &str, bindings: &HashMap<String, String>, ) -> Result<Vec<HashMap<String, String>>>
SPARQL-integrated vector search
Sourcepub fn subscribe_to_changes(
&self,
subscriber: Arc<dyn ChangeSubscriber>,
) -> Result<()>
pub fn subscribe_to_changes( &self, subscriber: Arc<dyn ChangeSubscriber>, ) -> Result<()>
Add change subscriber for real-time notifications
Sourcepub fn get_metrics(&self) -> StoreMetrics
pub fn get_metrics(&self) -> StoreMetrics
Get store metrics
Sourcepub fn health_check(&self) -> Result<HealthStatus>
pub fn health_check(&self) -> Result<HealthStatus>
Health check for the integrated store
Auto Trait Implementations§
impl Freeze for IntegratedVectorStore
impl !RefUnwindSafe for IntegratedVectorStore
impl Send for IntegratedVectorStore
impl Sync for IntegratedVectorStore
impl Unpin for IntegratedVectorStore
impl !UnwindSafe for IntegratedVectorStore
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.