16 lines
370 B
SQL
16 lines
370 B
SQL
SET PAGESIZE 100
|
|
SET LINESIZE 220
|
|
|
|
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;
|
|
|