pub struct GraphRAGEngine<V, E, S, L>{ /* private fields */ }Expand description
Main GraphRAG engine
Implementations§
Source§impl<V, E, S, L> GraphRAGEngine<V, E, S, L>
impl<V, E, S, L> GraphRAGEngine<V, E, S, L>
Sourcepub fn new(
vec_index: Arc<V>,
embedding_model: Arc<E>,
sparql_engine: Arc<S>,
llm_client: Arc<L>,
config: GraphRAGConfig,
) -> Self
pub fn new( vec_index: Arc<V>, embedding_model: Arc<E>, sparql_engine: Arc<S>, llm_client: Arc<L>, config: GraphRAGConfig, ) -> Self
Create a new GraphRAG engine
Sourcepub async fn query(&self, query: &str) -> GraphRAGResult<GraphRAGResult2>
pub async fn query(&self, query: &str) -> GraphRAGResult<GraphRAGResult2>
Execute a GraphRAG query
Auto Trait Implementations§
impl<V, E, S, L> Freeze for GraphRAGEngine<V, E, S, L>
impl<V, E, S, L> !RefUnwindSafe for GraphRAGEngine<V, E, S, L>
impl<V, E, S, L> Send for GraphRAGEngine<V, E, S, L>
impl<V, E, S, L> Sync for GraphRAGEngine<V, E, S, L>
impl<V, E, S, L> Unpin for GraphRAGEngine<V, E, S, L>
impl<V, E, S, L> !UnwindSafe for GraphRAGEngine<V, E, S, L>
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