pub struct RecommendChunksRequest {
pub filters: Option<Option<Box<ChunkFilter>>>,
pub limit: Option<Option<i64>>,
pub negative_chunk_ids: Option<Option<Vec<Uuid>>>,
pub negative_tracking_ids: Option<Option<Vec<String>>>,
pub positive_chunk_ids: Option<Option<Vec<Uuid>>>,
pub positive_tracking_ids: Option<Option<Vec<String>>>,
pub recommend_type: Option<Option<RecommendType>>,
pub slim_chunks: Option<Option<bool>>,
pub strategy: Option<Option<RecommendationStrategy>>,
pub user_id: Option<Option<String>>,
}
Fields§
§filters: Option<Option<Box<ChunkFilter>>>
§limit: Option<Option<i64>>
The number of chunks to return. This is the number of chunks which will be returned in the response. The default is 10.
negative_chunk_ids: Option<Option<Vec<Uuid>>>
The ids of the chunks to be used as negative examples for the recommendation. The chunks in this array will be used to filter out similar chunks.
negative_tracking_ids: Option<Option<Vec<String>>>
The tracking_ids of the chunks to be used as negative examples for the recommendation. The chunks in this array will be used to filter out similar chunks.
positive_chunk_ids: Option<Option<Vec<Uuid>>>
The ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks.
positive_tracking_ids: Option<Option<Vec<String>>>
The tracking_ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks.
recommend_type: Option<Option<RecommendType>>
§slim_chunks: Option<Option<bool>>
Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement (typicall 10-50ms). Default is false.
strategy: Option<Option<RecommendationStrategy>>
§user_id: Option<Option<String>>
User ID is the id of the user who is making the request. This is used to track user interactions with the recommendation results.
Implementations§
Source§impl RecommendChunksRequest
impl RecommendChunksRequest
pub fn new() -> RecommendChunksRequest
Trait Implementations§
Source§impl Clone for RecommendChunksRequest
impl Clone for RecommendChunksRequest
Source§fn clone(&self) -> RecommendChunksRequest
fn clone(&self) -> RecommendChunksRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more