pub struct RragSystem { /* private fields */ }Expand description
Main RRAG system orchestrator
Implementations§
Source§impl RragSystem
impl RragSystem
Sourcepub async fn new(config: RragSystemConfig) -> RragResult<Self>
pub async fn new(config: RragSystemConfig) -> RragResult<Self>
Create new RRAG system with configuration
Sourcepub async fn initialize(&mut self) -> RragResult<()>
pub async fn initialize(&mut self) -> RragResult<()>
Initialize system components
Sourcepub async fn process_document(
&self,
document: Document,
) -> RragResult<ProcessingResult>
pub async fn process_document( &self, document: Document, ) -> RragResult<ProcessingResult>
Process a document through the system
Sourcepub async fn search(
&self,
query: String,
_limit: Option<usize>,
) -> RragResult<SearchResponse>
pub async fn search( &self, query: String, _limit: Option<usize>, ) -> RragResult<SearchResponse>
Perform similarity search
Sourcepub async fn chat(
&self,
agent_id: &str,
message: String,
conversation_id: Option<String>,
) -> RragResult<ChatResponse>
pub async fn chat( &self, agent_id: &str, message: String, conversation_id: Option<String>, ) -> RragResult<ChatResponse>
Chat with an agent
Sourcepub async fn get_metrics(&self) -> SystemMetrics
pub async fn get_metrics(&self) -> SystemMetrics
Get system metrics
Sourcepub async fn health_check(&self) -> RragResult<HealthCheckResult>
pub async fn health_check(&self) -> RragResult<HealthCheckResult>
Perform system health check
Sourcepub async fn shutdown(&self) -> RragResult<()>
pub async fn shutdown(&self) -> RragResult<()>
Shutdown the system gracefully
Sourcepub fn get_config(&self) -> &RragSystemConfig
pub fn get_config(&self) -> &RragSystemConfig
Get system configuration
Sourcepub async fn update_config(
&mut self,
new_config: RragSystemConfig,
) -> RragResult<()>
pub async fn update_config( &mut self, new_config: RragSystemConfig, ) -> RragResult<()>
Update system configuration (requires restart for some changes)
Auto Trait Implementations§
impl Freeze for RragSystem
impl !RefUnwindSafe for RragSystem
impl Send for RragSystem
impl Sync for RragSystem
impl Unpin for RragSystem
impl !UnwindSafe for RragSystem
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