Inspect current HNSW index configuration
Returns the index name and WITH-options row (m, ef_construction). If the output is empty the table has no HNSW index; if reloptions is NULL the index was built with pgvector defaults.
SELECT i.indexname, c.reloptions
FROM pg_indexes i
JOIN pg_class c ON c.relname = i.indexname
JOIN pg_am am ON am.oid = c.relam
WHERE i.schemaname = 'public'
AND i.tablename = 'doc_embeddings'
AND am.amname = 'hnsw';