# RAG System - Enterprise Mode
let rag_schema = import "../schemas/rag.ncl" in
{
  rag | rag_schema.RagConfig = {
    rag = { enabled = true, },
    embeddings = { provider = "openai", model = "text-embedding-3-large", dimension = 3072, batch_size = 200, },
    vector_db = { db_type = "surrealdb", url = "ws://surrealdb-cluster:8000", namespace = "provisioning-prod", database = "rag", hnsw_m = 32, hnsw_ef_construction = 400, },
    llm = { provider = "anthropic", model = "claude-opus-4-5-20251101", temperature = 0.5, max_tokens = 8192, },
    retrieval = { top_k = 20, similarity_threshold = 0.8, reranking = true, hybrid = true, mmr_lambda = 0.5, },
    ingestion = { auto_ingest = true, watch_files = true, chunk_size = 2048, overlap = 200, doc_types = ["md", "txt", "toml", "ncl", "rs", "nu", "yaml", "json"], },
    monitoring = { enabled = true, },
  },
}
