pub struct SearchApi { /* private fields */ }Expand description
Search API operations
Implementations§
Source§impl SearchApi
impl SearchApi
Sourcepub async fn search(&self, request: &SearchRequest) -> ApiResult<SearchResponse>
pub async fn search(&self, request: &SearchRequest) -> ApiResult<SearchResponse>
Perform a semantic search
Sourcepub async fn query(&self, query: &str) -> ApiResult<SearchResponse>
pub async fn query(&self, query: &str) -> ApiResult<SearchResponse>
Simple search with query string
Sourcepub async fn query_top_k(
&self,
query: &str,
top_k: usize,
) -> ApiResult<SearchResponse>
pub async fn query_top_k( &self, query: &str, top_k: usize, ) -> ApiResult<SearchResponse>
Search with limited results
Sourcepub async fn search_in_skill(
&self,
query: &str,
skill: &str,
) -> ApiResult<SearchResponse>
pub async fn search_in_skill( &self, query: &str, skill: &str, ) -> ApiResult<SearchResponse>
Search within a specific skill
Sourcepub async fn search_with_examples(
&self,
query: &str,
) -> ApiResult<SearchResponse>
pub async fn search_with_examples( &self, query: &str, ) -> ApiResult<SearchResponse>
Search with AI-generated examples included
Sourcepub async fn get_config(&self) -> ApiResult<SearchConfigResponse>
pub async fn get_config(&self) -> ApiResult<SearchConfigResponse>
Get search configuration
Sourcepub async fn update_config(
&self,
request: &UpdateSearchConfigRequest,
) -> ApiResult<SearchConfigResponse>
pub async fn update_config( &self, request: &UpdateSearchConfigRequest, ) -> ApiResult<SearchConfigResponse>
Update search configuration
Sourcepub async fn set_hybrid_search(
&self,
enabled: bool,
) -> ApiResult<SearchConfigResponse>
pub async fn set_hybrid_search( &self, enabled: bool, ) -> ApiResult<SearchConfigResponse>
Enable or disable hybrid search
Sourcepub async fn set_reranking(
&self,
enabled: bool,
) -> ApiResult<SearchConfigResponse>
pub async fn set_reranking( &self, enabled: bool, ) -> ApiResult<SearchConfigResponse>
Enable or disable reranking
Sourcepub async fn set_embedding_provider(
&self,
provider: &str,
model: Option<&str>,
) -> ApiResult<SearchConfigResponse>
pub async fn set_embedding_provider( &self, provider: &str, model: Option<&str>, ) -> ApiResult<SearchConfigResponse>
Change embedding provider
Sourcepub async fn set_vector_backend(
&self,
backend: &str,
) -> ApiResult<SearchConfigResponse>
pub async fn set_vector_backend( &self, backend: &str, ) -> ApiResult<SearchConfigResponse>
Change vector backend
Sourcepub async fn test_connection(
&self,
request: &TestConnectionRequest,
) -> ApiResult<TestConnectionResponse>
pub async fn test_connection( &self, request: &TestConnectionRequest, ) -> ApiResult<TestConnectionResponse>
Test search connection (quick validation)
Sourcepub async fn test_pipeline(
&self,
request: &TestPipelineRequest,
) -> ApiResult<TestPipelineResponse>
pub async fn test_pipeline( &self, request: &TestPipelineRequest, ) -> ApiResult<TestPipelineResponse>
Test full search pipeline (indexing + search)
Sourcepub async fn index(&self) -> ApiResult<IndexResponse>
pub async fn index(&self) -> ApiResult<IndexResponse>
Index all skills into the search pipeline
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SearchApi
impl RefUnwindSafe for SearchApi
impl !Send for SearchApi
impl !Sync for SearchApi
impl Unpin for SearchApi
impl UnwindSafe for SearchApi
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> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.