Crate leanr_rag_gateway

Crate leanr_rag_gateway 

Source
Expand description

§Policy-Verified RAG Gateway

A drop-in gateway that only returns RAG answers proven to respect:

  • Source policies
  • PII masking
  • Retention rules
  • Cost/latency SLAs

§KPIs

  • Blocked unsafe requests: 100%
  • p99 latency: <150ms
  • Audit acceptance: 100%

Re-exports§

pub use policy::Policy;
pub use policy::PolicyEngine;
pub use policy::PolicyViolation;
pub use proof::ProofCertificate;
pub use proof::ProofKind;
pub use router::CostAwareRouter;
pub use router::Lane;
pub use router::RoutingDecision;
pub use audit::AuditLog;
pub use audit::AuditEvent;

Modules§

audit
Audit logging for RAG Gateway
policy
Policy engine for access control and PII masking
proof
Proof certificates for verified RAG responses
router
Cost-aware routing for multi-provider LLM access

Structs§

AccessCheckResult
Citation
RagGateway
RAG Gateway with policy verification
RagQuery
RAG Query with metadata
RagResponse
RAG Response with proof certificate
ResponseMetrics

Enums§

GatewayError