get document from kdb sample