SET PAGESIZE 100
SET LINESIZE 220

ALTER SESSION SET CURRENT_SCHEMA = ADMIN;

PROMPT RAG retrieval simulation: retrieve chunks closest to the question embedding.

SELECT chunk_id,
       document_title,
       department,
       classification,
       chunk_text,
       VECTOR_DISTANCE(embedding, TO_VECTOR('[0.85,0.15,0.25]'), COSINE) AS distance
FROM dds_rag_chunks
ORDER BY distance
FETCH FIRST 5 ROWS ONLY;
