pq coding scheme and retrieval framework