feature/insight-chat-improvements #83
@@ -262,20 +262,8 @@ impl SmsApiClient {
|
|||||||
/// - "semantic" embedding similarity
|
/// - "semantic" embedding similarity
|
||||||
/// - "hybrid" both merged via reciprocal rank fusion (recommended)
|
/// - "hybrid" both merged via reciprocal rank fusion (recommended)
|
||||||
///
|
///
|
||||||
/// Equivalent to `search_messages_with_contact(query, mode, limit, None)`;
|
/// The SMS-API endpoint accepts `contact_id` natively; date filtering is
|
||||||
/// kept as a convenience for callers that don't filter by contact.
|
/// the caller's responsibility (post-filter on the returned rows).
|
||||||
pub async fn search_messages(
|
|
||||||
&self,
|
|
||||||
query: &str,
|
|
||||||
mode: &str,
|
|
||||||
limit: usize,
|
|
||||||
) -> Result<Vec<SmsSearchHit>> {
|
|
||||||
self.search_messages_with_contact(query, mode, limit, None).await
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Same shape as `search_messages` but with optional `contact_id`. The
|
|
||||||
/// SMS-API endpoint accepts contact_id natively; date filtering is the
|
|
||||||
/// caller's responsibility (post-filter on the returned rows).
|
|
||||||
pub async fn search_messages_with_contact(
|
pub async fn search_messages_with_contact(
|
||||||
&self,
|
&self,
|
||||||
query: &str,
|
query: &str,
|
||||||
|
|||||||
Reference in New Issue
Block a user