Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ahnlich/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ahnlich/client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ahnlich_client_rs"
version = "0.2.0"
version = "0.2.1"
authors = ["Diretnan Domnan <diretnandomnan@gmail.com>"]
categories = ["database-implementations", "database", "web-programming"]
keywords = ["ahnlich", "in-memory", "ai"]
Expand Down
21 changes: 18 additions & 3 deletions ahnlich/client/src/ai.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use ahnlich_types::{
pipeline::{AiQuery, AiRequestPipeline, AiResponsePipeline, ai_query::Query},
query::{
ConvertStoreInputToEmbeddings, CreateNonLinearAlgorithmIndex, CreatePredIndex,
CreateStore, DelKey, DropNonLinearAlgorithmIndex, DropPredIndex, DropStore, GetKey,
GetPred, GetSimN, GetStore, InfoServer, ListClients, ListStores, Ping, PurgeStores,
Set,
CreateStore, DelKey, DelPred, DropNonLinearAlgorithmIndex, DropPredIndex, DropStore,
GetKey, GetPred, GetSimN, GetStore, InfoServer, ListClients, ListStores, Ping,
PurgeStores, Set,
},
server::{
AiStoreInfo, ClientList, CreateIndex, Del, Get, GetSimN as GetSimNResult, Pong,
Expand Down Expand Up @@ -87,6 +87,10 @@ impl AiPipeline {
self.queries.push(Query::DelKey(params));
}

pub fn del_pred(&mut self, params: DelPred) {
self.queries.push(Query::DelPred(params));
}

pub fn drop_store(&mut self, params: DropStore) {
self.queries.push(Query::DropStore(params));
}
Expand Down Expand Up @@ -296,6 +300,17 @@ impl AiClient {
.into_inner())
}

pub async fn del_pred(
&self,
params: DelPred,
tracing_id: Option<String>,
) -> Result<Del, AhnlichError> {
let mut req = tonic::Request::new(params);
add_trace_parent(&mut req, tracing_id);
add_auth_header(&mut req, &self.auth_token);
Ok(self.client.clone().del_pred(req).await?.into_inner())
}

pub async fn del_key(
&self,
params: DelKey,
Expand Down
2 changes: 1 addition & 1 deletion ahnlich/types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ahnlich_types"
version = "0.2.0"
version = "0.2.1"
authors = ["Diretnan Domnan <diretnandomnan@gmail.com>"]
categories = ["database-implementations", "database", "web-programming"]
keywords = ["ahnlich", "in-memory", "ai"]
Expand Down
Loading