{'fraction_non_alphanumeric': 0.02171767028627838, 'fraction_numerical': 0.005923000987166831, 'mean_word_length': 6.041666666666667, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Bayesian Self-Optimization for Telescoped Continuous Flow Synthesis.

The optimization of multistep chemical syntheses is critical for the rapid development of new pharmaceuticals. However, concatenating individually optimized reactions can lead to inefficient multistep syntheses, owing to chemical interdependencies between the steps. Herein, we develop an automated continuous flow platform for the simultaneous optimization of telescoped reactions. Our approach is applied to a Heck-cyclization-deprotection reaction sequence, used in the synthesis of a precursor for 1-methyltetrahydroisoquinoline C-5 functionalization. A simple method for multipoint sampling with a single online HPLC instrument was designed, enabling accurate quantification of each reaction, and an in-depth understanding of the reaction pathways. Notably, integration of Bayesian optimization techniques identified an 81% overall yield in just 14 hours, and revealed the favorable competing pathway for formation of the desired product.