Documentation Index
Fetch the complete documentation index at: https://quintsecurity.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Graph-Structured RAG
When the GraphReasoner’s confidence falls below 0.8, the RAG pipeline retrieves compliance context from Memgraph and injects it into the LLM prompt. This grounds the LLM’s analysis in specific regulatory articles rather than relying on general knowledge.Architecture
Retriever API
Data Models
RAGContext
ArticleContext
Cypher Queries
The retriever executes four Cypher queries against Memgraph:Article Context Query
Article Context Query
Traverses:
RiskFactor → (TRIGGERS) → Article → (GOVERNED_BY) ← Category → (HAS_CATEGORY) ← FrameworkReturns articles with their framework context, ordered by PageRank (most authoritative first).Mitigation Context Query
Mitigation Context Query
Traverses:
RiskFactor → (MITIGATED_BY) → MitigationReturns mitigations ordered by coverage count (mitigations that address the most risk factors first).Violation Article Text Query
Violation Article Text Query
Direct lookup by article ID for articles already referenced in violations.
Cross-Framework Context Query
Cross-Framework Context Query
Multi-framework impact analysis — how many frameworks are affected by the detected risk factors. Events crossing 3+ frameworks receive severity boost.
Formatted Output
Theformat_rag_context() function produces markdown injected into the LLM prompt:
Integration in Scoring Pipeline
The RAG pipeline is wired into the event scoring route:Rule-to-Ontology Mapping
Therule_mapping.py module maps fired rule names to ontology risk factor IDs:
The RAG pipeline gracefully degrades when Memgraph is unavailable — it returns an empty
RAGContext and the LLM operates without compliance context grounding.