Struct google_api_proto::google::cloud::aiplatform::v1beta1::VertexRagStore
source · pub struct VertexRagStore {
pub rag_corpora: Vec<String>,
pub rag_resources: Vec<RagResource>,
pub similarity_top_k: Option<i32>,
pub vector_distance_threshold: Option<f64>,
}
Expand description
Retrieve from Vertex RAG Store for grounding.
Fields§
§rag_corpora: Vec<String>
👎Deprecated
Optional. Deprecated. Please use rag_resources instead.
rag_resources: Vec<RagResource>
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
similarity_top_k: Option<i32>
Optional. Number of top k results to return from the selected corpora.
vector_distance_threshold: Option<f64>
Optional. Only return results with vector distance smaller than the threshold.
Implementations§
source§impl VertexRagStore
impl VertexRagStore
sourcepub fn similarity_top_k(&self) -> i32
pub fn similarity_top_k(&self) -> i32
Returns the value of similarity_top_k
, or the default value if similarity_top_k
is unset.
sourcepub fn vector_distance_threshold(&self) -> f64
pub fn vector_distance_threshold(&self) -> f64
Returns the value of vector_distance_threshold
, or the default value if vector_distance_threshold
is unset.
Trait Implementations§
source§impl Clone for VertexRagStore
impl Clone for VertexRagStore
source§fn clone(&self) -> VertexRagStore
fn clone(&self) -> VertexRagStore
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VertexRagStore
impl Debug for VertexRagStore
source§impl Default for VertexRagStore
impl Default for VertexRagStore
source§impl Message for VertexRagStore
impl Message for VertexRagStore
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for VertexRagStore
impl PartialEq for VertexRagStore
source§fn eq(&self, other: &VertexRagStore) -> bool
fn eq(&self, other: &VertexRagStore) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VertexRagStore
Auto Trait Implementations§
impl Freeze for VertexRagStore
impl RefUnwindSafe for VertexRagStore
impl Send for VertexRagStore
impl Sync for VertexRagStore
impl Unpin for VertexRagStore
impl UnwindSafe for VertexRagStore
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request