Skip to content
Draft
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
22 changes: 21 additions & 1 deletion diskann-providers/src/index/wrapped_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use diskann::{
self, AsElement, InplaceDeleteStrategy, InsertStrategy, PruneStrategy, SearchStrategy,
},
index::{DegreeStats, PartitionedNeighbors, SearchState, SearchStats},
search::Knn,
search::{self, Knn, MultihopSearch},
search_output_buffer,
},
neighbor::Neighbor,
Expand Down Expand Up @@ -280,6 +280,26 @@ where
)
}

pub fn multihop_search<'q, S, T, O, OB>(
&self,
strategy: &S,
context: &DP::Context,
query: &T,
search_params: MultihopSearch<'q, DP::InternalId>,
output: &mut OB,
) -> ANNResult<SearchStats>
where
T: Sync + ?Sized,
S: SearchStrategy<DP, T, O>,
O: Send,
OB: search_output_buffer::SearchOutputBuffer<O> + Send,
{
self.handle.block_on(
self.inner
.search(search_params, strategy, context, query, output),
)
}

pub fn next_search_results<S, T>(
&self,
context: &DP::Context,
Expand Down
Loading