pub struct CreateMessageReqPayload {
pub concat_user_messages_query: Option<Option<bool>>,
pub filters: Option<Option<Box<ChunkFilter>>>,
pub highlight_options: Option<Option<Box<HighlightOptions>>>,
pub llm_options: Option<Option<Box<LlmOptions>>>,
pub new_message_content: String,
pub page_size: Option<Option<i64>>,
pub score_threshold: Option<Option<f32>>,
pub search_query: Option<Option<String>>,
pub search_type: Option<Option<SearchMethod>>,
pub topic_id: Uuid,
pub user_id: Option<Option<String>>,
}
Fields§
§concat_user_messages_query: Option<Option<bool>>
If concat user messages query is set to true, all of the user messages in the topic will be concatenated together and used as the search query. If not specified, this defaults to false. Default is false.
filters: Option<Option<Box<ChunkFilter>>>
§highlight_options: Option<Option<Box<HighlightOptions>>>
§llm_options: Option<Option<Box<LlmOptions>>>
§new_message_content: String
The content of the user message to attach to the topic and then generate an assistant message in response to.
page_size: Option<Option<i64>>
Page size is the number of chunks to fetch during RAG. If 0, then no search will be performed. If specified, this will override the N retrievals to include in the dataset configuration. Default is None.
score_threshold: Option<Option<f32>>
Set score_threshold to a float to filter out chunks with a score below the threshold. This threshold applies before weight and bias modifications. If not specified, this defaults to 0.0.
search_query: Option<Option<String>>
Query is the search query. This can be any string. The search_query will be used to create a dense embedding vector and/or sparse vector which will be used to find the result set. If not specified, will default to the last user message or HyDE if HyDE is enabled in the dataset configuration. Default is None.
search_type: Option<Option<SearchMethod>>
§topic_id: Uuid
The ID of the topic to attach the message to.
user_id: Option<Option<String>>
The user_id is the id of the user who is making the request. This is used to track user interactions with the RAG results.
Implementations§
Source§impl CreateMessageReqPayload
impl CreateMessageReqPayload
pub fn new( new_message_content: String, topic_id: Uuid, ) -> CreateMessageReqPayload
Trait Implementations§
Source§impl Clone for CreateMessageReqPayload
impl Clone for CreateMessageReqPayload
Source§fn clone(&self) -> CreateMessageReqPayload
fn clone(&self) -> CreateMessageReqPayload
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more