trieve_client/models/
rag_types.rs1use crate::models;
12
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
15pub enum RagTypes {
16 #[serde(rename = "chosen_chunks")]
17 ChosenChunks,
18 #[serde(rename = "all_chunks")]
19 AllChunks,
20
21}
22
23impl ToString for RagTypes {
24 fn to_string(&self) -> String {
25 match self {
26 Self::ChosenChunks => String::from("chosen_chunks"),
27 Self::AllChunks => String::from("all_chunks"),
28 }
29 }
30}
31
32impl Default for RagTypes {
33 fn default() -> RagTypes {
34 Self::ChosenChunks
35 }
36}
37