pub struct DatasetSpec {
pub id: String,
pub name: String,
pub description: String,
pub store: String,
pub embedder: String,
pub reranker: Option<String>,
pub chunking: Option<ChunkerConfig>,
}Expand description
A dataset created at runtime from the stores, embedders and rerankers a
knowledge config declares (see KnowledgeBase::create_dataset).
Fields§
§id: String§name: String§description: String§store: StringName of a store in the knowledge config.
embedder: StringName of an embedder in the knowledge config.
reranker: Option<String>Name of a reranker in the knowledge config.
chunking: Option<ChunkerConfig>Trait Implementations§
Source§impl Clone for DatasetSpec
impl Clone for DatasetSpec
Source§impl Debug for DatasetSpec
impl Debug for DatasetSpec
Source§impl<'de> Deserialize<'de> for DatasetSpec
impl<'de> Deserialize<'de> for DatasetSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DatasetSpec
impl PartialEq for DatasetSpec
Source§impl Serialize for DatasetSpec
impl Serialize for DatasetSpec
impl StructuralPartialEq for DatasetSpec
Auto Trait Implementations§
impl Forget for DatasetSpec
impl Freeze for DatasetSpec
impl Move for DatasetSpec
impl RefUnwindSafe for DatasetSpec
impl Send for DatasetSpec
impl Sync for DatasetSpec
impl Unpin for DatasetSpec
impl UnsafeUnpin for DatasetSpec
impl UnwindSafe for DatasetSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more