updated 'chain_query' and 'generate' docs