/**
 * GFS RAG System — Central Export
 * 
 * Retrieval-Augmented Generation system that grounds all agent
 * decisions in verified business knowledge. Prevents hallucination,
 * enforces policy compliance, and provides auditable source citations.
 * 
 * Architecture:
 *   Documents → Chunker → Vector Store → Retriever → Agent Prompt
 * 
 * Usage:
 *   import { retrieveContext } from '@/lib/gfs/rag';
 *   const ctx = retrieveContext('What is the data deletion policy?');
 *   // ctx.contextText → inject into LLM prompt
 *   // ctx.citations → audit trail
 */

export {
  retrieveContext,
  retrieveSafetyContext,
  retrieveTechnicalContext,
  hasRelevantKnowledge,
  getRAGStatus,
} from './retriever';

export { ingestBusinessDocuments, reingestDocuments } from './ingest';
export { vectorStore } from './vector-store';
export { chunkDocument, createDocument } from './chunker';

export type {
  RAGDocument,
  RAGDocumentCategory,
  RAGChunk,
  RAGSearchResult,
  RAGContext,
  RAGConfig,
} from './types';

export { DEFAULT_RAG_CONFIG, SENSITIVE_CATEGORIES } from './types';
