#[non_exhaustive]pub struct RagQuery {
pub rag_retrieval_config: Option<RagRetrievalConfig>,
pub query: Option<Query>,
/* private fields */
}Available on crate feature
vertex-rag-service only.Expand description
A query to retrieve relevant contexts.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rag_retrieval_config: Option<RagRetrievalConfig>Optional. The retrieval config for the query.
query: Option<Query>The query to retrieve contexts. Currently only text query is supported.
Implementations§
Source§impl RagQuery
impl RagQuery
pub fn new() -> Self
Sourcepub fn set_rag_retrieval_config<T>(self, v: T) -> Selfwhere
T: Into<RagRetrievalConfig>,
pub fn set_rag_retrieval_config<T>(self, v: T) -> Selfwhere
T: Into<RagRetrievalConfig>,
Sets the value of rag_retrieval_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::RagRetrievalConfig;
let x = RagQuery::new().set_rag_retrieval_config(RagRetrievalConfig::default()/* use setters */);Sourcepub fn set_or_clear_rag_retrieval_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<RagRetrievalConfig>,
pub fn set_or_clear_rag_retrieval_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<RagRetrievalConfig>,
Sets or clears the value of rag_retrieval_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::RagRetrievalConfig;
let x = RagQuery::new().set_or_clear_rag_retrieval_config(Some(RagRetrievalConfig::default()/* use setters */));
let x = RagQuery::new().set_or_clear_rag_retrieval_config(None::<RagRetrievalConfig>);Trait Implementations§
impl StructuralPartialEq for RagQuery
Auto Trait Implementations§
impl Freeze for RagQuery
impl RefUnwindSafe for RagQuery
impl Send for RagQuery
impl Sync for RagQuery
impl Unpin for RagQuery
impl UnwindSafe for RagQuery
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