pub struct VertexAiRagRetrievalTool { /* private fields */ }Expand description
Retrieval tool that searches via Vertex AI RAG API.
Calls the Vertex AI RAG API to retrieve relevant document chunks from a configured corpus.
Implementations§
Trait Implementations§
Source§impl BaseRetrievalTool for VertexAiRagRetrievalTool
impl BaseRetrievalTool for VertexAiRagRetrievalTool
Source§fn retrieve<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
_top_k: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<RetrievalResult>, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn retrieve<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
_top_k: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<RetrievalResult>, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Search the corpus with a query and return ranked results.
Source§impl Clone for VertexAiRagRetrievalTool
impl Clone for VertexAiRagRetrievalTool
Source§fn clone(&self) -> VertexAiRagRetrievalTool
fn clone(&self) -> VertexAiRagRetrievalTool
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for VertexAiRagRetrievalTool
impl RefUnwindSafe for VertexAiRagRetrievalTool
impl Send for VertexAiRagRetrievalTool
impl Sync for VertexAiRagRetrievalTool
impl Unpin for VertexAiRagRetrievalTool
impl UnwindSafe for VertexAiRagRetrievalTool
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