pub struct GraphChannelExecutor { /* private fields */ }Expand description
Graph channel executor using a knowledge graph search backend.
Implementations§
Source§impl GraphChannelExecutor
impl GraphChannelExecutor
Sourcepub fn new(store: Arc<dyn KnowledgeGraphSearch>) -> Self
pub fn new(store: Arc<dyn KnowledgeGraphSearch>) -> Self
Create a new graph channel executor with the given knowledge graph store.
Sourcepub async fn execute(
&self,
query: &str,
config: &ChannelConfig,
_global_filters: &[StructuredFilter],
_namespace: Option<&str>,
) -> Result<Vec<RetrievedChunk>, RagError>
pub async fn execute( &self, query: &str, config: &ChannelConfig, _global_filters: &[StructuredFilter], _namespace: Option<&str>, ) -> Result<Vec<RetrievedChunk>, RagError>
Execute knowledge graph search for the given query.
Auto Trait Implementations§
impl !RefUnwindSafe for GraphChannelExecutor
impl !UnwindSafe for GraphChannelExecutor
impl Freeze for GraphChannelExecutor
impl Send for GraphChannelExecutor
impl Sync for GraphChannelExecutor
impl Unpin for GraphChannelExecutor
impl UnsafeUnpin for GraphChannelExecutor
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