use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DatasetConfigurationDto {
#[serde(rename = "BM25_AVG_LEN", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub bm25_avg_len: Option<Option<f32>>,
#[serde(rename = "BM25_B", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub bm25_b: Option<Option<f32>>,
#[serde(rename = "BM25_ENABLED", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub bm25_enabled: Option<Option<bool>>,
#[serde(rename = "BM25_K", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub bm25_k: Option<Option<f32>>,
#[serde(rename = "DISTANCE_METRIC", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub distance_metric: Option<Option<models::DistanceMetric>>,
#[serde(rename = "EMBEDDING_BASE_URL", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub embedding_base_url: Option<Option<String>>,
#[serde(rename = "EMBEDDING_MODEL_NAME", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub embedding_model_name: Option<Option<String>>,
#[serde(rename = "EMBEDDING_QUERY_PREFIX", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub embedding_query_prefix: Option<Option<String>>,
#[serde(rename = "EMBEDDING_SIZE", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub embedding_size: Option<Option<i32>>,
#[serde(rename = "FREQUENCY_PENALTY", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub frequency_penalty: Option<Option<f64>>,
#[serde(rename = "FULLTEXT_ENABLED", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub fulltext_enabled: Option<Option<bool>>,
#[serde(rename = "INDEXED_ONLY", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub indexed_only: Option<Option<bool>>,
#[serde(rename = "LLM_BASE_URL", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub llm_base_url: Option<Option<String>>,
#[serde(rename = "LLM_DEFAULT_MODEL", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub llm_default_model: Option<Option<String>>,
#[serde(rename = "LOCKED", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub locked: Option<Option<bool>>,
#[serde(rename = "MAX_LIMIT", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub max_limit: Option<Option<i64>>,
#[serde(rename = "MAX_TOKENS", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub max_tokens: Option<Option<i64>>,
#[serde(rename = "MESSAGE_TO_QUERY_PROMPT", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub message_to_query_prompt: Option<Option<String>>,
#[serde(rename = "N_RETRIEVALS_TO_INCLUDE", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub n_retrievals_to_include: Option<Option<i32>>,
#[serde(rename = "PRESENCE_PENALTY", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub presence_penalty: Option<Option<f64>>,
#[serde(rename = "RAG_PROMPT", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub rag_prompt: Option<Option<String>>,
#[serde(rename = "RERANKER_BASE_URL", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub reranker_base_url: Option<Option<String>>,
#[serde(rename = "SEMANTIC_ENABLED", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub semantic_enabled: Option<Option<bool>>,
#[serde(rename = "STOP_TOKENS", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub stop_tokens: Option<Option<Vec<String>>>,
#[serde(rename = "SYSTEM_PROMPT", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub system_prompt: Option<Option<String>>,
#[serde(rename = "TEMPERATURE", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub temperature: Option<Option<f64>>,
#[serde(rename = "USE_MESSAGE_TO_QUERY_PROMPT", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub use_message_to_query_prompt: Option<Option<bool>>,
}
impl DatasetConfigurationDto {
pub fn new() -> DatasetConfigurationDto {
DatasetConfigurationDto {
bm25_avg_len: None,
bm25_b: None,
bm25_enabled: None,
bm25_k: None,
distance_metric: None,
embedding_base_url: None,
embedding_model_name: None,
embedding_query_prefix: None,
embedding_size: None,
frequency_penalty: None,
fulltext_enabled: None,
indexed_only: None,
llm_base_url: None,
llm_default_model: None,
locked: None,
max_limit: None,
max_tokens: None,
message_to_query_prompt: None,
n_retrievals_to_include: None,
presence_penalty: None,
rag_prompt: None,
reranker_base_url: None,
semantic_enabled: None,
stop_tokens: None,
system_prompt: None,
temperature: None,
use_message_to_query_prompt: None,
}
}
}